diff --git a/api/OpenAI.net10.0.cs b/api/OpenAI.net10.0.cs index 277be3bf4..9914f3d9c 100644 --- a/api/OpenAI.net10.0.cs +++ b/api/OpenAI.net10.0.cs @@ -6,899 +6,1660 @@ // the code is regenerated. // //------------------------------------------------------------------------------ -namespace OpenAI { - public class OpenAIClient { - protected OpenAIClient(); - public OpenAIClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public OpenAIClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public OpenAIClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - [Experimental("OPENAI001")] - public virtual AssistantClient GetAssistantClient(); - public virtual AudioClient GetAudioClient(string model); - [Experimental("OPENAI001")] - public virtual BatchClient GetBatchClient(); - public virtual ChatClient GetChatClient(string model); - [Experimental("OPENAI001")] - public virtual ContainerClient GetContainerClient(); - [Experimental("OPENAI001")] - public virtual ConversationClient GetConversationClient(); - public virtual EmbeddingClient GetEmbeddingClient(string model); - [Experimental("OPENAI001")] - public virtual EvaluationClient GetEvaluationClient(); - [Experimental("OPENAI001")] - public virtual FineTuningClient GetFineTuningClient(); - [Experimental("OPENAI001")] - public virtual GraderClient GetGraderClient(); - public virtual ImageClient GetImageClient(string model); - public virtual ModerationClient GetModerationClient(string model); - public virtual OpenAIFileClient GetOpenAIFileClient(); - public virtual OpenAIModelClient GetOpenAIModelClient(); - [Experimental("OPENAI002")] - public virtual RealtimeClient GetRealtimeClient(); - [Experimental("OPENAI001")] - public virtual ResponsesClient GetResponsesClient(string model); - [Experimental("OPENAI001")] - public virtual VectorStoreClient GetVectorStoreClient(); - [Experimental("OPENAI001")] - public virtual VideoClient GetVideoClient(); - } - public class OpenAIClientOptions : ClientPipelineOptions { - public Uri Endpoint { get; set; } - public string OrganizationId { get; set; } - public string ProjectId { get; set; } - public string UserAgentApplicationId { get; set; } - } - [Experimental("OPENAI001")] - public class OpenAIContext : ModelReaderWriterContext { - public static OpenAIContext Default { get; } - protected override bool TryGetTypeBuilderCore(Type type, out ModelReaderWriterTypeBuilder builder); +namespace OpenAI +{ + public partial class OpenAIClient + { + protected OpenAIClient() { } + public OpenAIClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Assistants.AssistantClient GetAssistantClient() { throw null; } + public virtual Audio.AudioClient GetAudioClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Batch.BatchClient GetBatchClient() { throw null; } + public virtual Chat.ChatClient GetChatClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Containers.ContainerClient GetContainerClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Conversations.ConversationClient GetConversationClient() { throw null; } + public virtual Embeddings.EmbeddingClient GetEmbeddingClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Evals.EvaluationClient GetEvaluationClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual FineTuning.FineTuningClient GetFineTuningClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Graders.GraderClient GetGraderClient() { throw null; } + public virtual Images.ImageClient GetImageClient(string model) { throw null; } + public virtual Moderations.ModerationClient GetModerationClient(string model) { throw null; } + public virtual Files.OpenAIFileClient GetOpenAIFileClient() { throw null; } + public virtual Models.OpenAIModelClient GetOpenAIModelClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public virtual Realtime.RealtimeClient GetRealtimeClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Responses.ResponsesClient GetResponsesClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual VectorStores.VectorStoreClient GetVectorStoreClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Videos.VideoClient GetVideoClient() { throw null; } + } + public partial class OpenAIClientOptions : System.ClientModel.Primitives.ClientPipelineOptions + { + public System.Uri Endpoint { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string ProjectId { get { throw null; } set { } } + public string UserAgentApplicationId { get { throw null; } set { } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.Assistant))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.AssistantChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantResponseFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantThread))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTokenLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranscription))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranscriptionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranslation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranslationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.AutomaticCodeInterpreterToolContainerConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Batch.BatchCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Batch.BatchJob))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatAudioOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionMessageCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionMessageListDatum))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunctionCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunctionChoice))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessageContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputAudio))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputAudioReference))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputPrediction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatResponseFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenTopLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatToolCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatToolChoice))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatWebSearchOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallImageOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallLogsOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterToolContainer))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterToolContainerConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.CodeInterpreterToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.CodeInterpreterToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallAction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallOutputResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallSafetyCheck))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ContainerFileCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerFileCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerFileResource))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerResource))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerResourceExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationFunctionTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationRateLimitDetailsItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionConfiguredUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationStatusDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerBody))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerBodyExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerFileBody))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CreateResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CustomMcpToolCallApprovalPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.DeleteContainerFileResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.DeleteContainerResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.DeveloperChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.EmbeddingGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.EmbeddingTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.FileChunkingStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.FileDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.FileFromStoreRemovalResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FilePathMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchCallResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchRankingOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchToolRankingOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.FineTuneReinforcementHyperparameters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningCheckpoint))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningCheckpointMetrics))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningEvent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningHyperparameters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningIntegration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningTrainingMethod))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionCallOutputResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.FunctionChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FunctionToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.GeneratedImage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.GeneratedImageCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.GetResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.Grader))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderLabelModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderMulti))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderPython))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderScoreModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderStringCheck))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderTextSimilarity))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.HyperparametersForDPO))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.HyperparametersForSupervised))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageEditOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationToolInputImageMask))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageVariationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioClearedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioCommittedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioSpeechFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioSpeechStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputNoiseReductionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputTranscriptionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemCreatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemDeletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemRetrievedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemTruncatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalRequestItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolDefinitionListItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolFilter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageContent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCreationAttachment))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageFailureDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.MessageResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.ModelDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationInputPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationResultCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.OpenAIEmbedding))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.OpenAIEmbeddingCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.OpenAIFile))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.OpenAIFileCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.OpenAIModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.OpenAIModelCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputAudioFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputAudioTranscriptionFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputStreamingFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputStreamingStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputTextFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RateLimitsUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretRequestExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeErrorUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeRequestSessionBase))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioInputConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioOutputConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionCreateRequestUnion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionCreateResponseUnion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningSummaryPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningSummaryTextPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReferenceResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseConversationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ResponseFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseIncompleteStatusDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItemCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItemCollectionPage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseReasoningOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ResponseStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTextFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTextOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponseMetadata))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponseMetadataErrors))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunIncompleteDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStep))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepCodeInterpreterOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepFileSearchResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepFileSearchResultContent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepToolCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepUpdateCodeInterpreterOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunTruncationStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.SpeechGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.StaticFileChunkingStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextSegmentUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatCompletionUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatFunctionCallUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatOutputAudioUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatToolCallUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCodeDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCodeDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallInterpretingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseContentPartAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseContentPartDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCreatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseErrorUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallSearchingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFunctionCallArgumentsDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFunctionCallArgumentsDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallGeneratingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallPartialImageUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseIncompleteUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallArgumentsDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallArgumentsDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputItemAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputItemDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseQueuedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryPartAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryPartDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseRefusalDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseRefusalDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseTextAnnotationAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallSearchingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.SystemChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadRun))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ToolChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolConstraint))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.TranscribedSegment))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.TranscribedWord))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TranscriptionSessionConfiguredUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TranscriptionSessionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TurnDetectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.UnknownGrader))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.UriCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.UserChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.ValidateGraderRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.ValidateGraderResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStore))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.VectorStoreCreationHelper))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreExpirationPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFile))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileBatch))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileCounts))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchPreviewTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolApproximateLocation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolFilters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolLocation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.WeightsAndBiasesIntegration))] + public partial class OpenAIContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal OpenAIContext() { } + public static OpenAIContext Default { get { throw null; } } + + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } } -namespace OpenAI.Assistants { - [Experimental("OPENAI001")] - public class Assistant : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Description { get; } - public string Id { get; } - public string Instructions { get; } - public IReadOnlyDictionary Metadata { get; } - public string Model { get; } - public string Name { get; } - public float? NucleusSamplingFactor { get; } - public AssistantResponseFormat ResponseFormat { get; } - public float? Temperature { get; } - public ToolResources ToolResources { get; } - public IReadOnlyList Tools { get; } - protected virtual Assistant JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator Assistant(ClientResult result); - protected virtual Assistant PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantClient { - protected AssistantClient(); - public AssistantClient(ApiKeyCredential credential, OpenAIClientOptions options); - public AssistantClient(ApiKeyCredential credential); - public AssistantClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public AssistantClient(AuthenticationPolicy authenticationPolicy); - protected internal AssistantClient(ClientPipeline pipeline, OpenAIClientOptions options); - public AssistantClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelRun(string threadId, string runId, RequestOptions options); - public virtual ClientResult CancelRun(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual Task CancelRunAsync(string threadId, string runId, RequestOptions options); - public virtual Task> CancelRunAsync(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual ClientResult CreateAssistant(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateAssistant(string model, AssistantCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateAssistantAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateAssistantAsync(string model, AssistantCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateMessage(string threadId, MessageRole role, IEnumerable content, MessageCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateMessage(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> CreateMessageAsync(string threadId, MessageRole role, IEnumerable content, MessageCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateMessageAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateRun(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateRun(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateRunAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> CreateRunAsync(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateRunStreaming(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateRunStreamingAsync(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateThread(ThreadCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateThread(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateThreadAndRun(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateThreadAndRun(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual Task CreateThreadAndRunAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateThreadAndRunAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateThreadAndRunStreaming(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateThreadAndRunStreamingAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual Task> CreateThreadAsync(ThreadCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateThreadAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteAssistant(string assistantId, RequestOptions options); - public virtual ClientResult DeleteAssistant(string assistantId, CancellationToken cancellationToken = default); - public virtual Task DeleteAssistantAsync(string assistantId, RequestOptions options); - public virtual Task> DeleteAssistantAsync(string assistantId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteMessage(string threadId, string messageId, RequestOptions options); - public virtual ClientResult DeleteMessage(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual Task DeleteMessageAsync(string threadId, string messageId, RequestOptions options); - public virtual Task> DeleteMessageAsync(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteThread(string threadId, RequestOptions options); - public virtual ClientResult DeleteThread(string threadId, CancellationToken cancellationToken = default); - public virtual Task DeleteThreadAsync(string threadId, RequestOptions options); - public virtual Task> DeleteThreadAsync(string threadId, CancellationToken cancellationToken = default); - public virtual ClientResult GetAssistant(string assistantId, RequestOptions options); - public virtual ClientResult GetAssistant(string assistantId, CancellationToken cancellationToken = default); - public virtual Task GetAssistantAsync(string assistantId, RequestOptions options); - public virtual Task> GetAssistantAsync(string assistantId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetAssistants(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetAssistants(int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetAssistantsAsync(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetMessage(string threadId, string messageId, RequestOptions options); - public virtual ClientResult GetMessage(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual Task GetMessageAsync(string threadId, string messageId, RequestOptions options); - public virtual Task> GetMessageAsync(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetMessages(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetMessages(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetMessagesAsync(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetMessagesAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetRun(string threadId, string runId, RequestOptions options); - public virtual ClientResult GetRun(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual Task GetRunAsync(string threadId, string runId, RequestOptions options); - public virtual Task> GetRunAsync(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRuns(string threadId, RunCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRuns(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetRunsAsync(string threadId, RunCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetRunsAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetRunStep(string threadId, string runId, string stepId, RequestOptions options); - public virtual ClientResult GetRunStep(string threadId, string runId, string stepId, CancellationToken cancellationToken = default); - public virtual Task GetRunStepAsync(string threadId, string runId, string stepId, RequestOptions options); - public virtual Task> GetRunStepAsync(string threadId, string runId, string stepId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRunSteps(string threadId, string runId, RunStepCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRunSteps(string threadId, string runId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, RunStepCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetThread(string threadId, RequestOptions options); - public virtual ClientResult GetThread(string threadId, CancellationToken cancellationToken = default); - public virtual Task GetThreadAsync(string threadId, RequestOptions options); - public virtual Task> GetThreadAsync(string threadId, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyAssistant(string assistantId, AssistantModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyAssistant(string assistantId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyAssistantAsync(string assistantId, AssistantModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyAssistantAsync(string assistantId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyMessage(string threadId, string messageId, MessageModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyMessage(string threadId, string messageId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyMessageAsync(string threadId, string messageId, MessageModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyMessageAsync(string threadId, string messageId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyRun(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual Task ModifyRunAsync(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyThread(string threadId, ThreadModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyThread(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyThreadAsync(string threadId, ThreadModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyThreadAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult SubmitToolOutputsToRun(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult SubmitToolOutputsToRun(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual Task SubmitToolOutputsToRunAsync(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual Task> SubmitToolOutputsToRunAsync(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual CollectionResult SubmitToolOutputsToRunStreaming(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult SubmitToolOutputsToRunStreamingAsync(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class AssistantCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public AssistantCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual AssistantCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct AssistantCollectionOrder : IEquatable { - public AssistantCollectionOrder(string value); - public static AssistantCollectionOrder Ascending { get; } - public static AssistantCollectionOrder Descending { get; } - public readonly bool Equals(AssistantCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AssistantCollectionOrder left, AssistantCollectionOrder right); - public static implicit operator AssistantCollectionOrder(string value); - public static implicit operator AssistantCollectionOrder?(string value); - public static bool operator !=(AssistantCollectionOrder left, AssistantCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class AssistantCreationOptions : IJsonModel, IPersistableModel { - public string Description { get; set; } - public string Instructions { get; set; } - public IDictionary Metadata { get; } - public string Name { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolResources ToolResources { get; set; } - public IList Tools { get; } - protected virtual AssistantCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantDeletionResult : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public bool Deleted { get; } - protected virtual AssistantDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AssistantDeletionResult(ClientResult result); - protected virtual AssistantDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantModificationOptions : IJsonModel, IPersistableModel { - public IList DefaultTools { get; } - public string Description { get; set; } - public string Instructions { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public string Name { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolResources ToolResources { get; set; } - protected virtual AssistantModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantResponseFormat : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public static AssistantResponseFormat Auto { get; } - public static AssistantResponseFormat JsonObject { get; } - public static AssistantResponseFormat Text { get; } - public static AssistantResponseFormat CreateAutoFormat(); - public static AssistantResponseFormat CreateJsonObjectFormat(); - public static AssistantResponseFormat CreateJsonSchemaFormat(string name, BinaryData jsonSchema, string description = null, bool? strictSchemaEnabled = null); - public static AssistantResponseFormat CreateTextFormat(); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - protected virtual AssistantResponseFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(AssistantResponseFormat first, AssistantResponseFormat second); - [EditorBrowsable(EditorBrowsableState.Never)] - public static implicit operator AssistantResponseFormat(string plainTextFormat); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(AssistantResponseFormat first, AssistantResponseFormat second); - protected virtual AssistantResponseFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - [EditorBrowsable(EditorBrowsableState.Never)] - bool IEquatable.Equals(AssistantResponseFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - bool IEquatable.Equals(string other); - public override string ToString(); - } - [Experimental("OPENAI001")] - public class AssistantThread : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public IReadOnlyDictionary Metadata { get; } - public ToolResources ToolResources { get; } - protected virtual AssistantThread JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AssistantThread(ClientResult result); - protected virtual AssistantThread PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public CodeInterpreterToolDefinition(); - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolResources : IJsonModel, IPersistableModel { - public IList FileIds { get; } - protected virtual CodeInterpreterToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FileSearchRanker : IEquatable { - public FileSearchRanker(string value); - public static FileSearchRanker Auto { get; } - public static FileSearchRanker Default20240821 { get; } - public readonly bool Equals(FileSearchRanker other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileSearchRanker left, FileSearchRanker right); - public static implicit operator FileSearchRanker(string value); - public static implicit operator FileSearchRanker?(string value); - public static bool operator !=(FileSearchRanker left, FileSearchRanker right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FileSearchRankingOptions : IJsonModel, IPersistableModel { - public FileSearchRankingOptions(float scoreThreshold); - public FileSearchRanker? Ranker { get; set; } - public float ScoreThreshold { get; set; } - protected virtual FileSearchRankingOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchRankingOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public FileSearchToolDefinition(); - public int? MaxResults { get; set; } - public FileSearchRankingOptions RankingOptions { get; set; } - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchToolResources : IJsonModel, IPersistableModel { - public IList NewVectorStores { get; } - public IList VectorStoreIds { get; } - protected virtual FileSearchToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FunctionToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public FunctionToolDefinition(); - public FunctionToolDefinition(string name); - public string Description { get; set; } - public string FunctionName { get; set; } - public BinaryData Parameters { get; set; } - public bool? StrictParameterSchemaEnabled { get; set; } - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public MessageCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual MessageCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct MessageCollectionOrder : IEquatable { - public MessageCollectionOrder(string value); - public static MessageCollectionOrder Ascending { get; } - public static MessageCollectionOrder Descending { get; } - public readonly bool Equals(MessageCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageCollectionOrder left, MessageCollectionOrder right); - public static implicit operator MessageCollectionOrder(string value); - public static implicit operator MessageCollectionOrder?(string value); - public static bool operator !=(MessageCollectionOrder left, MessageCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public abstract class MessageContent : IJsonModel, IPersistableModel { - public MessageImageDetail? ImageDetail { get; } - public string ImageFileId { get; } - public Uri ImageUri { get; } - public string Refusal { get; } - public string Text { get; } - public IReadOnlyList TextAnnotations { get; } - public static MessageContent FromImageFileId(string imageFileId, MessageImageDetail? detail = null); - public static MessageContent FromImageUri(Uri imageUri, MessageImageDetail? detail = null); - public static MessageContent FromText(string text); - protected virtual MessageContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator MessageContent(string value); - protected virtual MessageContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageContentUpdate : StreamingUpdate { - public MessageImageDetail? ImageDetail { get; } - public string ImageFileId { get; } - public string MessageId { get; } - public int MessageIndex { get; } - public string RefusalUpdate { get; } - public MessageRole? Role { get; } - public string Text { get; } - public TextAnnotationUpdate TextAnnotation { get; } - } - [Experimental("OPENAI001")] - public class MessageCreationAttachment : IJsonModel, IPersistableModel { - public MessageCreationAttachment(string fileId, IEnumerable tools); - public string FileId { get; } - public IReadOnlyList Tools { get; } - protected virtual MessageCreationAttachment JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCreationAttachment PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageCreationOptions : IJsonModel, IPersistableModel { - public IList Attachments { get; set; } - public IDictionary Metadata { get; } - protected virtual MessageCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string MessageId { get; } - protected virtual MessageDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator MessageDeletionResult(ClientResult result); - protected virtual MessageDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageFailureDetails : IJsonModel, IPersistableModel { - public MessageFailureReason Reason { get; } - protected virtual MessageFailureDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageFailureDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct MessageFailureReason : IEquatable { - public MessageFailureReason(string value); - public static MessageFailureReason ContentFilter { get; } - public static MessageFailureReason MaxTokens { get; } - public static MessageFailureReason RunCancelled { get; } - public static MessageFailureReason RunExpired { get; } - public static MessageFailureReason RunFailed { get; } - public readonly bool Equals(MessageFailureReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageFailureReason left, MessageFailureReason right); - public static implicit operator MessageFailureReason(string value); - public static implicit operator MessageFailureReason?(string value); - public static bool operator !=(MessageFailureReason left, MessageFailureReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public enum MessageImageDetail { + +namespace OpenAI.Assistants +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class Assistant : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal Assistant() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Description { get { throw null; } } + public string Id { get { throw null; } } + public string Instructions { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } } + public string Name { get { throw null; } } + public float? NucleusSamplingFactor { get { throw null; } } + public AssistantResponseFormat ResponseFormat { get { throw null; } } + public float? Temperature { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + + protected virtual Assistant JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Assistant(System.ClientModel.ClientResult result) { throw null; } + protected virtual Assistant PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Assistant System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Assistant System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantClient + { + protected AssistantClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public AssistantClient(AssistantClientSettings settings) { } + public AssistantClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public AssistantClient(System.ClientModel.ApiKeyCredential credential) { } + public AssistantClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public AssistantClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal AssistantClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public AssistantClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelRun(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelRun(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelRunAsync(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelRunAsync(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateAssistant(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateAssistant(string model, AssistantCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateAssistantAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAssistantAsync(string model, AssistantCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateMessage(string threadId, MessageRole role, System.Collections.Generic.IEnumerable content, MessageCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateMessage(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateMessageAsync(string threadId, MessageRole role, System.Collections.Generic.IEnumerable content, MessageCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateMessageAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateRun(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateRun(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateRunAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateRunAsync(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateRunStreaming(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateRunStreamingAsync(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateThread(ThreadCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateThread(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateThreadAndRun(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateThreadAndRun(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateThreadAndRunAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateThreadAndRunAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateThreadAndRunStreaming(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateThreadAndRunStreamingAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateThreadAsync(ThreadCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateThreadAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteAssistant(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteAssistant(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAssistantAsync(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAssistantAsync(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteMessage(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteMessage(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteMessageAsync(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteMessageAsync(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteThread(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteThread(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteThreadAsync(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetAssistant(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetAssistant(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetAssistantAsync(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetAssistantAsync(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetAssistants(AssistantCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetAssistants(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetAssistantsAsync(AssistantCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetMessage(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetMessage(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetMessageAsync(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetMessageAsync(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetMessages(string threadId, MessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetMessages(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetMessagesAsync(string threadId, MessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetMessagesAsync(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRun(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRun(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetRunAsync(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunAsync(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetRuns(string threadId, RunCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetRuns(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetRunsAsync(string threadId, RunCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetRunsAsync(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRunStep(string threadId, string runId, string stepId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRunStep(string threadId, string runId, string stepId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetRunStepAsync(string threadId, string runId, string stepId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunStepAsync(string threadId, string runId, string stepId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetRunSteps(string threadId, string runId, RunStepCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetRunSteps(string threadId, string runId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, RunStepCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetThread(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetThread(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetThreadAsync(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyAssistant(string assistantId, AssistantModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyAssistant(string assistantId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyAssistantAsync(string assistantId, AssistantModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyAssistantAsync(string assistantId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyMessage(string threadId, string messageId, MessageModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyMessage(string threadId, string messageId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyMessageAsync(string threadId, string messageId, MessageModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyMessageAsync(string threadId, string messageId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyRun(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ModifyRunAsync(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyThread(string threadId, ThreadModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyThread(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyThreadAsync(string threadId, ThreadModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyThreadAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult SubmitToolOutputsToRun(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult SubmitToolOutputsToRun(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task SubmitToolOutputsToRunAsync(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> SubmitToolOutputsToRunAsync(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult SubmitToolOutputsToRunStreaming(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult SubmitToolOutputsToRunStreamingAsync(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class AssistantClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public AssistantCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual AssistantCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct AssistantCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AssistantCollectionOrder(string value) { } + public static AssistantCollectionOrder Ascending { get { throw null; } } + public static AssistantCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(AssistantCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AssistantCollectionOrder left, AssistantCollectionOrder right) { throw null; } + public static implicit operator AssistantCollectionOrder(string value) { throw null; } + public static implicit operator AssistantCollectionOrder?(string value) { throw null; } + public static bool operator !=(AssistantCollectionOrder left, AssistantCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Description { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolResources ToolResources { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + + protected virtual AssistantCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantDeletionResult() { } + public string AssistantId { get { throw null; } } + public bool Deleted { get { throw null; } } + + protected virtual AssistantDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AssistantDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual AssistantDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList DefaultTools { get { throw null; } } + public string Description { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual AssistantModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantResponseFormat : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantResponseFormat() { } + public static AssistantResponseFormat Auto { get { throw null; } } + public static AssistantResponseFormat JsonObject { get { throw null; } } + public static AssistantResponseFormat Text { get { throw null; } } + + public static AssistantResponseFormat CreateAutoFormat() { throw null; } + public static AssistantResponseFormat CreateJsonObjectFormat() { throw null; } + public static AssistantResponseFormat CreateJsonSchemaFormat(string name, System.BinaryData jsonSchema, string description = null, bool? strictSchemaEnabled = null) { throw null; } + public static AssistantResponseFormat CreateTextFormat() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + protected virtual AssistantResponseFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(AssistantResponseFormat first, AssistantResponseFormat second) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static implicit operator AssistantResponseFormat(string plainTextFormat) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(AssistantResponseFormat first, AssistantResponseFormat second) { throw null; } + protected virtual AssistantResponseFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantResponseFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantResponseFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + bool System.IEquatable.Equals(AssistantResponseFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + bool System.IEquatable.Equals(string other) { throw null; } + public override string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantThread : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantThread() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + + protected virtual AssistantThread JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AssistantThread(System.ClientModel.ClientResult result) { throw null; } + protected virtual AssistantThread PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantThread System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantThread System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolDefinition() { } + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList FileIds { get { throw null; } } + + protected virtual CodeInterpreterToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FileSearchRanker : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileSearchRanker(string value) { } + public static FileSearchRanker Auto { get { throw null; } } + public static FileSearchRanker Default20240821 { get { throw null; } } + + public readonly bool Equals(FileSearchRanker other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileSearchRanker left, FileSearchRanker right) { throw null; } + public static implicit operator FileSearchRanker(string value) { throw null; } + public static implicit operator FileSearchRanker?(string value) { throw null; } + public static bool operator !=(FileSearchRanker left, FileSearchRanker right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchRankingOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchRankingOptions(float scoreThreshold) { } + public FileSearchRanker? Ranker { get { throw null; } set { } } + public float ScoreThreshold { get { throw null; } set { } } + + protected virtual FileSearchRankingOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchRankingOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchRankingOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchRankingOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchToolDefinition() { } + public int? MaxResults { get { throw null; } set { } } + public FileSearchRankingOptions RankingOptions { get { throw null; } set { } } + + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList NewVectorStores { get { throw null; } } + public System.Collections.Generic.IList VectorStoreIds { get { throw null; } } + + protected virtual FileSearchToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionToolDefinition() { } + public FunctionToolDefinition(string name) { } + public string Description { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } set { } } + public bool? StrictParameterSchemaEnabled { get { throw null; } set { } } + + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public MessageCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual MessageCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct MessageCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageCollectionOrder(string value) { } + public static MessageCollectionOrder Ascending { get { throw null; } } + public static MessageCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(MessageCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageCollectionOrder left, MessageCollectionOrder right) { throw null; } + public static implicit operator MessageCollectionOrder(string value) { throw null; } + public static implicit operator MessageCollectionOrder?(string value) { throw null; } + public static bool operator !=(MessageCollectionOrder left, MessageCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class MessageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageContent() { } + public MessageImageDetail? ImageDetail { get { throw null; } } + public string ImageFileId { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TextAnnotations { get { throw null; } } + + public static MessageContent FromImageFileId(string imageFileId, MessageImageDetail? detail = null) { throw null; } + public static MessageContent FromImageUri(System.Uri imageUri, MessageImageDetail? detail = null) { throw null; } + public static MessageContent FromText(string text) { throw null; } + protected virtual MessageContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator MessageContent(string value) { throw null; } + protected virtual MessageContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageContentUpdate : StreamingUpdate + { + internal MessageContentUpdate() { } + public MessageImageDetail? ImageDetail { get { throw null; } } + public string ImageFileId { get { throw null; } } + public string MessageId { get { throw null; } } + public int MessageIndex { get { throw null; } } + public string RefusalUpdate { get { throw null; } } + public MessageRole? Role { get { throw null; } } + public string Text { get { throw null; } } + public TextAnnotationUpdate TextAnnotation { get { throw null; } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageCreationAttachment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public MessageCreationAttachment(string fileId, System.Collections.Generic.IEnumerable tools) { } + public string FileId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + + protected virtual MessageCreationAttachment JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCreationAttachment PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCreationAttachment System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCreationAttachment System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Attachments { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual MessageCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageDeletionResult() { } + public bool Deleted { get { throw null; } } + public string MessageId { get { throw null; } } + + protected virtual MessageDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator MessageDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual MessageDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageFailureDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageFailureDetails() { } + public MessageFailureReason Reason { get { throw null; } } + + protected virtual MessageFailureDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageFailureDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageFailureDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageFailureDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct MessageFailureReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageFailureReason(string value) { } + public static MessageFailureReason ContentFilter { get { throw null; } } + public static MessageFailureReason MaxTokens { get { throw null; } } + public static MessageFailureReason RunCancelled { get { throw null; } } + public static MessageFailureReason RunExpired { get { throw null; } } + public static MessageFailureReason RunFailed { get { throw null; } } + + public readonly bool Equals(MessageFailureReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageFailureReason left, MessageFailureReason right) { throw null; } + public static implicit operator MessageFailureReason(string value) { throw null; } + public static implicit operator MessageFailureReason?(string value) { throw null; } + public static bool operator !=(MessageFailureReason left, MessageFailureReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageImageDetail + { Auto = 0, Low = 1, High = 2 } - [Experimental("OPENAI001")] - public class MessageModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - protected virtual MessageModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum MessageRole { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual MessageModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageRole + { User = 0, Assistant = 1 } - [Experimental("OPENAI001")] - public readonly partial struct MessageStatus : IEquatable { - public MessageStatus(string value); - public static MessageStatus Completed { get; } - public static MessageStatus Incomplete { get; } - public static MessageStatus InProgress { get; } - public readonly bool Equals(MessageStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageStatus left, MessageStatus right); - public static implicit operator MessageStatus(string value); - public static implicit operator MessageStatus?(string value); - public static bool operator !=(MessageStatus left, MessageStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class MessageStatusUpdate : StreamingUpdate { - } - [Experimental("OPENAI001")] - public abstract class RequiredAction { - public string FunctionArguments { get; } - public string FunctionName { get; } - public string ToolCallId { get; } - } - [Experimental("OPENAI001")] - public class RequiredActionUpdate : RunUpdate { - public string FunctionArguments { get; } - public string FunctionName { get; } - public string ToolCallId { get; } - public ThreadRun GetThreadRun(); - } - [Experimental("OPENAI001")] - public class RunCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public RunCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual RunCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunCollectionOrder : IEquatable { - public RunCollectionOrder(string value); - public static RunCollectionOrder Ascending { get; } - public static RunCollectionOrder Descending { get; } - public readonly bool Equals(RunCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunCollectionOrder left, RunCollectionOrder right); - public static implicit operator RunCollectionOrder(string value); - public static implicit operator RunCollectionOrder?(string value); - public static bool operator !=(RunCollectionOrder left, RunCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunCreationOptions : IJsonModel, IPersistableModel { - public string AdditionalInstructions { get; set; } - public IList AdditionalMessages { get; } - public bool? AllowParallelToolCalls { get; set; } - public string InstructionsOverride { get; set; } - public int? MaxInputTokenCount { get; set; } - public int? MaxOutputTokenCount { get; set; } - public IDictionary Metadata { get; } - public string ModelOverride { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolConstraint ToolConstraint { get; set; } - public IList ToolsOverride { get; } - public RunTruncationStrategy TruncationStrategy { get; set; } - protected virtual RunCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunError : IJsonModel, IPersistableModel { - public RunErrorCode Code { get; } - public string Message { get; } - protected virtual RunError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunErrorCode : IEquatable { - public RunErrorCode(string value); - public static RunErrorCode InvalidPrompt { get; } - public static RunErrorCode RateLimitExceeded { get; } - public static RunErrorCode ServerError { get; } - public readonly bool Equals(RunErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunErrorCode left, RunErrorCode right); - public static implicit operator RunErrorCode(string value); - public static implicit operator RunErrorCode?(string value); - public static bool operator !=(RunErrorCode left, RunErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunIncompleteDetails : IJsonModel, IPersistableModel { - public RunIncompleteReason? Reason { get; } - protected virtual RunIncompleteDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunIncompleteDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunIncompleteReason : IEquatable { - public RunIncompleteReason(string value); - public static RunIncompleteReason MaxInputTokenCount { get; } - public static RunIncompleteReason MaxOutputTokenCount { get; } - public readonly bool Equals(RunIncompleteReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right); - public static implicit operator RunIncompleteReason(string value); - public static implicit operator RunIncompleteReason?(string value); - public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - protected virtual RunModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunStatus : IEquatable { - public RunStatus(string value); - public static RunStatus Cancelled { get; } - public static RunStatus Cancelling { get; } - public static RunStatus Completed { get; } - public static RunStatus Expired { get; } - public static RunStatus Failed { get; } - public static RunStatus Incomplete { get; } - public static RunStatus InProgress { get; } - public bool IsTerminal { get; } - public static RunStatus Queued { get; } - public static RunStatus RequiresAction { get; } - public readonly bool Equals(RunStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStatus left, RunStatus right); - public static implicit operator RunStatus(string value); - public static implicit operator RunStatus?(string value); - public static bool operator !=(RunStatus left, RunStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunStep : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CompletedAt { get; } - public DateTimeOffset CreatedAt { get; } - public RunStepDetails Details { get; } - public DateTimeOffset? ExpiredAt { get; } - public DateTimeOffset? FailedAt { get; } - public string Id { get; } - public RunStepKind Kind { get; } - public RunStepError LastError { get; } - public IReadOnlyDictionary Metadata { get; } - public string RunId { get; } - public RunStepStatus Status { get; } - public string ThreadId { get; } - public RunStepTokenUsage Usage { get; } - protected virtual RunStep JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RunStep(ClientResult result); - protected virtual RunStep PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public abstract class RunStepCodeInterpreterOutput : IJsonModel, IPersistableModel { - public string ImageFileId { get; } - public string Logs { get; } - protected virtual RunStepCodeInterpreterOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepCodeInterpreterOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public RunStepCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual RunStepCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunStepCollectionOrder : IEquatable { - public RunStepCollectionOrder(string value); - public static RunStepCollectionOrder Ascending { get; } - public static RunStepCollectionOrder Descending { get; } - public readonly bool Equals(RunStepCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepCollectionOrder left, RunStepCollectionOrder right); - public static implicit operator RunStepCollectionOrder(string value); - public static implicit operator RunStepCollectionOrder?(string value); - public static bool operator !=(RunStepCollectionOrder left, RunStepCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public abstract class RunStepDetails : IJsonModel, IPersistableModel { - public string CreatedMessageId { get; } - public IReadOnlyList ToolCalls { get; } - protected virtual RunStepDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepDetailsUpdate : StreamingUpdate { - public string CodeInterpreterInput { get; } - public IReadOnlyList CodeInterpreterOutputs { get; } - public string CreatedMessageId { get; } - public FileSearchRankingOptions FileSearchRankingOptions { get; } - public IReadOnlyList FileSearchResults { get; } - public string FunctionArguments { get; } - public string FunctionName { get; } - public string FunctionOutput { get; } - public string StepId { get; } - public string ToolCallId { get; } - public int? ToolCallIndex { get; } - } - [Experimental("OPENAI001")] - public class RunStepError : IJsonModel, IPersistableModel { - public RunStepErrorCode Code { get; } - public string Message { get; } - protected virtual RunStepError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunStepErrorCode : IEquatable { - public RunStepErrorCode(string value); - public static RunStepErrorCode RateLimitExceeded { get; } - public static RunStepErrorCode ServerError { get; } - public readonly bool Equals(RunStepErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepErrorCode left, RunStepErrorCode right); - public static implicit operator RunStepErrorCode(string value); - public static implicit operator RunStepErrorCode?(string value); - public static bool operator !=(RunStepErrorCode left, RunStepErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunStepFileSearchResult : IJsonModel, IPersistableModel { - public IReadOnlyList Content { get; } - public string FileId { get; } - public string FileName { get; } - public float Score { get; } - protected virtual RunStepFileSearchResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepFileSearchResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepFileSearchResultContent : IJsonModel, IPersistableModel { - public RunStepFileSearchResultContentKind Kind { get; } - public string Text { get; } - protected virtual RunStepFileSearchResultContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepFileSearchResultContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum RunStepFileSearchResultContentKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct MessageStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageStatus(string value) { } + public static MessageStatus Completed { get { throw null; } } + public static MessageStatus Incomplete { get { throw null; } } + public static MessageStatus InProgress { get { throw null; } } + + public readonly bool Equals(MessageStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageStatus left, MessageStatus right) { throw null; } + public static implicit operator MessageStatus(string value) { throw null; } + public static implicit operator MessageStatus?(string value) { throw null; } + public static bool operator !=(MessageStatus left, MessageStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageStatusUpdate : StreamingUpdate + { + internal MessageStatusUpdate() { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class RequiredAction + { + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ToolCallId { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RequiredActionUpdate : RunUpdate + { + internal RequiredActionUpdate() { } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ToolCallId { get { throw null; } } + + public ThreadRun GetThreadRun() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public RunCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual RunCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunCollectionOrder(string value) { } + public static RunCollectionOrder Ascending { get { throw null; } } + public static RunCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(RunCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunCollectionOrder left, RunCollectionOrder right) { throw null; } + public static implicit operator RunCollectionOrder(string value) { throw null; } + public static implicit operator RunCollectionOrder?(string value) { throw null; } + public static bool operator !=(RunCollectionOrder left, RunCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AdditionalInstructions { get { throw null; } set { } } + public System.Collections.Generic.IList AdditionalMessages { get { throw null; } } + public bool? AllowParallelToolCalls { get { throw null; } set { } } + public string InstructionsOverride { get { throw null; } set { } } + public int? MaxInputTokenCount { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string ModelOverride { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolConstraint ToolConstraint { get { throw null; } set { } } + public System.Collections.Generic.IList ToolsOverride { get { throw null; } } + public RunTruncationStrategy TruncationStrategy { get { throw null; } set { } } + + protected virtual RunCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunError() { } + public RunErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual RunError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunErrorCode(string value) { } + public static RunErrorCode InvalidPrompt { get { throw null; } } + public static RunErrorCode RateLimitExceeded { get { throw null; } } + public static RunErrorCode ServerError { get { throw null; } } + + public readonly bool Equals(RunErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunErrorCode left, RunErrorCode right) { throw null; } + public static implicit operator RunErrorCode(string value) { throw null; } + public static implicit operator RunErrorCode?(string value) { throw null; } + public static bool operator !=(RunErrorCode left, RunErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunIncompleteDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunIncompleteDetails() { } + public RunIncompleteReason? Reason { get { throw null; } } + + protected virtual RunIncompleteDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunIncompleteDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunIncompleteDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunIncompleteDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunIncompleteReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunIncompleteReason(string value) { } + public static RunIncompleteReason MaxInputTokenCount { get { throw null; } } + public static RunIncompleteReason MaxOutputTokenCount { get { throw null; } } + + public readonly bool Equals(RunIncompleteReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right) { throw null; } + public static implicit operator RunIncompleteReason(string value) { throw null; } + public static implicit operator RunIncompleteReason?(string value) { throw null; } + public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual RunModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStatus(string value) { } + public static RunStatus Cancelled { get { throw null; } } + public static RunStatus Cancelling { get { throw null; } } + public static RunStatus Completed { get { throw null; } } + public static RunStatus Expired { get { throw null; } } + public static RunStatus Failed { get { throw null; } } + public static RunStatus Incomplete { get { throw null; } } + public static RunStatus InProgress { get { throw null; } } + public bool IsTerminal { get { throw null; } } + public static RunStatus Queued { get { throw null; } } + public static RunStatus RequiresAction { get { throw null; } } + + public readonly bool Equals(RunStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStatus left, RunStatus right) { throw null; } + public static implicit operator RunStatus(string value) { throw null; } + public static implicit operator RunStatus?(string value) { throw null; } + public static bool operator !=(RunStatus left, RunStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStep : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStep() { } + public string AssistantId { get { throw null; } } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public RunStepDetails Details { get { throw null; } } + public System.DateTimeOffset? ExpiredAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public string Id { get { throw null; } } + public RunStepKind Kind { get { throw null; } } + public RunStepError LastError { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string RunId { get { throw null; } } + public RunStepStatus Status { get { throw null; } } + public string ThreadId { get { throw null; } } + public RunStepTokenUsage Usage { get { throw null; } } + + protected virtual RunStep JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RunStep(System.ClientModel.ClientResult result) { throw null; } + protected virtual RunStep PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStep System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStep System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class RunStepCodeInterpreterOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepCodeInterpreterOutput() { } + public string ImageFileId { get { throw null; } } + public string Logs { get { throw null; } } + + protected virtual RunStepCodeInterpreterOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepCodeInterpreterOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepCodeInterpreterOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepCodeInterpreterOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public RunStepCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual RunStepCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStepCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepCollectionOrder(string value) { } + public static RunStepCollectionOrder Ascending { get { throw null; } } + public static RunStepCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(RunStepCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepCollectionOrder left, RunStepCollectionOrder right) { throw null; } + public static implicit operator RunStepCollectionOrder(string value) { throw null; } + public static implicit operator RunStepCollectionOrder?(string value) { throw null; } + public static bool operator !=(RunStepCollectionOrder left, RunStepCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class RunStepDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepDetails() { } + public string CreatedMessageId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + + protected virtual RunStepDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepDetailsUpdate : StreamingUpdate + { + internal RunStepDetailsUpdate() { } + public string CodeInterpreterInput { get { throw null; } } + public System.Collections.Generic.IReadOnlyList CodeInterpreterOutputs { get { throw null; } } + public string CreatedMessageId { get { throw null; } } + public FileSearchRankingOptions FileSearchRankingOptions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FileSearchResults { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string FunctionOutput { get { throw null; } } + public string StepId { get { throw null; } } + public string ToolCallId { get { throw null; } } + public int? ToolCallIndex { get { throw null; } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepError() { } + public RunStepErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual RunStepError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStepErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepErrorCode(string value) { } + public static RunStepErrorCode RateLimitExceeded { get { throw null; } } + public static RunStepErrorCode ServerError { get { throw null; } } + + public readonly bool Equals(RunStepErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepErrorCode left, RunStepErrorCode right) { throw null; } + public static implicit operator RunStepErrorCode(string value) { throw null; } + public static implicit operator RunStepErrorCode?(string value) { throw null; } + public static bool operator !=(RunStepErrorCode left, RunStepErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepFileSearchResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepFileSearchResult() { } + public System.Collections.Generic.IReadOnlyList Content { get { throw null; } } + public string FileId { get { throw null; } } + public string FileName { get { throw null; } } + public float Score { get { throw null; } } + + protected virtual RunStepFileSearchResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepFileSearchResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepFileSearchResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepFileSearchResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepFileSearchResultContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepFileSearchResultContent() { } + public RunStepFileSearchResultContentKind Kind { get { throw null; } } + public string Text { get { throw null; } } + + protected virtual RunStepFileSearchResultContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepFileSearchResultContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepFileSearchResultContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepFileSearchResultContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum RunStepFileSearchResultContentKind + { Text = 0 } - [Experimental("OPENAI001")] - public enum RunStepKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum RunStepKind + { CreatedMessage = 0, ToolCall = 1 } - [Experimental("OPENAI001")] - public readonly partial struct RunStepStatus : IEquatable { - public RunStepStatus(string value); - public static RunStepStatus Cancelled { get; } - public static RunStepStatus Completed { get; } - public static RunStepStatus Expired { get; } - public static RunStepStatus Failed { get; } - public static RunStepStatus InProgress { get; } - public readonly bool Equals(RunStepStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepStatus left, RunStepStatus right); - public static implicit operator RunStepStatus(string value); - public static implicit operator RunStepStatus?(string value); - public static bool operator !=(RunStepStatus left, RunStepStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunStepTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public int OutputTokenCount { get; } - public int TotalTokenCount { get; } - protected virtual RunStepTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepToolCall : IJsonModel, IPersistableModel { - public string CodeInterpreterInput { get; } - public IReadOnlyList CodeInterpreterOutputs { get; } - public FileSearchRankingOptions FileSearchRankingOptions { get; } - public IReadOnlyList FileSearchResults { get; } - public string FunctionArguments { get; } - public string FunctionName { get; } - public string FunctionOutput { get; } - public string Id { get; } - public RunStepToolCallKind Kind { get; } - protected virtual RunStepToolCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepToolCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum RunStepToolCallKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStepStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepStatus(string value) { } + public static RunStepStatus Cancelled { get { throw null; } } + public static RunStepStatus Completed { get { throw null; } } + public static RunStepStatus Expired { get { throw null; } } + public static RunStepStatus Failed { get { throw null; } } + public static RunStepStatus InProgress { get { throw null; } } + + public readonly bool Equals(RunStepStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepStatus left, RunStepStatus right) { throw null; } + public static implicit operator RunStepStatus(string value) { throw null; } + public static implicit operator RunStepStatus?(string value) { throw null; } + public static bool operator !=(RunStepStatus left, RunStepStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual RunStepTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepToolCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepToolCall() { } + public string CodeInterpreterInput { get { throw null; } } + public System.Collections.Generic.IReadOnlyList CodeInterpreterOutputs { get { throw null; } } + public FileSearchRankingOptions FileSearchRankingOptions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FileSearchResults { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string FunctionOutput { get { throw null; } } + public string Id { get { throw null; } } + public RunStepToolCallKind Kind { get { throw null; } } + + protected virtual RunStepToolCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepToolCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepToolCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepToolCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum RunStepToolCallKind + { CodeInterpreter = 0, FileSearch = 1, Function = 2 } - [Experimental("OPENAI001")] - public class RunStepUpdate : StreamingUpdate { - } - [Experimental("OPENAI001")] - public class RunStepUpdateCodeInterpreterOutput : IJsonModel, IPersistableModel { - public string ImageFileId { get; } - public string Logs { get; } - public int OutputIndex { get; } - protected virtual RunStepUpdateCodeInterpreterOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepUpdateCodeInterpreterOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public int OutputTokenCount { get; } - public int TotalTokenCount { get; } - protected virtual RunTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunTruncationStrategy : IJsonModel, IPersistableModel { - public static RunTruncationStrategy Auto { get; } - public int? LastMessages { get; } - public static RunTruncationStrategy CreateLastMessagesStrategy(int lastMessageCount); - protected virtual RunTruncationStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunTruncationStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunUpdate : StreamingUpdate { - } - [Experimental("OPENAI001")] - public abstract class StreamingUpdate { - public StreamingUpdateReason UpdateKind { get; } - } - [Experimental("OPENAI001")] - public enum StreamingUpdateReason { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepUpdate : StreamingUpdate + { + internal RunStepUpdate() { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepUpdateCodeInterpreterOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepUpdateCodeInterpreterOutput() { } + public string ImageFileId { get { throw null; } } + public string Logs { get { throw null; } } + public int OutputIndex { get { throw null; } } + + protected virtual RunStepUpdateCodeInterpreterOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepUpdateCodeInterpreterOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepUpdateCodeInterpreterOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepUpdateCodeInterpreterOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual RunTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunTruncationStrategy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunTruncationStrategy() { } + public static RunTruncationStrategy Auto { get { throw null; } } + public int? LastMessages { get { throw null; } } + + public static RunTruncationStrategy CreateLastMessagesStrategy(int lastMessageCount) { throw null; } + protected virtual RunTruncationStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunTruncationStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunTruncationStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunTruncationStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunUpdate : StreamingUpdate + { + internal RunUpdate() { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class StreamingUpdate + { + internal StreamingUpdate() { } + public StreamingUpdateReason UpdateKind { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum StreamingUpdateReason + { Unknown = 0, ThreadCreated = 1, RunCreated = 2, @@ -926,1072 +1687,1574 @@ public enum StreamingUpdateReason { Error = 24, Done = 25 } - [Experimental("OPENAI001")] - public class StreamingUpdate : StreamingUpdate where T : class { - public T Value { get; } - public static implicit operator T(StreamingUpdate update); - } - [Experimental("OPENAI001")] - public class TextAnnotation { - public int EndIndex { get; } - public string InputFileId { get; } - public string OutputFileId { get; } - public int StartIndex { get; } - public string TextToReplace { get; } - } - [Experimental("OPENAI001")] - public class TextAnnotationUpdate { - public int ContentIndex { get; } - public int? EndIndex { get; } - public string InputFileId { get; } - public string OutputFileId { get; } - public int? StartIndex { get; } - public string TextToReplace { get; } - } - [Experimental("OPENAI001")] - public class ThreadCreationOptions : IJsonModel, IPersistableModel { - public IList InitialMessages { get; } - public IDictionary Metadata { get; } - public ToolResources ToolResources { get; set; } - protected virtual ThreadCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ThreadCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string ThreadId { get; } - protected virtual ThreadDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadDeletionResult(ClientResult result); - protected virtual ThreadDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadInitializationMessage : MessageCreationOptions { - public ThreadInitializationMessage(MessageRole role, IEnumerable content); - public static implicit operator ThreadInitializationMessage(string initializationMessage); - } - [Experimental("OPENAI001")] - public class ThreadMessage : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public IReadOnlyList Attachments { get; } - public DateTimeOffset? CompletedAt { get; } - public IReadOnlyList Content { get; } - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public DateTimeOffset? IncompleteAt { get; } - public MessageFailureDetails IncompleteDetails { get; } - public IReadOnlyDictionary Metadata { get; } - public MessageRole Role { get; } - public string RunId { get; } - public MessageStatus Status { get; } - public string ThreadId { get; } - protected virtual ThreadMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadMessage(ClientResult result); - protected virtual ThreadMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - public ToolResources ToolResources { get; set; } - protected virtual ThreadModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ThreadModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadRun : IJsonModel, IPersistableModel { - public bool? AllowParallelToolCalls { get; } - public string AssistantId { get; } - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CompletedAt { get; } - public DateTimeOffset CreatedAt { get; } - public DateTimeOffset? ExpiresAt { get; } - public DateTimeOffset? FailedAt { get; } - public string Id { get; } - public RunIncompleteDetails IncompleteDetails { get; } - public string Instructions { get; } - public RunError LastError { get; } - public int? MaxInputTokenCount { get; } - public int? MaxOutputTokenCount { get; } - public IReadOnlyDictionary Metadata { get; } - public string Model { get; } - public float? NucleusSamplingFactor { get; } - public IReadOnlyList RequiredActions { get; } - public AssistantResponseFormat ResponseFormat { get; } - public DateTimeOffset? StartedAt { get; } - public RunStatus Status { get; } - public float? Temperature { get; } - public string ThreadId { get; } - public ToolConstraint ToolConstraint { get; } - public IReadOnlyList Tools { get; } - public RunTruncationStrategy TruncationStrategy { get; } - public RunTokenUsage Usage { get; } - protected virtual ThreadRun JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadRun(ClientResult result); - protected virtual ThreadRun PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadUpdate : StreamingUpdate { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public IReadOnlyDictionary Metadata { get; } - public ToolResources ToolResources { get; } - } - [Experimental("OPENAI001")] - public class ToolConstraint : IJsonModel, IPersistableModel { - public ToolConstraint(ToolDefinition toolDefinition); - public static ToolConstraint Auto { get; } - public static ToolConstraint None { get; } - public static ToolConstraint Required { get; } - protected virtual ToolConstraint JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolConstraint PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ToolDefinition : IJsonModel, IPersistableModel { - public static CodeInterpreterToolDefinition CreateCodeInterpreter(); - public static FileSearchToolDefinition CreateFileSearch(int? maxResults = null); - public static FunctionToolDefinition CreateFunction(string name, string description = null, BinaryData parameters = null, bool? strictParameterSchemaEnabled = null); - protected virtual ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ToolOutput : IJsonModel, IPersistableModel { - public ToolOutput(); - public ToolOutput(string toolCallId, string output); - public string Output { get; set; } - public string ToolCallId { get; set; } - protected virtual ToolOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ToolResources : IJsonModel, IPersistableModel { - public CodeInterpreterToolResources CodeInterpreter { get; set; } - public FileSearchToolResources FileSearch { get; set; } - protected virtual ToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreCreationHelper : IJsonModel, IPersistableModel { - public VectorStoreCreationHelper(); - public VectorStoreCreationHelper(IEnumerable files); - public VectorStoreCreationHelper(IEnumerable fileIds); - public FileChunkingStrategy ChunkingStrategy { get; set; } - public IList FileIds { get; } - public IDictionary Metadata { get; } - protected virtual VectorStoreCreationHelper JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCreationHelper PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingUpdate : StreamingUpdate where T : class + { + internal StreamingUpdate() { } + public T Value { get { throw null; } } + + public static implicit operator T(StreamingUpdate update) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class TextAnnotation + { + internal TextAnnotation() { } + public int EndIndex { get { throw null; } } + public string InputFileId { get { throw null; } } + public string OutputFileId { get { throw null; } } + public int StartIndex { get { throw null; } } + public string TextToReplace { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class TextAnnotationUpdate + { + internal TextAnnotationUpdate() { } + public int ContentIndex { get { throw null; } } + public int? EndIndex { get { throw null; } } + public string InputFileId { get { throw null; } } + public string OutputFileId { get { throw null; } } + public int? StartIndex { get { throw null; } } + public string TextToReplace { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList InitialMessages { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual ThreadCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ThreadCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadDeletionResult() { } + public bool Deleted { get { throw null; } } + public string ThreadId { get { throw null; } } + + protected virtual ThreadDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadInitializationMessage : MessageCreationOptions + { + public ThreadInitializationMessage(MessageRole role, System.Collections.Generic.IEnumerable content) { } + public static implicit operator ThreadInitializationMessage(string initializationMessage) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadMessage() { } + public string AssistantId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Attachments { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Content { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? IncompleteAt { get { throw null; } } + public MessageFailureDetails IncompleteDetails { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public MessageRole Role { get { throw null; } } + public string RunId { get { throw null; } } + public MessageStatus Status { get { throw null; } } + public string ThreadId { get { throw null; } } + + protected virtual ThreadMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadMessage(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual ThreadModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ThreadModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadRun : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadRun() { } + public bool? AllowParallelToolCalls { get { throw null; } } + public string AssistantId { get { throw null; } } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public string Id { get { throw null; } } + public RunIncompleteDetails IncompleteDetails { get { throw null; } } + public string Instructions { get { throw null; } } + public RunError LastError { get { throw null; } } + public int? MaxInputTokenCount { get { throw null; } } + public int? MaxOutputTokenCount { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } } + public float? NucleusSamplingFactor { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredActions { get { throw null; } } + public AssistantResponseFormat ResponseFormat { get { throw null; } } + public System.DateTimeOffset? StartedAt { get { throw null; } } + public RunStatus Status { get { throw null; } } + public float? Temperature { get { throw null; } } + public string ThreadId { get { throw null; } } + public ToolConstraint ToolConstraint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public RunTruncationStrategy TruncationStrategy { get { throw null; } } + public RunTokenUsage Usage { get { throw null; } } + + protected virtual ThreadRun JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadRun(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadRun PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadRun System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadRun System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadUpdate : StreamingUpdate + { + internal ThreadUpdate() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolConstraint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolConstraint(ToolDefinition toolDefinition) { } + public static ToolConstraint Auto { get { throw null; } } + public static ToolConstraint None { get { throw null; } } + public static ToolConstraint Required { get { throw null; } } + + protected virtual ToolConstraint JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolConstraint PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolConstraint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolConstraint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ToolDefinition() { } + public static CodeInterpreterToolDefinition CreateCodeInterpreter() { throw null; } + public static FileSearchToolDefinition CreateFileSearch(int? maxResults = null) { throw null; } + public static FunctionToolDefinition CreateFunction(string name, string description = null, System.BinaryData parameters = null, bool? strictParameterSchemaEnabled = null) { throw null; } + protected virtual ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolOutput() { } + public ToolOutput(string toolCallId, string output) { } + public string Output { get { throw null; } set { } } + public string ToolCallId { get { throw null; } set { } } + + protected virtual ToolOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolResources CodeInterpreter { get { throw null; } set { } } + public FileSearchToolResources FileSearch { get { throw null; } set { } } + + protected virtual ToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreCreationHelper : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreCreationHelper() { } + public VectorStoreCreationHelper(System.Collections.Generic.IEnumerable files) { } + public VectorStoreCreationHelper(System.Collections.Generic.IEnumerable fileIds) { } + public VectorStores.FileChunkingStrategy ChunkingStrategy { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual VectorStoreCreationHelper JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCreationHelper PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCreationHelper System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCreationHelper System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Audio { - public class AudioClient { - protected AudioClient(); - protected internal AudioClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public AudioClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public AudioClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public AudioClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public AudioClient(string model, AuthenticationPolicy authenticationPolicy); - public AudioClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateSpeech(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateSpeech(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateSpeechAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateSpeechAsync(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranscribeAudio(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult TranscribeAudio(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranscribeAudio(string audioFilePath, AudioTranscriptionOptions options = null); - public virtual Task TranscribeAudioAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> TranscribeAudioAsync(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> TranscribeAudioAsync(string audioFilePath, AudioTranscriptionOptions options = null); - [Experimental("OPENAI001")] - public virtual CollectionResult TranscribeAudioStreaming(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult TranscribeAudioStreaming(string audioFilePath, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult TranscribeAudioStreamingAsync(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult TranscribeAudioStreamingAsync(string audioFilePath, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranslateAudio(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult TranslateAudio(Stream audio, string audioFilename, AudioTranslationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranslateAudio(string audioFilePath, AudioTranslationOptions options = null); - public virtual Task TranslateAudioAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> TranslateAudioAsync(Stream audio, string audioFilename, AudioTranslationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> TranslateAudioAsync(string audioFilePath, AudioTranslationOptions options = null); - } - [Flags] - public enum AudioTimestampGranularities { + +namespace OpenAI.Audio +{ + public partial class AudioClient + { + protected AudioClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public AudioClient(AudioClientSettings settings) { } + protected internal AudioClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public AudioClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public AudioClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AudioClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AudioClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public AudioClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateSpeech(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateSpeech(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateSpeechAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateSpeechAsync(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(string audioFilePath, AudioTranscriptionOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task TranscribeAudioAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> TranscribeAudioAsync(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> TranscribeAudioAsync(string audioFilePath, AudioTranscriptionOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult TranscribeAudioStreaming(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult TranscribeAudioStreaming(string audioFilePath, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult TranscribeAudioStreamingAsync(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult TranscribeAudioStreamingAsync(string audioFilePath, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(System.IO.Stream audio, string audioFilename, AudioTranslationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(string audioFilePath, AudioTranslationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task TranslateAudioAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> TranslateAudioAsync(System.IO.Stream audio, string audioFilename, AudioTranslationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> TranslateAudioAsync(string audioFilePath, AudioTranslationOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class AudioClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Flags] + public enum AudioTimestampGranularities + { Default = 0, Word = 1, Segment = 2 } - [Experimental("OPENAI001")] - public class AudioTokenLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - public string Token { get; } - public ReadOnlyMemory Utf8Bytes { get; } - protected virtual AudioTokenLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AudioTokenLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AudioTranscription : IJsonModel, IPersistableModel { - public TimeSpan? Duration { get; } - public string Language { get; } - public IReadOnlyList Segments { get; } - public string Text { get; } - [Experimental("OPENAI001")] - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - public IReadOnlyList Words { get; } - [Experimental("OPENAI001")] - protected virtual AudioTranscription JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator AudioTranscription(ClientResult result); - [Experimental("OPENAI001")] - protected virtual AudioTranscription PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct AudioTranscriptionFormat : IEquatable { - public AudioTranscriptionFormat(string value); - public static AudioTranscriptionFormat Simple { get; } - public static AudioTranscriptionFormat Srt { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranscriptionFormat Text { get; } - public static AudioTranscriptionFormat Verbose { get; } - public static AudioTranscriptionFormat Vtt { get; } - public readonly bool Equals(AudioTranscriptionFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right); - public static implicit operator AudioTranscriptionFormat(string value); - public static implicit operator AudioTranscriptionFormat?(string value); - public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - [Flags] - public enum AudioTranscriptionIncludes { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AudioTokenLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTokenLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + public string Token { get { throw null; } } + public System.ReadOnlyMemory Utf8Bytes { get { throw null; } } + + protected virtual AudioTokenLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AudioTokenLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTokenLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTokenLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AudioTranscription : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTranscription() { } + public System.TimeSpan? Duration { get { throw null; } } + public string Language { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Segments { get { throw null; } } + public string Text { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Words { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscription JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator AudioTranscription(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscription PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranscription System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranscription System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct AudioTranscriptionFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AudioTranscriptionFormat(string value) { } + public static AudioTranscriptionFormat Simple { get { throw null; } } + public static AudioTranscriptionFormat Srt { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranscriptionFormat Text { get { throw null; } } + public static AudioTranscriptionFormat Verbose { get { throw null; } } + public static AudioTranscriptionFormat Vtt { get { throw null; } } + + public readonly bool Equals(AudioTranscriptionFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right) { throw null; } + public static implicit operator AudioTranscriptionFormat(string value) { throw null; } + public static implicit operator AudioTranscriptionFormat?(string value) { throw null; } + public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.Flags] + public enum AudioTranscriptionIncludes + { Default = 0, Logprobs = 1 } - public class AudioTranscriptionOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public AudioTranscriptionIncludes Includes { get; set; } - public string Language { get; set; } - public string Prompt { get; set; } - public AudioTranscriptionFormat? ResponseFormat { get; set; } - public float? Temperature { get; set; } - public AudioTimestampGranularities TimestampGranularities { get; set; } - [Experimental("OPENAI001")] - protected virtual AudioTranscriptionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual AudioTranscriptionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AudioTranslation : IJsonModel, IPersistableModel { - public TimeSpan? Duration { get; } - public string Language { get; } - public IReadOnlyList Segments { get; } - public string Text { get; } - [Experimental("OPENAI001")] - protected virtual AudioTranslation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator AudioTranslation(ClientResult result); - [Experimental("OPENAI001")] - protected virtual AudioTranslation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct AudioTranslationFormat : IEquatable { - public AudioTranslationFormat(string value); - public static AudioTranslationFormat Simple { get; } - public static AudioTranslationFormat Srt { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranslationFormat Text { get; } - public static AudioTranslationFormat Verbose { get; } - public static AudioTranslationFormat Vtt { get; } - public readonly bool Equals(AudioTranslationFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right); - public static implicit operator AudioTranslationFormat(string value); - public static implicit operator AudioTranslationFormat?(string value); - public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right); - public override readonly string ToString(); - } - public class AudioTranslationOptions : IJsonModel, IPersistableModel { - public string Prompt { get; set; } - public AudioTranslationFormat? ResponseFormat { get; set; } - public float? Temperature { get; set; } - [Experimental("OPENAI001")] - protected virtual AudioTranslationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual AudioTranslationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GeneratedSpeechFormat : IEquatable { - public GeneratedSpeechFormat(string value); - public static GeneratedSpeechFormat Aac { get; } - public static GeneratedSpeechFormat Flac { get; } - public static GeneratedSpeechFormat Mp3 { get; } - public static GeneratedSpeechFormat Opus { get; } - public static GeneratedSpeechFormat Pcm { get; } - public static GeneratedSpeechFormat Wav { get; } - public readonly bool Equals(GeneratedSpeechFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right); - public static implicit operator GeneratedSpeechFormat(string value); - public static implicit operator GeneratedSpeechFormat?(string value); - public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedSpeechVoice : IEquatable { - public GeneratedSpeechVoice(string value); - public static GeneratedSpeechVoice Alloy { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Ash { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Ballad { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Coral { get; } - public static GeneratedSpeechVoice Echo { get; } - public static GeneratedSpeechVoice Fable { get; } - public static GeneratedSpeechVoice Nova { get; } - public static GeneratedSpeechVoice Onyx { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Sage { get; } - public static GeneratedSpeechVoice Shimmer { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Verse { get; } - public readonly bool Equals(GeneratedSpeechVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right); - public static implicit operator GeneratedSpeechVoice(string value); - public static implicit operator GeneratedSpeechVoice?(string value); - public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right); - public override readonly string ToString(); - } - public static class OpenAIAudioModelFactory { - [Experimental("OPENAI001")] - public static AudioTranscription AudioTranscription(string language = null, TimeSpan? duration = null, string text = null, IEnumerable words = null, IEnumerable segments = null, IEnumerable transcriptionTokenLogProbabilities = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranscription AudioTranscription(string language, TimeSpan? duration, string text, IEnumerable words, IEnumerable segments); - public static AudioTranslation AudioTranslation(string language = null, TimeSpan? duration = null, string text = null, IEnumerable segments = null); - public static TranscribedSegment TranscribedSegment(int id = 0, int seekOffset = 0, TimeSpan startTime = default, TimeSpan endTime = default, string text = null, ReadOnlyMemory tokenIds = default, float temperature = 0, float averageLogProbability = 0, float compressionRatio = 0, float noSpeechProbability = 0); - public static TranscribedWord TranscribedWord(string word = null, TimeSpan startTime = default, TimeSpan endTime = default); - } - public class SpeechGenerationOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public string Instructions { get; set; } - public GeneratedSpeechFormat? ResponseFormat { get; set; } - public float? SpeedRatio { get; set; } - [Experimental("OPENAI001")] - protected virtual SpeechGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual SpeechGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public string Delta { get; } - public string SegmentId { get; } - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public string Text { get; } - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionTextSegmentUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public TimeSpan EndTime { get; } - public string SegmentId { get; } - public string SpeakerLabel { get; } - public TimeSpan StartTime { get; } - public string Text { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionUpdate : IJsonModel, IPersistableModel { - protected virtual StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct StreamingAudioTranscriptionUpdateKind : IEquatable { - public StreamingAudioTranscriptionUpdateKind(string value); - public static StreamingAudioTranscriptionUpdateKind TranscriptTextDelta { get; } - public static StreamingAudioTranscriptionUpdateKind TranscriptTextDone { get; } - public static StreamingAudioTranscriptionUpdateKind TranscriptTextSegment { get; } - public readonly bool Equals(StreamingAudioTranscriptionUpdateKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right); - public static implicit operator StreamingAudioTranscriptionUpdateKind(string value); - public static implicit operator StreamingAudioTranscriptionUpdateKind?(string value); - public static bool operator !=(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right); - public override readonly string ToString(); - } - public readonly partial struct TranscribedSegment : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public float AverageLogProbability { get; } - public float CompressionRatio { get; } - public TimeSpan EndTime { get; } - public int Id { get; } - public float NoSpeechProbability { get; } - public int SeekOffset { get; } - public TimeSpan StartTime { get; } - public float Temperature { get; } - public string Text { get; } - public ReadOnlyMemory TokenIds { get; } - } - public readonly partial struct TranscribedWord : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public TimeSpan EndTime { get; } - public TimeSpan StartTime { get; } - public string Word { get; } + + public partial class AudioTranscriptionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AudioTranscriptionIncludes Includes { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Prompt { get { throw null; } set { } } + public AudioTranscriptionFormat? ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public AudioTimestampGranularities TimestampGranularities { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscriptionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscriptionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranscriptionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranscriptionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AudioTranslation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTranslation() { } + public System.TimeSpan? Duration { get { throw null; } } + public string Language { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Segments { get { throw null; } } + public string Text { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator AudioTranslation(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranslation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranslation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct AudioTranslationFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AudioTranslationFormat(string value) { } + public static AudioTranslationFormat Simple { get { throw null; } } + public static AudioTranslationFormat Srt { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranslationFormat Text { get { throw null; } } + public static AudioTranslationFormat Verbose { get { throw null; } } + public static AudioTranslationFormat Vtt { get { throw null; } } + + public readonly bool Equals(AudioTranslationFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right) { throw null; } + public static implicit operator AudioTranslationFormat(string value) { throw null; } + public static implicit operator AudioTranslationFormat?(string value) { throw null; } + public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class AudioTranslationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Prompt { get { throw null; } set { } } + public AudioTranslationFormat? ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranslationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranslationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GeneratedSpeechFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedSpeechFormat(string value) { } + public static GeneratedSpeechFormat Aac { get { throw null; } } + public static GeneratedSpeechFormat Flac { get { throw null; } } + public static GeneratedSpeechFormat Mp3 { get { throw null; } } + public static GeneratedSpeechFormat Opus { get { throw null; } } + public static GeneratedSpeechFormat Pcm { get { throw null; } } + public static GeneratedSpeechFormat Wav { get { throw null; } } + + public readonly bool Equals(GeneratedSpeechFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right) { throw null; } + public static implicit operator GeneratedSpeechFormat(string value) { throw null; } + public static implicit operator GeneratedSpeechFormat?(string value) { throw null; } + public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedSpeechVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedSpeechVoice(string value) { } + public static GeneratedSpeechVoice Alloy { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Ash { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Ballad { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Coral { get { throw null; } } + public static GeneratedSpeechVoice Echo { get { throw null; } } + public static GeneratedSpeechVoice Fable { get { throw null; } } + public static GeneratedSpeechVoice Nova { get { throw null; } } + public static GeneratedSpeechVoice Onyx { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Sage { get { throw null; } } + public static GeneratedSpeechVoice Shimmer { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Verse { get { throw null; } } + + public readonly bool Equals(GeneratedSpeechVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right) { throw null; } + public static implicit operator GeneratedSpeechVoice(string value) { throw null; } + public static implicit operator GeneratedSpeechVoice?(string value) { throw null; } + public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public static partial class OpenAIAudioModelFactory + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static AudioTranscription AudioTranscription(string language = null, System.TimeSpan? duration = null, string text = null, System.Collections.Generic.IEnumerable words = null, System.Collections.Generic.IEnumerable segments = null, System.Collections.Generic.IEnumerable transcriptionTokenLogProbabilities = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranscription AudioTranscription(string language, System.TimeSpan? duration, string text, System.Collections.Generic.IEnumerable words, System.Collections.Generic.IEnumerable segments) { throw null; } + public static AudioTranslation AudioTranslation(string language = null, System.TimeSpan? duration = null, string text = null, System.Collections.Generic.IEnumerable segments = null) { throw null; } + public static TranscribedSegment TranscribedSegment(int id = 0, int seekOffset = 0, System.TimeSpan startTime = default, System.TimeSpan endTime = default, string text = null, System.ReadOnlyMemory tokenIds = default, float temperature = 0, float averageLogProbability = 0, float compressionRatio = 0, float noSpeechProbability = 0) { throw null; } + public static TranscribedWord TranscribedWord(string word = null, System.TimeSpan startTime = default, System.TimeSpan endTime = default) { throw null; } + } + public partial class SpeechGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Instructions { get { throw null; } set { } } + public GeneratedSpeechFormat? ResponseFormat { get { throw null; } set { } } + public float? SpeedRatio { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual SpeechGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual SpeechGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + SpeechGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + SpeechGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextDeltaUpdate() { } + public string Delta { get { throw null; } } + public string SegmentId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextDoneUpdate() { } + public string Text { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionTextSegmentUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextSegmentUpdate() { } + public System.TimeSpan EndTime { get { throw null; } } + public string SegmentId { get { throw null; } } + public string SpeakerLabel { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public string Text { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextSegmentUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextSegmentUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionUpdate() { } + protected virtual StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct StreamingAudioTranscriptionUpdateKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StreamingAudioTranscriptionUpdateKind(string value) { } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextDelta { get { throw null; } } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextDone { get { throw null; } } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextSegment { get { throw null; } } + + public readonly bool Equals(StreamingAudioTranscriptionUpdateKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right) { throw null; } + public static implicit operator StreamingAudioTranscriptionUpdateKind(string value) { throw null; } + public static implicit operator StreamingAudioTranscriptionUpdateKind?(string value) { throw null; } + public static bool operator !=(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct TranscribedSegment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public float AverageLogProbability { get { throw null; } } + public float CompressionRatio { get { throw null; } } + public System.TimeSpan EndTime { get { throw null; } } + public int Id { get { throw null; } } + public float NoSpeechProbability { get { throw null; } } + public int SeekOffset { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public float Temperature { get { throw null; } } + public string Text { get { throw null; } } + public System.ReadOnlyMemory TokenIds { get { throw null; } } + + readonly TranscribedSegment System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly TranscribedSegment System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct TranscribedWord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.TimeSpan EndTime { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public string Word { get { throw null; } } + + readonly TranscribedWord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly TranscribedWord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Batch { - [Experimental("OPENAI001")] - public class BatchClient { - protected BatchClient(); - public BatchClient(ApiKeyCredential credential, OpenAIClientOptions options); - public BatchClient(ApiKeyCredential credential); - public BatchClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public BatchClient(AuthenticationPolicy authenticationPolicy); - protected internal BatchClient(ClientPipeline pipeline, OpenAIClientOptions options); - public BatchClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual CreateBatchOperation CreateBatch(BinaryContent content, bool waitUntilCompleted, RequestOptions options = null); - public virtual Task CreateBatchAsync(BinaryContent content, bool waitUntilCompleted, RequestOptions options = null); - public virtual ClientResult GetBatch(string batchId, RequestOptions options); - public virtual Task GetBatchAsync(string batchId, RequestOptions options); - public virtual CollectionResult GetBatches(BatchCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetBatches(string after, int? limit, RequestOptions options); - public virtual AsyncCollectionResult GetBatchesAsync(BatchCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetBatchesAsync(string after, int? limit, RequestOptions options); - } - [Experimental("OPENAI001")] - public class BatchCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual BatchCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual BatchCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class BatchJob : IJsonModel, IPersistableModel { - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CancellingAt { get; } - public DateTimeOffset? CompletedAt { get; } - public string CompletionWindow { get; } - public DateTimeOffset CreatedAt { get; } - public string Endpoint { get; } - public string ErrorFileId { get; } - public DateTimeOffset? ExpiredAt { get; } - public DateTimeOffset? ExpiresAt { get; } - public DateTimeOffset? FailedAt { get; } - public DateTimeOffset? FinalizingAt { get; } - public string Id { get; } - public DateTimeOffset? InProgressAt { get; } - public string InputFileId { get; } - public IDictionary Metadata { get; } - public string Object { get; } - public string OutputFileId { get; } - protected virtual BatchJob JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator BatchJob(ClientResult result); - protected virtual BatchJob PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateBatchOperation : OperationResult { - public string BatchId { get; } - public override ContinuationToken? RehydrationToken { get; protected set; } - public virtual ClientResult Cancel(RequestOptions? options); - public virtual Task CancelAsync(RequestOptions? options); - public virtual ClientResult GetBatch(RequestOptions? options); - public virtual Task GetBatchAsync(RequestOptions? options); - public static CreateBatchOperation Rehydrate(BatchClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static CreateBatchOperation Rehydrate(BatchClient client, string batchId, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(BatchClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(BatchClient client, string batchId, CancellationToken cancellationToken = default); - public override ClientResult UpdateStatus(RequestOptions? options = null); - public override ValueTask UpdateStatusAsync(RequestOptions? options = null); + +namespace OpenAI.Batch +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class BatchClient + { + protected BatchClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public BatchClient(BatchClientSettings settings) { } + public BatchClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public BatchClient(System.ClientModel.ApiKeyCredential credential) { } + public BatchClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public BatchClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal BatchClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public BatchClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual CreateBatchOperation CreateBatch(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateBatchAsync(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetBatch(string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetBatchAsync(string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetBatches(BatchCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetBatches(string after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetBatchesAsync(BatchCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetBatchesAsync(string after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class BatchClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class BatchCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual BatchCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual BatchCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + BatchCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + BatchCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class BatchJob : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal BatchJob() { } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CancellingAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public string CompletionWindow { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Endpoint { get { throw null; } } + public string ErrorFileId { get { throw null; } } + public System.DateTimeOffset? ExpiredAt { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public System.DateTimeOffset? FinalizingAt { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? InProgressAt { get { throw null; } } + public string InputFileId { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Object { get { throw null; } } + public string OutputFileId { get { throw null; } } + + protected virtual BatchJob JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator BatchJob(System.ClientModel.ClientResult result) { throw null; } + protected virtual BatchJob PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + BatchJob System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + BatchJob System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateBatchOperation : System.ClientModel.Primitives.OperationResult + { + internal CreateBatchOperation() : base(default!) { } + public string BatchId { get { throw null; } } + public override System.ClientModel.ContinuationToken? RehydrationToken { get { throw null; } protected set { } } + + public virtual System.ClientModel.ClientResult Cancel(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.Threading.Tasks.Task CancelAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.ClientResult GetBatch(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.Threading.Tasks.Task GetBatchAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public static CreateBatchOperation Rehydrate(BatchClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static CreateBatchOperation Rehydrate(BatchClient client, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(BatchClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(BatchClient client, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.ClientModel.ClientResult UpdateStatus(System.ClientModel.Primitives.RequestOptions? options = null) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.ClientModel.Primitives.RequestOptions? options = null) { throw null; } } } -namespace OpenAI.Chat { - public class AssistantChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public AssistantChatMessage(ChatCompletion chatCompletion); - [Obsolete("This constructor is obsolete. Please use the constructor that takes an IEnumerable parameter instead.")] - public AssistantChatMessage(ChatFunctionCall functionCall); - public AssistantChatMessage(params ChatMessageContentPart[] contentParts); - [Experimental("OPENAI001")] - public AssistantChatMessage(ChatOutputAudioReference outputAudioReference); - public AssistantChatMessage(IEnumerable contentParts); - public AssistantChatMessage(IEnumerable toolCalls); - public AssistantChatMessage(string content); - [Obsolete("This property is obsolete. Please use ToolCalls instead.")] - public ChatFunctionCall FunctionCall { get; set; } - [Experimental("OPENAI001")] - public ChatOutputAudioReference OutputAudioReference { get; set; } - public string ParticipantName { get; set; } - public string Refusal { get; set; } - public IList ToolCalls { get; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatAudioOptions : IJsonModel, IPersistableModel { - public ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat); - public ChatOutputAudioFormat OutputAudioFormat { get; } - public ChatOutputAudioVoice OutputAudioVoice { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatAudioOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatAudioOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatClient { - protected ChatClient(); - protected internal ChatClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ChatClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ChatClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public ChatClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public ChatClient(string model, AuthenticationPolicy authenticationPolicy); - public ChatClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CompleteChat(params ChatMessage[] messages); - public virtual ClientResult CompleteChat(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CompleteChat(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> CompleteChatAsync(params ChatMessage[] messages); - public virtual Task CompleteChatAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CompleteChatAsync(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CompleteChatStreaming(params ChatMessage[] messages); - public virtual CollectionResult CompleteChatStreaming(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CompleteChatStreamingAsync(params ChatMessage[] messages); - public virtual AsyncCollectionResult CompleteChatStreamingAsync(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual ClientResult DeleteChatCompletion(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult DeleteChatCompletion(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task DeleteChatCompletionAsync(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual Task> DeleteChatCompletionAsync(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual ClientResult GetChatCompletion(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult GetChatCompletion(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task GetChatCompletionAsync(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual Task> GetChatCompletionAsync(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletionMessages(string completionId, string after, int? limit, string order, RequestOptions options); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, string after, int? limit, string order, RequestOptions options); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletions(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletions(string after, int? limit, string order, IDictionary metadata, string model, RequestOptions options); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionsAsync(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionsAsync(string after, int? limit, string order, IDictionary metadata, string model, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult UpdateChatCompletion(string completionId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult UpdateChatCompletion(string completionId, IDictionary metadata, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task UpdateChatCompletionAsync(string completionId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task> UpdateChatCompletionAsync(string completionId, IDictionary metadata, CancellationToken cancellationToken = default); - } - public class ChatCompletion : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public IReadOnlyList Annotations { get; } - public ChatMessageContent Content { get; } - public IReadOnlyList ContentTokenLogProbabilities { get; } - public DateTimeOffset CreatedAt { get; } - public ChatFinishReason FinishReason { get; } - [Obsolete("This property is obsolete. Please use ToolCalls instead.")] - public ChatFunctionCall FunctionCall { get; } - public string Id { get; } - public string Model { get; } - [Experimental("OPENAI001")] - public ChatOutputAudio OutputAudio { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public IReadOnlyList RefusalTokenLogProbabilities { get; } - public ChatMessageRole Role { get; } - [Experimental("OPENAI001")] - public ChatServiceTier? ServiceTier { get; } - public string SystemFingerprint { get; } - public IReadOnlyList ToolCalls { get; } - public ChatTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual ChatCompletion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator ChatCompletion(ClientResult result); - [Experimental("OPENAI001")] - protected virtual ChatCompletion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatCompletionCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public ChatCompletionCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatCompletionCollectionOrder : IEquatable { - public ChatCompletionCollectionOrder(string value); - public static ChatCompletionCollectionOrder Ascending { get; } - public static ChatCompletionCollectionOrder Descending { get; } - public readonly bool Equals(ChatCompletionCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right); - public static implicit operator ChatCompletionCollectionOrder(string value); - public static implicit operator ChatCompletionCollectionOrder?(string value); - public static bool operator !=(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatCompletionDeletionResult : IJsonModel, IPersistableModel { - public string ChatCompletionId { get; } - public bool Deleted { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ChatCompletionDeletionResult(ClientResult result); - protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatCompletionMessageCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ChatCompletionMessageCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatCompletionMessageCollectionOrder : IEquatable { - public ChatCompletionMessageCollectionOrder(string value); - public static ChatCompletionMessageCollectionOrder Ascending { get; } - public static ChatCompletionMessageCollectionOrder Descending { get; } - public readonly bool Equals(ChatCompletionMessageCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right); - public static implicit operator ChatCompletionMessageCollectionOrder(string value); - public static implicit operator ChatCompletionMessageCollectionOrder?(string value); - public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatCompletionMessageListDatum : IJsonModel, IPersistableModel { - public IReadOnlyList Annotations { get; } - public string Content { get; } - public IList ContentParts { get; } - public string Id { get; } - public ChatOutputAudio OutputAudio { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public IReadOnlyList ToolCalls { get; } - protected virtual ChatCompletionMessageListDatum JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionMessageListDatum PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatCompletionOptions : IJsonModel, IPersistableModel { - public bool? AllowParallelToolCalls { get; set; } - [Experimental("OPENAI001")] - public ChatAudioOptions AudioOptions { get; set; } - public string EndUserId { get; set; } - public float? FrequencyPenalty { get; set; } - [Obsolete("This property is obsolete. Please use ToolChoice instead.")] - public ChatFunctionChoice FunctionChoice { get; set; } - [Obsolete("This property is obsolete. Please use Tools instead.")] - public IList Functions { get; } - public bool? IncludeLogProbabilities { get; set; } - public IDictionary LogitBiases { get; } - public int? MaxOutputTokenCount { get; set; } - public IDictionary Metadata { get; } - [Experimental("OPENAI001")] - public ChatOutputPrediction OutputPrediction { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public float? PresencePenalty { get; set; } - [Experimental("OPENAI001")] - public ChatReasoningEffortLevel? ReasoningEffortLevel { get; set; } - public ChatResponseFormat ResponseFormat { get; set; } - [Experimental("OPENAI001")] - public ChatResponseModalities ResponseModalities { get; set; } - [Experimental("OPENAI001")] - public string SafetyIdentifier { get; set; } - [Experimental("OPENAI001")] - public long? Seed { get; set; } - [Experimental("OPENAI001")] - public ChatServiceTier? ServiceTier { get; set; } - public IList StopSequences { get; } - public bool? StoredOutputEnabled { get; set; } - public float? Temperature { get; set; } - public ChatToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - [Experimental("OPENAI001")] - public ChatWebSearchOptions WebSearchOptions { get; set; } - [Experimental("OPENAI001")] - protected virtual ChatCompletionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatCompletionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatFinishReason { + +namespace OpenAI.Chat +{ + public partial class AssistantChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AssistantChatMessage(ChatCompletion chatCompletion) { } + [System.Obsolete("This constructor is obsolete. Please use the constructor that takes an IEnumerable parameter instead.")] + public AssistantChatMessage(ChatFunctionCall functionCall) { } + public AssistantChatMessage(params ChatMessageContentPart[] contentParts) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AssistantChatMessage(ChatOutputAudioReference outputAudioReference) { } + public AssistantChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public AssistantChatMessage(System.Collections.Generic.IEnumerable toolCalls) { } + public AssistantChatMessage(string content) { } + [System.Obsolete("This property is obsolete. Please use ToolCalls instead.")] + public ChatFunctionCall FunctionCall { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatOutputAudioReference OutputAudioReference { get { throw null; } set { } } + public string ParticipantName { get { throw null; } set { } } + public string Refusal { get { throw null; } set { } } + public System.Collections.Generic.IList ToolCalls { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatAudioOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat) { } + public ChatOutputAudioFormat OutputAudioFormat { get { throw null; } } + public ChatOutputAudioVoice OutputAudioVoice { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatAudioOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatAudioOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatAudioOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatAudioOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatClient + { + protected ChatClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ChatClient(ChatClientSettings settings) { } + protected internal ChatClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ChatClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ChatClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ChatClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CompleteChat(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.ClientResult CompleteChat(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CompleteChat(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CompleteChatAsync(params ChatMessage[] messages) { throw null; } + public virtual System.Threading.Tasks.Task CompleteChatAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CompleteChatAsync(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CompleteChatStreaming(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.CollectionResult CompleteChatStreaming(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CompleteChatStreamingAsync(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CompleteChatStreamingAsync(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult DeleteChatCompletion(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult DeleteChatCompletion(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task DeleteChatCompletionAsync(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> DeleteChatCompletionAsync(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult GetChatCompletion(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult GetChatCompletion(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task GetChatCompletionAsync(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> GetChatCompletionAsync(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.CollectionResult GetChatCompletionMessages(string completionId, string after, int? limit, string order, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, string after, int? limit, string order, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult GetChatCompletions(ChatCompletionCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.CollectionResult GetChatCompletions(string after, int? limit, string order, System.Collections.Generic.IDictionary metadata, string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult GetChatCompletionsAsync(ChatCompletionCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetChatCompletionsAsync(string after, int? limit, string order, System.Collections.Generic.IDictionary metadata, string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult UpdateChatCompletion(string completionId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult UpdateChatCompletion(string completionId, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task UpdateChatCompletionAsync(string completionId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> UpdateChatCompletionAsync(string completionId, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ChatClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ChatCompletion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletion() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Collections.Generic.IReadOnlyList Annotations { get { throw null; } } + public ChatMessageContent Content { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ContentTokenLogProbabilities { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ChatFinishReason FinishReason { get { throw null; } } + + [System.Obsolete("This property is obsolete. Please use ToolCalls instead.")] + public ChatFunctionCall FunctionCall { get { throw null; } } + public string Id { get { throw null; } } + public string Model { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatOutputAudio OutputAudio { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RefusalTokenLogProbabilities { get { throw null; } } + public ChatMessageRole Role { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatServiceTier? ServiceTier { get { throw null; } } + public string SystemFingerprint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + public ChatTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator ChatCompletion(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public ChatCompletionCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatCompletionCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatCompletionCollectionOrder(string value) { } + public static ChatCompletionCollectionOrder Ascending { get { throw null; } } + public static ChatCompletionCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ChatCompletionCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right) { throw null; } + public static implicit operator ChatCompletionCollectionOrder(string value) { throw null; } + public static implicit operator ChatCompletionCollectionOrder?(string value) { throw null; } + public static bool operator !=(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletionDeletionResult() { } + public string ChatCompletionId { get { throw null; } } + public bool Deleted { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ChatCompletionDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionMessageCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ChatCompletionMessageCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionMessageCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionMessageCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatCompletionMessageCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatCompletionMessageCollectionOrder(string value) { } + public static ChatCompletionMessageCollectionOrder Ascending { get { throw null; } } + public static ChatCompletionMessageCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ChatCompletionMessageCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right) { throw null; } + public static implicit operator ChatCompletionMessageCollectionOrder(string value) { throw null; } + public static implicit operator ChatCompletionMessageCollectionOrder?(string value) { throw null; } + public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionMessageListDatum : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletionMessageListDatum() { } + public System.Collections.Generic.IReadOnlyList Annotations { get { throw null; } } + public string Content { get { throw null; } } + public System.Collections.Generic.IList ContentParts { get { throw null; } } + public string Id { get { throw null; } } + public ChatOutputAudio OutputAudio { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + + protected virtual ChatCompletionMessageListDatum JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionMessageListDatum PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionMessageListDatum System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionMessageListDatum System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatCompletionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? AllowParallelToolCalls { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatAudioOptions AudioOptions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public float? FrequencyPenalty { get { throw null; } set { } } + + [System.Obsolete("This property is obsolete. Please use ToolChoice instead.")] + public ChatFunctionChoice FunctionChoice { get { throw null; } set { } } + + [System.Obsolete("This property is obsolete. Please use Tools instead.")] + public System.Collections.Generic.IList Functions { get { throw null; } } + public bool? IncludeLogProbabilities { get { throw null; } set { } } + public System.Collections.Generic.IDictionary LogitBiases { get { throw null; } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatOutputPrediction OutputPrediction { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public float? PresencePenalty { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatReasoningEffortLevel? ReasoningEffortLevel { get { throw null; } set { } } + public ChatResponseFormat ResponseFormat { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatResponseModalities ResponseModalities { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string SafetyIdentifier { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public long? Seed { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatServiceTier? ServiceTier { get { throw null; } set { } } + public System.Collections.Generic.IList StopSequences { get { throw null; } } + public bool? StoredOutputEnabled { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ChatToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatWebSearchOptions WebSearchOptions { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatFinishReason + { Stop = 0, Length = 1, ContentFilter = 2, ToolCalls = 3, FunctionCall = 4 } - [Obsolete("This class is obsolete. Please use ChatTool instead.")] - public class ChatFunction : IJsonModel, IPersistableModel { - public ChatFunction(string functionName); - public string FunctionDescription { get; set; } - public string FunctionName { get; } - public BinaryData FunctionParameters { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual ChatFunction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatFunction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ChatToolCall instead.")] - public class ChatFunctionCall : IJsonModel, IPersistableModel { - public ChatFunctionCall(string functionName, BinaryData functionArguments); - public BinaryData FunctionArguments { get; } - public string FunctionName { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual ChatFunctionCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatFunctionCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ChatToolChoice instead.")] - public class ChatFunctionChoice : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatFunctionChoice CreateAutoChoice(); - public static ChatFunctionChoice CreateNamedChoice(string functionName); - public static ChatFunctionChoice CreateNoneChoice(); - [Experimental("OPENAI001")] - protected virtual ChatFunctionChoice JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatFunctionChoice PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatImageDetailLevel : IEquatable { - public ChatImageDetailLevel(string value); - public static ChatImageDetailLevel Auto { get; } - public static ChatImageDetailLevel High { get; } - public static ChatImageDetailLevel Low { get; } - public readonly bool Equals(ChatImageDetailLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right); - public static implicit operator ChatImageDetailLevel(string value); - public static implicit operator ChatImageDetailLevel?(string value); - public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatInputAudioFormat : IEquatable { - public ChatInputAudioFormat(string value); - public static ChatInputAudioFormat Mp3 { get; } - public static ChatInputAudioFormat Wav { get; } - public readonly bool Equals(ChatInputAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right); - public static implicit operator ChatInputAudioFormat(string value); - public static implicit operator ChatInputAudioFormat?(string value); - public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right); - public override readonly string ToString(); - } - public class ChatInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int CachedTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual ChatInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatMessage : IJsonModel, IPersistableModel { - public ChatMessageContent Content { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static AssistantChatMessage CreateAssistantMessage(ChatCompletion chatCompletion); - public static AssistantChatMessage CreateAssistantMessage(ChatFunctionCall functionCall); - public static AssistantChatMessage CreateAssistantMessage(params ChatMessageContentPart[] contentParts); - [Experimental("OPENAI001")] - public static AssistantChatMessage CreateAssistantMessage(ChatOutputAudioReference outputAudioReference); - public static AssistantChatMessage CreateAssistantMessage(IEnumerable contentParts); - public static AssistantChatMessage CreateAssistantMessage(IEnumerable toolCalls); - public static AssistantChatMessage CreateAssistantMessage(string content); - [Experimental("OPENAI001")] - public static DeveloperChatMessage CreateDeveloperMessage(params ChatMessageContentPart[] contentParts); - [Experimental("OPENAI001")] - public static DeveloperChatMessage CreateDeveloperMessage(IEnumerable contentParts); - [Experimental("OPENAI001")] - public static DeveloperChatMessage CreateDeveloperMessage(string content); - [Obsolete("This method is obsolete. Please use CreateToolMessage instead.")] - public static FunctionChatMessage CreateFunctionMessage(string functionName, string content); - public static SystemChatMessage CreateSystemMessage(params ChatMessageContentPart[] contentParts); - public static SystemChatMessage CreateSystemMessage(IEnumerable contentParts); - public static SystemChatMessage CreateSystemMessage(string content); - public static ToolChatMessage CreateToolMessage(string toolCallId, params ChatMessageContentPart[] contentParts); - public static ToolChatMessage CreateToolMessage(string toolCallId, IEnumerable contentParts); - public static ToolChatMessage CreateToolMessage(string toolCallId, string content); - public static UserChatMessage CreateUserMessage(params ChatMessageContentPart[] contentParts); - public static UserChatMessage CreateUserMessage(IEnumerable contentParts); - public static UserChatMessage CreateUserMessage(string content); - [Experimental("OPENAI001")] - protected virtual ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ChatMessage(string content); - [Experimental("OPENAI001")] - protected virtual ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatMessageAnnotation : IJsonModel, IPersistableModel { - public int EndIndex { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int StartIndex { get; } - public string WebResourceTitle { get; } - public Uri WebResourceUri { get; } - protected virtual ChatMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatMessageContent : ObjectModel.Collection { - public ChatMessageContent(); - public ChatMessageContent(params ChatMessageContentPart[] contentParts); - public ChatMessageContent(IEnumerable contentParts); - public ChatMessageContent(string content); - } - public class ChatMessageContentPart : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public BinaryData FileBytes { get; } - [Experimental("OPENAI001")] - public string FileBytesMediaType { get; } - [Experimental("OPENAI001")] - public string FileId { get; } - [Experimental("OPENAI001")] - public string Filename { get; } - public BinaryData ImageBytes { get; } - public string ImageBytesMediaType { get; } - public ChatImageDetailLevel? ImageDetailLevel { get; } - public Uri ImageUri { get; } - [Experimental("OPENAI001")] - public BinaryData InputAudioBytes { get; } - [Experimental("OPENAI001")] - public ChatInputAudioFormat? InputAudioFormat { get; } - public ChatMessageContentPartKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public string Text { get; } - [Experimental("OPENAI001")] - public static ChatMessageContentPart CreateFilePart(BinaryData fileBytes, string fileBytesMediaType, string filename); - [Experimental("OPENAI001")] - public static ChatMessageContentPart CreateFilePart(string fileId); - public static ChatMessageContentPart CreateImagePart(BinaryData imageBytes, string imageBytesMediaType, ChatImageDetailLevel? imageDetailLevel = null); - public static ChatMessageContentPart CreateImagePart(Uri imageUri, ChatImageDetailLevel? imageDetailLevel = null); - [Experimental("OPENAI001")] - public static ChatMessageContentPart CreateInputAudioPart(BinaryData inputAudioBytes, ChatInputAudioFormat inputAudioFormat); - public static ChatMessageContentPart CreateRefusalPart(string refusal); - public static ChatMessageContentPart CreateTextPart(string text); - [Experimental("OPENAI001")] - protected virtual ChatMessageContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ChatMessageContentPart(string text); - [Experimental("OPENAI001")] - protected virtual ChatMessageContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatMessageContentPartKind { + + [System.Obsolete("This class is obsolete. Please use ChatTool instead.")] + public partial class ChatFunction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatFunction(string functionName) { } + public string FunctionDescription { get { throw null; } set { } } + public string FunctionName { get { throw null; } } + public System.BinaryData FunctionParameters { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ChatToolCall instead.")] + public partial class ChatFunctionCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatFunctionCall(string functionName, System.BinaryData functionArguments) { } + public System.BinaryData FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunctionCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunctionCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ChatToolChoice instead.")] + public partial class ChatFunctionChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatFunctionChoice() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatFunctionChoice CreateAutoChoice() { throw null; } + public static ChatFunctionChoice CreateNamedChoice(string functionName) { throw null; } + public static ChatFunctionChoice CreateNoneChoice() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionChoice JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionChoice PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunctionChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunctionChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatImageDetailLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatImageDetailLevel(string value) { } + public static ChatImageDetailLevel Auto { get { throw null; } } + public static ChatImageDetailLevel High { get { throw null; } } + public static ChatImageDetailLevel Low { get { throw null; } } + + public readonly bool Equals(ChatImageDetailLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right) { throw null; } + public static implicit operator ChatImageDetailLevel(string value) { throw null; } + public static implicit operator ChatImageDetailLevel?(string value) { throw null; } + public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatInputAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatInputAudioFormat(string value) { } + public static ChatInputAudioFormat Mp3 { get { throw null; } } + public static ChatInputAudioFormat Wav { get { throw null; } } + + public readonly bool Equals(ChatInputAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right) { throw null; } + public static implicit operator ChatInputAudioFormat(string value) { throw null; } + public static implicit operator ChatInputAudioFormat?(string value) { throw null; } + public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatInputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int CachedTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessage() { } + public ChatMessageContent Content { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static AssistantChatMessage CreateAssistantMessage(ChatCompletion chatCompletion) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(ChatFunctionCall functionCall) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(params ChatMessageContentPart[] contentParts) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static AssistantChatMessage CreateAssistantMessage(ChatOutputAudioReference outputAudioReference) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(System.Collections.Generic.IEnumerable toolCalls) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(string content) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static DeveloperChatMessage CreateDeveloperMessage(params ChatMessageContentPart[] contentParts) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static DeveloperChatMessage CreateDeveloperMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static DeveloperChatMessage CreateDeveloperMessage(string content) { throw null; } + [System.Obsolete("This method is obsolete. Please use CreateToolMessage instead.")] + public static FunctionChatMessage CreateFunctionMessage(string functionName, string content) { throw null; } + public static SystemChatMessage CreateSystemMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static SystemChatMessage CreateSystemMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static SystemChatMessage CreateSystemMessage(string content) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, params ChatMessageContentPart[] contentParts) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, string content) { throw null; } + public static UserChatMessage CreateUserMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static UserChatMessage CreateUserMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static UserChatMessage CreateUserMessage(string content) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ChatMessage(string content) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatMessageAnnotation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessageAnnotation() { } + public int EndIndex { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int StartIndex { get { throw null; } } + public string WebResourceTitle { get { throw null; } } + public System.Uri WebResourceUri { get { throw null; } } + + protected virtual ChatMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatMessageContent : System.Collections.ObjectModel.Collection + { + public ChatMessageContent() { } + public ChatMessageContent(params ChatMessageContentPart[] contentParts) { } + public ChatMessageContent(System.Collections.Generic.IEnumerable contentParts) { } + public ChatMessageContent(string content) { } + } + + public partial class ChatMessageContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessageContentPart() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.BinaryData FileBytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string FileBytesMediaType { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string FileId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Filename { get { throw null; } } + public System.BinaryData ImageBytes { get { throw null; } } + public string ImageBytesMediaType { get { throw null; } } + public ChatImageDetailLevel? ImageDetailLevel { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.BinaryData InputAudioBytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatInputAudioFormat? InputAudioFormat { get { throw null; } } + public ChatMessageContentPartKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageContentPart CreateFilePart(System.BinaryData fileBytes, string fileBytesMediaType, string filename) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageContentPart CreateFilePart(string fileId) { throw null; } + public static ChatMessageContentPart CreateImagePart(System.BinaryData imageBytes, string imageBytesMediaType, ChatImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ChatMessageContentPart CreateImagePart(System.Uri imageUri, ChatImageDetailLevel? imageDetailLevel = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageContentPart CreateInputAudioPart(System.BinaryData inputAudioBytes, ChatInputAudioFormat inputAudioFormat) { throw null; } + public static ChatMessageContentPart CreateRefusalPart(string refusal) { throw null; } + public static ChatMessageContentPart CreateTextPart(string text) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessageContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ChatMessageContentPart(string text) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessageContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessageContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessageContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatMessageContentPartKind + { Text = 0, Refusal = 1, Image = 2, InputAudio = 3, File = 4 } - public enum ChatMessageRole { + + public enum ChatMessageRole + { System = 0, User = 1, Assistant = 2, @@ -1999,865 +3262,1336 @@ public enum ChatMessageRole { Function = 4, Developer = 5 } - [Experimental("OPENAI001")] - public class ChatOutputAudio : IJsonModel, IPersistableModel { - public BinaryData AudioBytes { get; } - public DateTimeOffset ExpiresAt { get; } - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Transcript { get; } - protected virtual ChatOutputAudio JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputAudio PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatOutputAudioFormat : IEquatable { - public ChatOutputAudioFormat(string value); - public static ChatOutputAudioFormat Aac { get; } - public static ChatOutputAudioFormat Flac { get; } - public static ChatOutputAudioFormat Mp3 { get; } - public static ChatOutputAudioFormat Opus { get; } - public static ChatOutputAudioFormat Pcm16 { get; } - public static ChatOutputAudioFormat Wav { get; } - public readonly bool Equals(ChatOutputAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatOutputAudioFormat left, ChatOutputAudioFormat right); - public static implicit operator ChatOutputAudioFormat(string value); - public static implicit operator ChatOutputAudioFormat?(string value); - public static bool operator !=(ChatOutputAudioFormat left, ChatOutputAudioFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatOutputAudioReference : IJsonModel, IPersistableModel { - public ChatOutputAudioReference(string id); - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatOutputAudioReference JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputAudioReference PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatOutputAudioVoice : IEquatable { - public ChatOutputAudioVoice(string value); - public static ChatOutputAudioVoice Alloy { get; } - public static ChatOutputAudioVoice Ash { get; } - public static ChatOutputAudioVoice Ballad { get; } - public static ChatOutputAudioVoice Coral { get; } - public static ChatOutputAudioVoice Echo { get; } - public static ChatOutputAudioVoice Fable { get; } - public static ChatOutputAudioVoice Nova { get; } - public static ChatOutputAudioVoice Onyx { get; } - public static ChatOutputAudioVoice Sage { get; } - public static ChatOutputAudioVoice Shimmer { get; } - public static ChatOutputAudioVoice Verse { get; } - public readonly bool Equals(ChatOutputAudioVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right); - public static implicit operator ChatOutputAudioVoice(string value); - public static implicit operator ChatOutputAudioVoice?(string value); - public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatOutputPrediction : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatOutputPrediction CreateStaticContentPrediction(IEnumerable staticContentParts); - public static ChatOutputPrediction CreateStaticContentPrediction(string staticContent); - protected virtual ChatOutputPrediction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputPrediction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatOutputTokenUsageDetails : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public int AcceptedPredictionTokenCount { get; } - public int AudioTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int ReasoningTokenCount { get; } - [Experimental("OPENAI001")] - public int RejectedPredictionTokenCount { get; } - [Experimental("OPENAI001")] - protected virtual ChatOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatReasoningEffortLevel : IEquatable { - public ChatReasoningEffortLevel(string value); - public static ChatReasoningEffortLevel High { get; } - public static ChatReasoningEffortLevel Low { get; } - public static ChatReasoningEffortLevel Medium { get; } - public static ChatReasoningEffortLevel Minimal { get; } - public static ChatReasoningEffortLevel None { get; } - public readonly bool Equals(ChatReasoningEffortLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right); - public static implicit operator ChatReasoningEffortLevel(string value); - public static implicit operator ChatReasoningEffortLevel?(string value); - public static bool operator !=(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right); - public override readonly string ToString(); - } - public class ChatResponseFormat : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatResponseFormat CreateJsonObjectFormat(); - public static ChatResponseFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null); - public static ChatResponseFormat CreateTextFormat(); - [Experimental("OPENAI001")] - protected virtual ChatResponseFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatResponseFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - [Flags] - public enum ChatResponseModalities { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatOutputAudio : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputAudio() { } + public System.BinaryData AudioBytes { get { throw null; } } + public System.DateTimeOffset ExpiresAt { get { throw null; } } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Transcript { get { throw null; } } + + protected virtual ChatOutputAudio JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputAudio PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputAudio System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputAudio System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatOutputAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatOutputAudioFormat(string value) { } + public static ChatOutputAudioFormat Aac { get { throw null; } } + public static ChatOutputAudioFormat Flac { get { throw null; } } + public static ChatOutputAudioFormat Mp3 { get { throw null; } } + public static ChatOutputAudioFormat Opus { get { throw null; } } + public static ChatOutputAudioFormat Pcm16 { get { throw null; } } + public static ChatOutputAudioFormat Wav { get { throw null; } } + + public readonly bool Equals(ChatOutputAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatOutputAudioFormat left, ChatOutputAudioFormat right) { throw null; } + public static implicit operator ChatOutputAudioFormat(string value) { throw null; } + public static implicit operator ChatOutputAudioFormat?(string value) { throw null; } + public static bool operator !=(ChatOutputAudioFormat left, ChatOutputAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatOutputAudioReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatOutputAudioReference(string id) { } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatOutputAudioReference JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputAudioReference PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputAudioReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputAudioReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatOutputAudioVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatOutputAudioVoice(string value) { } + public static ChatOutputAudioVoice Alloy { get { throw null; } } + public static ChatOutputAudioVoice Ash { get { throw null; } } + public static ChatOutputAudioVoice Ballad { get { throw null; } } + public static ChatOutputAudioVoice Coral { get { throw null; } } + public static ChatOutputAudioVoice Echo { get { throw null; } } + public static ChatOutputAudioVoice Fable { get { throw null; } } + public static ChatOutputAudioVoice Nova { get { throw null; } } + public static ChatOutputAudioVoice Onyx { get { throw null; } } + public static ChatOutputAudioVoice Sage { get { throw null; } } + public static ChatOutputAudioVoice Shimmer { get { throw null; } } + public static ChatOutputAudioVoice Verse { get { throw null; } } + + public readonly bool Equals(ChatOutputAudioVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right) { throw null; } + public static implicit operator ChatOutputAudioVoice(string value) { throw null; } + public static implicit operator ChatOutputAudioVoice?(string value) { throw null; } + public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatOutputPrediction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputPrediction() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatOutputPrediction CreateStaticContentPrediction(System.Collections.Generic.IEnumerable staticContentParts) { throw null; } + public static ChatOutputPrediction CreateStaticContentPrediction(string staticContent) { throw null; } + protected virtual ChatOutputPrediction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputPrediction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputPrediction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputPrediction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputTokenUsageDetails() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int AcceptedPredictionTokenCount { get { throw null; } } + public int AudioTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int ReasoningTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int RejectedPredictionTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatReasoningEffortLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatReasoningEffortLevel(string value) { } + public static ChatReasoningEffortLevel High { get { throw null; } } + public static ChatReasoningEffortLevel Low { get { throw null; } } + public static ChatReasoningEffortLevel Medium { get { throw null; } } + public static ChatReasoningEffortLevel Minimal { get { throw null; } } + public static ChatReasoningEffortLevel None { get { throw null; } } + + public readonly bool Equals(ChatReasoningEffortLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right) { throw null; } + public static implicit operator ChatReasoningEffortLevel(string value) { throw null; } + public static implicit operator ChatReasoningEffortLevel?(string value) { throw null; } + public static bool operator !=(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatResponseFormat : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatResponseFormat() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatResponseFormat CreateJsonObjectFormat() { throw null; } + public static ChatResponseFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, System.BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null) { throw null; } + public static ChatResponseFormat CreateTextFormat() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatResponseFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatResponseFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatResponseFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatResponseFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.Flags] + public enum ChatResponseModalities + { Default = 0, Text = 1, Audio = 2 } - [Experimental("OPENAI001")] - public readonly partial struct ChatServiceTier : IEquatable { - public ChatServiceTier(string value); - public static ChatServiceTier Auto { get; } - public static ChatServiceTier Default { get; } - public static ChatServiceTier Flex { get; } - public static ChatServiceTier Scale { get; } - public readonly bool Equals(ChatServiceTier other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatServiceTier left, ChatServiceTier right); - public static implicit operator ChatServiceTier(string value); - public static implicit operator ChatServiceTier?(string value); - public static bool operator !=(ChatServiceTier left, ChatServiceTier right); - public override readonly string ToString(); - } - public class ChatTokenLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Token { get; } - public IReadOnlyList TopLogProbabilities { get; } - public ReadOnlyMemory? Utf8Bytes { get; } - [Experimental("OPENAI001")] - protected virtual ChatTokenLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTokenLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTokenTopLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Token { get; } - public ReadOnlyMemory? Utf8Bytes { get; } - [Experimental("OPENAI001")] - protected virtual ChatTokenTopLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTokenTopLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public ChatInputTokenUsageDetails InputTokenDetails { get; } - public int OutputTokenCount { get; } - public ChatOutputTokenUsageDetails OutputTokenDetails { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; } - [Experimental("OPENAI001")] - protected virtual ChatTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTool : IJsonModel, IPersistableModel { - public string FunctionDescription { get; } - public string FunctionName { get; } - public BinaryData FunctionParameters { get; } - public bool? FunctionSchemaIsStrict { get; } - public ChatToolKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatTool CreateFunctionTool(string functionName, string functionDescription = null, BinaryData functionParameters = null, bool? functionSchemaIsStrict = null); - [Experimental("OPENAI001")] - protected virtual ChatTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatToolCall : IJsonModel, IPersistableModel { - public BinaryData FunctionArguments { get; } - public string FunctionName { get; } - public string Id { get; set; } - public ChatToolCallKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatToolCall CreateFunctionToolCall(string id, string functionName, BinaryData functionArguments); - [Experimental("OPENAI001")] - protected virtual ChatToolCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatToolCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatToolCallKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatServiceTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatServiceTier(string value) { } + public static ChatServiceTier Auto { get { throw null; } } + public static ChatServiceTier Default { get { throw null; } } + public static ChatServiceTier Flex { get { throw null; } } + public static ChatServiceTier Scale { get { throw null; } } + + public readonly bool Equals(ChatServiceTier other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatServiceTier left, ChatServiceTier right) { throw null; } + public static implicit operator ChatServiceTier(string value) { throw null; } + public static implicit operator ChatServiceTier?(string value) { throw null; } + public static bool operator !=(ChatServiceTier left, ChatServiceTier right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatTokenLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Token { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TopLogProbabilities { get { throw null; } } + public System.ReadOnlyMemory? Utf8Bytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTokenTopLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenTopLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Token { get { throw null; } } + public System.ReadOnlyMemory? Utf8Bytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenTopLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenTopLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenTopLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenTopLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public ChatInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public ChatOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTool() { } + public string FunctionDescription { get { throw null; } } + public string FunctionName { get { throw null; } } + public System.BinaryData FunctionParameters { get { throw null; } } + public bool? FunctionSchemaIsStrict { get { throw null; } } + public ChatToolKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatTool CreateFunctionTool(string functionName, string functionDescription = null, System.BinaryData functionParameters = null, bool? functionSchemaIsStrict = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatToolCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatToolCall() { } + public System.BinaryData FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string Id { get { throw null; } set { } } + public ChatToolCallKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatToolCall CreateFunctionToolCall(string id, string functionName, System.BinaryData functionArguments) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatToolCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatToolCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatToolCallKind + { Function = 0 } - public class ChatToolChoice : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatToolChoice CreateAutoChoice(); - public static ChatToolChoice CreateFunctionChoice(string functionName); - public static ChatToolChoice CreateNoneChoice(); - public static ChatToolChoice CreateRequiredChoice(); - [Experimental("OPENAI001")] - protected virtual ChatToolChoice JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatToolChoice PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatToolKind { + + public partial class ChatToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatToolChoice() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatToolChoice CreateAutoChoice() { throw null; } + public static ChatToolChoice CreateFunctionChoice(string functionName) { throw null; } + public static ChatToolChoice CreateNoneChoice() { throw null; } + public static ChatToolChoice CreateRequiredChoice() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolChoice JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolChoice PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatToolKind + { Function = 0 } - [Experimental("OPENAI001")] - public class ChatWebSearchOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatWebSearchOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatWebSearchOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class DeveloperChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public DeveloperChatMessage(params ChatMessageContentPart[] contentParts); - public DeveloperChatMessage(IEnumerable contentParts); - public DeveloperChatMessage(string content); - public string ParticipantName { get; set; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ToolChatMessage instead.")] - public class FunctionChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public FunctionChatMessage(string functionName, string content); - public string FunctionName { get; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIChatModelFactory { - [Experimental("OPENAI001")] - public static ChatCompletion ChatCompletion(string id = null, ChatFinishReason finishReason = ChatFinishReason.Stop, ChatMessageContent content = null, string refusal = null, IEnumerable toolCalls = null, ChatMessageRole role = ChatMessageRole.System, ChatFunctionCall functionCall = null, IEnumerable contentTokenLogProbabilities = null, IEnumerable refusalTokenLogProbabilities = null, DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, ChatOutputAudio outputAudio = null, IEnumerable messageAnnotations = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatCompletion ChatCompletion(string id, ChatFinishReason finishReason, ChatMessageContent content, string refusal, IEnumerable toolCalls, ChatMessageRole role, ChatFunctionCall functionCall, IEnumerable contentTokenLogProbabilities, IEnumerable refusalTokenLogProbabilities, DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage); - [Experimental("OPENAI001")] - public static ChatCompletionMessageListDatum ChatCompletionMessageListDatum(string id, string content, string refusal, ChatMessageRole role, IList contentParts = null, IList toolCalls = null, IList annotations = null, string functionName = null, string functionArguments = null, ChatOutputAudio outputAudio = null); - public static ChatInputTokenUsageDetails ChatInputTokenUsageDetails(int audioTokenCount = 0, int cachedTokenCount = 0); - [Experimental("OPENAI001")] - public static ChatMessageAnnotation ChatMessageAnnotation(int startIndex = 0, int endIndex = 0, Uri webResourceUri = null, string webResourceTitle = null); - [Experimental("OPENAI001")] - public static ChatOutputAudio ChatOutputAudio(BinaryData audioBytes, string id = null, string transcript = null, DateTimeOffset expiresAt = default); - [Experimental("OPENAI001")] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount = 0, int audioTokenCount = 0, int acceptedPredictionTokenCount = 0, int rejectedPredictionTokenCount = 0); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount, int audioTokenCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount); - public static ChatTokenLogProbabilityDetails ChatTokenLogProbabilityDetails(string token = null, float logProbability = 0, ReadOnlyMemory? utf8Bytes = null, IEnumerable topLogProbabilities = null); - public static ChatTokenTopLogProbabilityDetails ChatTokenTopLogProbabilityDetails(string token = null, float logProbability = 0, ReadOnlyMemory? utf8Bytes = null); - public static ChatTokenUsage ChatTokenUsage(int outputTokenCount = 0, int inputTokenCount = 0, int totalTokenCount = 0, ChatOutputTokenUsageDetails outputTokenDetails = null, ChatInputTokenUsageDetails inputTokenDetails = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatTokenUsage ChatTokenUsage(int outputTokenCount, int inputTokenCount, int totalTokenCount, ChatOutputTokenUsageDetails outputTokenDetails); - [Experimental("OPENAI001")] - public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId = null, ChatMessageContent contentUpdate = null, StreamingChatFunctionCallUpdate functionCallUpdate = null, IEnumerable toolCallUpdates = null, ChatMessageRole? role = null, string refusalUpdate = null, IEnumerable contentTokenLogProbabilities = null, IEnumerable refusalTokenLogProbabilities = null, ChatFinishReason? finishReason = null, DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, StreamingChatOutputAudioUpdate outputAudioUpdate = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId, ChatMessageContent contentUpdate, StreamingChatFunctionCallUpdate functionCallUpdate, IEnumerable toolCallUpdates, ChatMessageRole? role, string refusalUpdate, IEnumerable contentTokenLogProbabilities, IEnumerable refusalTokenLogProbabilities, ChatFinishReason? finishReason, DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage); - [Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] - public static StreamingChatFunctionCallUpdate StreamingChatFunctionCallUpdate(string functionName = null, BinaryData functionArgumentsUpdate = null); - [Experimental("OPENAI001")] - public static StreamingChatOutputAudioUpdate StreamingChatOutputAudioUpdate(string id = null, DateTimeOffset? expiresAt = null, string transcriptUpdate = null, BinaryData audioBytesUpdate = null); - public static StreamingChatToolCallUpdate StreamingChatToolCallUpdate(int index = 0, string toolCallId = null, ChatToolCallKind kind = ChatToolCallKind.Function, string functionName = null, BinaryData functionArgumentsUpdate = null); - } - public class StreamingChatCompletionUpdate : IJsonModel, IPersistableModel { - public string CompletionId { get; } - public IReadOnlyList ContentTokenLogProbabilities { get; } - public ChatMessageContent ContentUpdate { get; } - public DateTimeOffset CreatedAt { get; } - public ChatFinishReason? FinishReason { get; } - [Obsolete("This property is obsolete. Please use ToolCallUpdates instead.")] - public StreamingChatFunctionCallUpdate FunctionCallUpdate { get; } - public string Model { get; } - [Experimental("OPENAI001")] - public StreamingChatOutputAudioUpdate OutputAudioUpdate { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public IReadOnlyList RefusalTokenLogProbabilities { get; } - public string RefusalUpdate { get; } - public ChatMessageRole? Role { get; } - [Experimental("OPENAI001")] - public ChatServiceTier? ServiceTier { get; } - public string SystemFingerprint { get; } - public IReadOnlyList ToolCallUpdates { get; } - public ChatTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual StreamingChatCompletionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual StreamingChatCompletionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] - public class StreamingChatFunctionCallUpdate : IJsonModel, IPersistableModel { - public BinaryData FunctionArgumentsUpdate { get; } - public string FunctionName { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual StreamingChatFunctionCallUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual StreamingChatFunctionCallUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingChatOutputAudioUpdate : IJsonModel, IPersistableModel { - public BinaryData AudioBytesUpdate { get; } - public DateTimeOffset? ExpiresAt { get; } - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string TranscriptUpdate { get; } - protected virtual StreamingChatOutputAudioUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingChatOutputAudioUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingChatToolCallUpdate : IJsonModel, IPersistableModel { - public BinaryData FunctionArgumentsUpdate { get; } - public string FunctionName { get; } - public int Index { get; } - public ChatToolCallKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string ToolCallId { get; } - [Experimental("OPENAI001")] - protected virtual StreamingChatToolCallUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual StreamingChatToolCallUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class SystemChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public SystemChatMessage(params ChatMessageContentPart[] contentParts); - public SystemChatMessage(IEnumerable contentParts); - public SystemChatMessage(string content); - public string ParticipantName { get; set; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ToolChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] contentParts); - public ToolChatMessage(string toolCallId, IEnumerable contentParts); - public ToolChatMessage(string toolCallId, string content); - public string ToolCallId { get; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class UserChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public UserChatMessage(params ChatMessageContentPart[] contentParts); - public UserChatMessage(IEnumerable contentParts); - public UserChatMessage(string content); - public string ParticipantName { get; set; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatWebSearchOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatWebSearchOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatWebSearchOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatWebSearchOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatWebSearchOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class DeveloperChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DeveloperChatMessage(params ChatMessageContentPart[] contentParts) { } + public DeveloperChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public DeveloperChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeveloperChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeveloperChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ToolChatMessage instead.")] + public partial class FunctionChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionChatMessage(string functionName, string content) { } + public string FunctionName { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIChatModelFactory + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatCompletion ChatCompletion(string id = null, ChatFinishReason finishReason = ChatFinishReason.Stop, ChatMessageContent content = null, string refusal = null, System.Collections.Generic.IEnumerable toolCalls = null, ChatMessageRole role = ChatMessageRole.System, ChatFunctionCall functionCall = null, System.Collections.Generic.IEnumerable contentTokenLogProbabilities = null, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities = null, System.DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, ChatOutputAudio outputAudio = null, System.Collections.Generic.IEnumerable messageAnnotations = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatCompletion ChatCompletion(string id, ChatFinishReason finishReason, ChatMessageContent content, string refusal, System.Collections.Generic.IEnumerable toolCalls, ChatMessageRole role, ChatFunctionCall functionCall, System.Collections.Generic.IEnumerable contentTokenLogProbabilities, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities, System.DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatCompletionMessageListDatum ChatCompletionMessageListDatum(string id, string content, string refusal, ChatMessageRole role, System.Collections.Generic.IList contentParts = null, System.Collections.Generic.IList toolCalls = null, System.Collections.Generic.IList annotations = null, string functionName = null, string functionArguments = null, ChatOutputAudio outputAudio = null) { throw null; } + public static ChatInputTokenUsageDetails ChatInputTokenUsageDetails(int audioTokenCount = 0, int cachedTokenCount = 0) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageAnnotation ChatMessageAnnotation(int startIndex = 0, int endIndex = 0, System.Uri webResourceUri = null, string webResourceTitle = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatOutputAudio ChatOutputAudio(System.BinaryData audioBytes, string id = null, string transcript = null, System.DateTimeOffset expiresAt = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount = 0, int audioTokenCount = 0, int acceptedPredictionTokenCount = 0, int rejectedPredictionTokenCount = 0) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount, int audioTokenCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount) { throw null; } + public static ChatTokenLogProbabilityDetails ChatTokenLogProbabilityDetails(string token = null, float logProbability = 0, System.ReadOnlyMemory? utf8Bytes = null, System.Collections.Generic.IEnumerable topLogProbabilities = null) { throw null; } + public static ChatTokenTopLogProbabilityDetails ChatTokenTopLogProbabilityDetails(string token = null, float logProbability = 0, System.ReadOnlyMemory? utf8Bytes = null) { throw null; } + public static ChatTokenUsage ChatTokenUsage(int outputTokenCount = 0, int inputTokenCount = 0, int totalTokenCount = 0, ChatOutputTokenUsageDetails outputTokenDetails = null, ChatInputTokenUsageDetails inputTokenDetails = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatTokenUsage ChatTokenUsage(int outputTokenCount, int inputTokenCount, int totalTokenCount, ChatOutputTokenUsageDetails outputTokenDetails) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId = null, ChatMessageContent contentUpdate = null, StreamingChatFunctionCallUpdate functionCallUpdate = null, System.Collections.Generic.IEnumerable toolCallUpdates = null, ChatMessageRole? role = null, string refusalUpdate = null, System.Collections.Generic.IEnumerable contentTokenLogProbabilities = null, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities = null, ChatFinishReason? finishReason = null, System.DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, StreamingChatOutputAudioUpdate outputAudioUpdate = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId, ChatMessageContent contentUpdate, StreamingChatFunctionCallUpdate functionCallUpdate, System.Collections.Generic.IEnumerable toolCallUpdates, ChatMessageRole? role, string refusalUpdate, System.Collections.Generic.IEnumerable contentTokenLogProbabilities, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities, ChatFinishReason? finishReason, System.DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage) { throw null; } + [System.Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] + public static StreamingChatFunctionCallUpdate StreamingChatFunctionCallUpdate(string functionName = null, System.BinaryData functionArgumentsUpdate = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static StreamingChatOutputAudioUpdate StreamingChatOutputAudioUpdate(string id = null, System.DateTimeOffset? expiresAt = null, string transcriptUpdate = null, System.BinaryData audioBytesUpdate = null) { throw null; } + public static StreamingChatToolCallUpdate StreamingChatToolCallUpdate(int index = 0, string toolCallId = null, ChatToolCallKind kind = ChatToolCallKind.Function, string functionName = null, System.BinaryData functionArgumentsUpdate = null) { throw null; } + } + public partial class StreamingChatCompletionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatCompletionUpdate() { } + public string CompletionId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ContentTokenLogProbabilities { get { throw null; } } + public ChatMessageContent ContentUpdate { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ChatFinishReason? FinishReason { get { throw null; } } + + [System.Obsolete("This property is obsolete. Please use ToolCallUpdates instead.")] + public StreamingChatFunctionCallUpdate FunctionCallUpdate { get { throw null; } } + public string Model { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public StreamingChatOutputAudioUpdate OutputAudioUpdate { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RefusalTokenLogProbabilities { get { throw null; } } + public string RefusalUpdate { get { throw null; } } + public ChatMessageRole? Role { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatServiceTier? ServiceTier { get { throw null; } } + public string SystemFingerprint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCallUpdates { get { throw null; } } + public ChatTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatCompletionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatCompletionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatCompletionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatCompletionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] + public partial class StreamingChatFunctionCallUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatFunctionCallUpdate() { } + public System.BinaryData FunctionArgumentsUpdate { get { throw null; } } + public string FunctionName { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatFunctionCallUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatFunctionCallUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatFunctionCallUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatFunctionCallUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingChatOutputAudioUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatOutputAudioUpdate() { } + public System.BinaryData AudioBytesUpdate { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string TranscriptUpdate { get { throw null; } } + + protected virtual StreamingChatOutputAudioUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingChatOutputAudioUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatOutputAudioUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatOutputAudioUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingChatToolCallUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatToolCallUpdate() { } + public System.BinaryData FunctionArgumentsUpdate { get { throw null; } } + public string FunctionName { get { throw null; } } + public int Index { get { throw null; } } + public ChatToolCallKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ToolCallId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatToolCallUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatToolCallUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatToolCallUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatToolCallUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class SystemChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SystemChatMessage(params ChatMessageContentPart[] contentParts) { } + public SystemChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public SystemChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + SystemChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + SystemChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ToolChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] contentParts) { } + public ToolChatMessage(string toolCallId, System.Collections.Generic.IEnumerable contentParts) { } + public ToolChatMessage(string toolCallId, string content) { } + public string ToolCallId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class UserChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UserChatMessage(params ChatMessageContentPart[] contentParts) { } + public UserChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public UserChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + UserChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + UserChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} + +namespace OpenAI.Containers +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerClient + { + protected ContainerClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ContainerClient(ContainerClientSettings settings) { } + public ContainerClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ContainerClient(System.ClientModel.ApiKeyCredential credential) { } + public ContainerClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ContainerClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal ContainerClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public ContainerClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateContainer(CreateContainerBody body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateContainer(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateContainerAsync(CreateContainerBody body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateContainerAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateContainerFile(string containerId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateContainerFileAsync(string containerId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainer(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainer(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteContainerAsync(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteContainerAsync(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DownloadContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DownloadContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DownloadContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetContainer(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetContainer(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetContainerAsync(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerAsync(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetContainerFiles(string containerId, ContainerFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetContainerFiles(string containerId, int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetContainerFilesAsync(string containerId, ContainerFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetContainerFilesAsync(string containerId, int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetContainers(ContainerCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetContainers(int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetContainersAsync(ContainerCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetContainersAsync(int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ContainerClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ContainerCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual ContainerCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ContainerCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerCollectionOrder(string value) { } + public static ContainerCollectionOrder Ascending { get { throw null; } } + public static ContainerCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ContainerCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ContainerCollectionOrder left, ContainerCollectionOrder right) { throw null; } + public static implicit operator ContainerCollectionOrder(string value) { throw null; } + public static implicit operator ContainerCollectionOrder?(string value) { throw null; } + public static bool operator !=(ContainerCollectionOrder left, ContainerCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerFileCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ContainerCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual ContainerFileCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerFileCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerFileResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerFileResource() { } + public int Bytes { get { throw null; } } + public string ContainerId { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + public string Path { get { throw null; } } + public string Source { get { throw null; } } + + protected virtual ContainerFileResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ContainerFileResource(System.ClientModel.ClientResult result) { throw null; } + protected virtual ContainerFileResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerResource() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ContainerResourceExpiresAfter ExpiresAfter { get { throw null; } } + public string Id { get { throw null; } } + public string Name { get { throw null; } } + public string Object { get { throw null; } } + public string Status { get { throw null; } } + + protected virtual ContainerResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ContainerResource(System.ClientModel.ClientResult result) { throw null; } + protected virtual ContainerResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerResourceExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerResourceExpiresAfter() { } + public string Anchor { get { throw null; } } + public int? Minutes { get { throw null; } } + + protected virtual ContainerResourceExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerResourceExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerResourceExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerResourceExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateContainerBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateContainerBody(string name) { } + public CreateContainerBodyExpiresAfter ExpiresAfter { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public string Name { get { throw null; } } + + protected virtual CreateContainerBody JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(CreateContainerBody createContainerBody) { throw null; } + protected virtual CreateContainerBody PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerBody System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerBody System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateContainerBodyExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateContainerBodyExpiresAfter(int minutes) { } + public string Anchor { get { throw null; } } + public int Minutes { get { throw null; } } + + protected virtual CreateContainerBodyExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CreateContainerBodyExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerBodyExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerBodyExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateContainerFileBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.BinaryData File { get { throw null; } set { } } + public string FileId { get { throw null; } set { } } + + protected virtual CreateContainerFileBody JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CreateContainerFileBody PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerFileBody System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerFileBody System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class DeleteContainerFileResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DeleteContainerFileResponse() { } + public bool Deleted { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + + protected virtual DeleteContainerFileResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator DeleteContainerFileResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual DeleteContainerFileResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeleteContainerFileResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeleteContainerFileResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class DeleteContainerResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DeleteContainerResponse() { } + public bool Deleted { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + + protected virtual DeleteContainerResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator DeleteContainerResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual DeleteContainerResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeleteContainerResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeleteContainerResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Containers { - [Experimental("OPENAI001")] - public class ContainerClient { - protected ContainerClient(); - public ContainerClient(ApiKeyCredential credential, OpenAIClientOptions options); - public ContainerClient(ApiKeyCredential credential); - public ContainerClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ContainerClient(AuthenticationPolicy authenticationPolicy); - protected internal ContainerClient(ClientPipeline pipeline, OpenAIClientOptions options); - public ContainerClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateContainer(CreateContainerBody body, CancellationToken cancellationToken = default); - public virtual ClientResult CreateContainer(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateContainerAsync(CreateContainerBody body, CancellationToken cancellationToken = default); - public virtual Task CreateContainerAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateContainerFile(string containerId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateContainerFileAsync(string containerId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult DeleteContainer(string containerId, RequestOptions options); - public virtual ClientResult DeleteContainer(string containerId, CancellationToken cancellationToken = default); - public virtual Task DeleteContainerAsync(string containerId, RequestOptions options); - public virtual Task> DeleteContainerAsync(string containerId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult DeleteContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task DeleteContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> DeleteContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult DownloadContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult DownloadContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task DownloadContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> DownloadContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetContainer(string containerId, RequestOptions options); - public virtual ClientResult GetContainer(string containerId, CancellationToken cancellationToken = default); - public virtual Task GetContainerAsync(string containerId, RequestOptions options); - public virtual Task> GetContainerAsync(string containerId, CancellationToken cancellationToken = default); - public virtual ClientResult GetContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult GetContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task GetContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> GetContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainerFiles(string containerId, ContainerFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainerFiles(string containerId, int? limit, string order, string after, RequestOptions options); - public virtual AsyncCollectionResult GetContainerFilesAsync(string containerId, ContainerFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetContainerFilesAsync(string containerId, int? limit, string order, string after, RequestOptions options); - public virtual CollectionResult GetContainers(ContainerCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainers(int? limit, string order, string after, RequestOptions options); - public virtual AsyncCollectionResult GetContainersAsync(ContainerCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetContainersAsync(int? limit, string order, string after, RequestOptions options); - } - [Experimental("OPENAI001")] - public class ContainerCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ContainerCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual ContainerCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ContainerCollectionOrder : IEquatable { - public ContainerCollectionOrder(string value); - public static ContainerCollectionOrder Ascending { get; } - public static ContainerCollectionOrder Descending { get; } - public readonly bool Equals(ContainerCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ContainerCollectionOrder left, ContainerCollectionOrder right); - public static implicit operator ContainerCollectionOrder(string value); - public static implicit operator ContainerCollectionOrder?(string value); - public static bool operator !=(ContainerCollectionOrder left, ContainerCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ContainerFileCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ContainerCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual ContainerFileCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerFileCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ContainerFileResource : IJsonModel, IPersistableModel { - public int Bytes { get; } - public string ContainerId { get; } - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string Object { get; } - public string Path { get; } - public string Source { get; } - protected virtual ContainerFileResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ContainerFileResource(ClientResult result); - protected virtual ContainerFileResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ContainerResource : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public ContainerResourceExpiresAfter ExpiresAfter { get; } - public string Id { get; } - public string Name { get; } - public string Object { get; } - public string Status { get; } - protected virtual ContainerResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ContainerResource(ClientResult result); - protected virtual ContainerResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ContainerResourceExpiresAfter : IJsonModel, IPersistableModel { - public string Anchor { get; } - public int? Minutes { get; } - protected virtual ContainerResourceExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerResourceExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateContainerBody : IJsonModel, IPersistableModel { - public CreateContainerBody(string name); - public CreateContainerBodyExpiresAfter ExpiresAfter { get; set; } - public IList FileIds { get; } - public string Name { get; } - protected virtual CreateContainerBody JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(CreateContainerBody createContainerBody); - protected virtual CreateContainerBody PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateContainerBodyExpiresAfter : IJsonModel, IPersistableModel { - public CreateContainerBodyExpiresAfter(int minutes); - public string Anchor { get; } - public int Minutes { get; } - protected virtual CreateContainerBodyExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CreateContainerBodyExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateContainerFileBody : IJsonModel, IPersistableModel { - public BinaryData File { get; set; } - public string FileId { get; set; } - protected virtual CreateContainerFileBody JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CreateContainerFileBody PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class DeleteContainerFileResponse : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string Id { get; } - public string Object { get; } - protected virtual DeleteContainerFileResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator DeleteContainerFileResponse(ClientResult result); - protected virtual DeleteContainerFileResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class DeleteContainerResponse : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string Id { get; } - public string Object { get; } - protected virtual DeleteContainerResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator DeleteContainerResponse(ClientResult result); - protected virtual DeleteContainerResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + +namespace OpenAI.Conversations +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ConversationClient + { + protected ConversationClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ConversationClient(ConversationClientSettings settings) { } + public ConversationClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ConversationClient(System.ClientModel.ApiKeyCredential credential) { } + public ConversationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ConversationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal ConversationClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public ConversationClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateConversation(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateConversationAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateConversationItems(string conversationId, System.ClientModel.BinaryContent content, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateConversationItemsAsync(string conversationId, System.ClientModel.BinaryContent content, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteConversation(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConversationAsync(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteConversationItem(string conversationId, string itemId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConversationItemAsync(string conversationId, string itemId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetConversation(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConversationAsync(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetConversationItem(string conversationId, string itemId, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConversationItemAsync(string conversationId, string itemId, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetConversationItems(string conversationId, long? limit = null, string order = null, string after = null, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConversationItemsAsync(string conversationId, long? limit = null, string order = null, string after = null, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateConversation(string conversationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateConversationAsync(string conversationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ConversationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct IncludedConversationItemProperty : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IncludedConversationItemProperty(string value) { } + public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get { throw null; } } + public static IncludedConversationItemProperty ComputerCallOutputImageUri { get { throw null; } } + public static IncludedConversationItemProperty FileSearchCallResults { get { throw null; } } + public static IncludedConversationItemProperty MessageInputImageUri { get { throw null; } } + public static IncludedConversationItemProperty MessageOutputTextLogprobs { get { throw null; } } + public static IncludedConversationItemProperty ReasoningEncryptedContent { get { throw null; } } + public static IncludedConversationItemProperty WebSearchCallActionSources { get { throw null; } } + public static IncludedConversationItemProperty WebSearchCallResults { get { throw null; } } + + public readonly bool Equals(IncludedConversationItemProperty other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right) { throw null; } + public static implicit operator IncludedConversationItemProperty(string value) { throw null; } + public static implicit operator IncludedConversationItemProperty?(string value) { throw null; } + public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right) { throw null; } + public override readonly string ToString() { throw null; } } } -namespace OpenAI.Conversations { - [Experimental("OPENAI001")] - public class ConversationClient { - protected ConversationClient(); - public ConversationClient(ApiKeyCredential credential, OpenAIClientOptions options); - public ConversationClient(ApiKeyCredential credential); - public ConversationClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ConversationClient(AuthenticationPolicy authenticationPolicy); - protected internal ConversationClient(ClientPipeline pipeline, OpenAIClientOptions options); - public ConversationClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateConversation(BinaryContent content, RequestOptions options = null); - public virtual Task CreateConversationAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateConversationItems(string conversationId, BinaryContent content, IEnumerable include = null, RequestOptions options = null); - public virtual Task CreateConversationItemsAsync(string conversationId, BinaryContent content, IEnumerable include = null, RequestOptions options = null); - public virtual ClientResult DeleteConversation(string conversationId, RequestOptions options = null); - public virtual Task DeleteConversationAsync(string conversationId, RequestOptions options = null); - public virtual ClientResult DeleteConversationItem(string conversationId, string itemId, RequestOptions options = null); - public virtual Task DeleteConversationItemAsync(string conversationId, string itemId, RequestOptions options = null); - public virtual ClientResult GetConversation(string conversationId, RequestOptions options = null); - public virtual Task GetConversationAsync(string conversationId, RequestOptions options = null); - public virtual ClientResult GetConversationItem(string conversationId, string itemId, IEnumerable include = null, RequestOptions options = null); - public virtual Task GetConversationItemAsync(string conversationId, string itemId, IEnumerable include = null, RequestOptions options = null); - public virtual CollectionResult GetConversationItems(string conversationId, long? limit = null, string order = null, string after = null, IEnumerable include = null, RequestOptions options = null); - public virtual AsyncCollectionResult GetConversationItemsAsync(string conversationId, long? limit = null, string order = null, string after = null, IEnumerable include = null, RequestOptions options = null); - public virtual ClientResult UpdateConversation(string conversationId, BinaryContent content, RequestOptions options = null); - public virtual Task UpdateConversationAsync(string conversationId, BinaryContent content, RequestOptions options = null); - } - [Experimental("OPENAI001")] - public readonly partial struct IncludedConversationItemProperty : IEquatable { - public IncludedConversationItemProperty(string value); - public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get; } - public static IncludedConversationItemProperty ComputerCallOutputImageUri { get; } - public static IncludedConversationItemProperty FileSearchCallResults { get; } - public static IncludedConversationItemProperty MessageInputImageUri { get; } - public static IncludedConversationItemProperty MessageOutputTextLogprobs { get; } - public static IncludedConversationItemProperty ReasoningEncryptedContent { get; } - public static IncludedConversationItemProperty WebSearchCallActionSources { get; } - public static IncludedConversationItemProperty WebSearchCallResults { get; } - public readonly bool Equals(IncludedConversationItemProperty other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right); - public static implicit operator IncludedConversationItemProperty(string value); - public static implicit operator IncludedConversationItemProperty?(string value); - public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right); - public override readonly string ToString(); + +namespace OpenAI.DependencyInjection +{ + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public static partial class OpenAIHostBuilderExtensions + { + public static System.ClientModel.Primitives.IClientBuilder AddAssistantClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddAudioClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddBatchClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddChatClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddContainerClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddConversationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddEmbeddingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddEvaluationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddFineTuningClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddGraderClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddImageClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedAssistantClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedAudioClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedBatchClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedChatClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedContainerClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedConversationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedEmbeddingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedEvaluationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedFineTuningClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedGraderClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedImageClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedModerationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedOpenAIFileClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedOpenAIModelClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedRealtimeClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedVectorStoreClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedVideoClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddModerationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddOpenAIFileClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddOpenAIModelClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddRealtimeClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddVectorStoreClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddVideoClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } } } -namespace OpenAI.Embeddings { - public class EmbeddingClient { - protected EmbeddingClient(); - protected internal EmbeddingClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public EmbeddingClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public EmbeddingClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public EmbeddingClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public EmbeddingClient(string model, AuthenticationPolicy authenticationPolicy); - public EmbeddingClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateEmbedding(string input, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateEmbeddingAsync(string input, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateEmbeddings(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateEmbeddings(IEnumerable> inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateEmbeddings(IEnumerable inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateEmbeddingsAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateEmbeddingsAsync(IEnumerable> inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateEmbeddingsAsync(IEnumerable inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - } - public class EmbeddingGenerationOptions : IJsonModel, IPersistableModel { - public int? Dimensions { get; set; } - public string EndUserId { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual EmbeddingGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual EmbeddingGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class EmbeddingTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; } - [Experimental("OPENAI001")] - protected virtual EmbeddingTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual EmbeddingTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIEmbedding : IJsonModel, IPersistableModel { - public int Index { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIEmbedding JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual OpenAIEmbedding PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - public ReadOnlyMemory ToFloats(); - } - public class OpenAIEmbeddingCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - public string Model { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public EmbeddingTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIEmbeddingCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIEmbeddingCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIEmbeddingsModelFactory { - public static EmbeddingTokenUsage EmbeddingTokenUsage(int inputTokenCount = 0, int totalTokenCount = 0); - public static OpenAIEmbedding OpenAIEmbedding(int index = 0, IEnumerable vector = null); - public static OpenAIEmbeddingCollection OpenAIEmbeddingCollection(IEnumerable items = null, string model = null, EmbeddingTokenUsage usage = null); + +namespace OpenAI.Embeddings +{ + public partial class EmbeddingClient + { + protected EmbeddingClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public EmbeddingClient(EmbeddingClientSettings settings) { } + protected internal EmbeddingClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public EmbeddingClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public EmbeddingClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public EmbeddingClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public EmbeddingClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public EmbeddingClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateEmbedding(string input, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingAsync(string input, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.Collections.Generic.IEnumerable> inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.Collections.Generic.IEnumerable inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateEmbeddingsAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingsAsync(System.Collections.Generic.IEnumerable> inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingsAsync(System.Collections.Generic.IEnumerable inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class EmbeddingClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class EmbeddingGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int? Dimensions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + EmbeddingGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + EmbeddingGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class EmbeddingTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal EmbeddingTokenUsage() { } + public int InputTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + EmbeddingTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + EmbeddingTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIEmbedding : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIEmbedding() { } + public int Index { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbedding JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbedding PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIEmbedding System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIEmbedding System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public System.ReadOnlyMemory ToFloats() { throw null; } + } + + public partial class OpenAIEmbeddingCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIEmbeddingCollection() : base(default!) { } + public string Model { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public EmbeddingTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbeddingCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIEmbeddingCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIEmbeddingCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIEmbeddingCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIEmbeddingsModelFactory + { + public static EmbeddingTokenUsage EmbeddingTokenUsage(int inputTokenCount = 0, int totalTokenCount = 0) { throw null; } + public static OpenAIEmbedding OpenAIEmbedding(int index = 0, System.Collections.Generic.IEnumerable vector = null) { throw null; } + public static OpenAIEmbeddingCollection OpenAIEmbeddingCollection(System.Collections.Generic.IEnumerable items = null, string model = null, EmbeddingTokenUsage usage = null) { throw null; } } } -namespace OpenAI.Evals { - [Experimental("OPENAI001")] - public class EvaluationClient { - protected EvaluationClient(); - public EvaluationClient(ApiKeyCredential credential, OpenAIClientOptions options); - public EvaluationClient(ApiKeyCredential credential); - public EvaluationClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public EvaluationClient(AuthenticationPolicy authenticationPolicy); - protected internal EvaluationClient(ClientPipeline pipeline, OpenAIClientOptions options); - public EvaluationClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task CancelEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult CreateEvaluation(BinaryContent content, RequestOptions options = null); - public virtual Task CreateEvaluationAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateEvaluationRun(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual Task CreateEvaluationRunAsync(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteEvaluation(string evaluationId, RequestOptions options); - public virtual Task DeleteEvaluationAsync(string evaluationId, RequestOptions options); - public virtual ClientResult DeleteEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task DeleteEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult GetEvaluation(string evaluationId, RequestOptions options); - public virtual Task GetEvaluationAsync(string evaluationId, RequestOptions options); - public virtual ClientResult GetEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task GetEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult GetEvaluationRunOutputItem(string evaluationId, string evaluationRunId, string outputItemId, RequestOptions options); - public virtual Task GetEvaluationRunOutputItemAsync(string evaluationId, string evaluationRunId, string outputItemId, RequestOptions options); - public virtual ClientResult GetEvaluationRunOutputItems(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, RequestOptions options); - public virtual Task GetEvaluationRunOutputItemsAsync(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, RequestOptions options); - public virtual ClientResult GetEvaluationRuns(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, RequestOptions options); - public virtual Task GetEvaluationRunsAsync(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, RequestOptions options); - public virtual ClientResult GetEvaluations(int? limit, string orderBy, string order, string after, RequestOptions options); - public virtual Task GetEvaluationsAsync(int? limit, string orderBy, string order, string after, RequestOptions options); - public virtual ClientResult UpdateEvaluation(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual Task UpdateEvaluationAsync(string evaluationId, BinaryContent content, RequestOptions options = null); + +namespace OpenAI.Evals +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class EvaluationClient + { + protected EvaluationClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public EvaluationClient(EvaluationClientSettings settings) { } + public EvaluationClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public EvaluationClient(System.ClientModel.ApiKeyCredential credential) { } + public EvaluationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public EvaluationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal EvaluationClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public EvaluationClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task CancelEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CreateEvaluation(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateEvaluationAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateEvaluationRun(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateEvaluationRunAsync(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteEvaluation(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteEvaluationAsync(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluation(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationAsync(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRunOutputItem(string evaluationId, string evaluationRunId, string outputItemId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunOutputItemAsync(string evaluationId, string evaluationRunId, string outputItemId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRunOutputItems(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunOutputItemsAsync(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRuns(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunsAsync(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluations(int? limit, string orderBy, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationsAsync(int? limit, string orderBy, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult UpdateEvaluation(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateEvaluationAsync(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class EvaluationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } } } -namespace OpenAI.Files { - public class FileDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string FileId { get; } - [Experimental("OPENAI001")] - protected virtual FileDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator FileDeletionResult(ClientResult result); - [Experimental("OPENAI001")] - protected virtual FileDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum FilePurpose { + +namespace OpenAI.Files +{ + public partial class FileDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileDeletionResult() { } + public bool Deleted { get { throw null; } } + public string FileId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual FileDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator FileDeletionResult(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual FileDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum FilePurpose + { Assistants = 0, AssistantsOutput = 1, Batch = 2, @@ -2868,2113 +4602,3207 @@ public enum FilePurpose { UserData = 7, Evaluations = 8 } - [Obsolete("This struct is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] - public enum FileStatus { + + [System.Obsolete("This struct is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] + public enum FileStatus + { Uploaded = 0, Processed = 1, Error = 2 } - public readonly partial struct FileUploadPurpose : IEquatable { - public FileUploadPurpose(string value); - public static FileUploadPurpose Assistants { get; } - public static FileUploadPurpose Batch { get; } - [Experimental("OPENAI001")] - public static FileUploadPurpose Evaluations { get; } - public static FileUploadPurpose FineTune { get; } - [Experimental("OPENAI001")] - public static FileUploadPurpose UserData { get; } - public static FileUploadPurpose Vision { get; } - public readonly bool Equals(FileUploadPurpose other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileUploadPurpose left, FileUploadPurpose right); - public static implicit operator FileUploadPurpose(string value); - public static implicit operator FileUploadPurpose?(string value); - public static bool operator !=(FileUploadPurpose left, FileUploadPurpose right); - public override readonly string ToString(); - } - public class OpenAIFile : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - [Experimental("OPENAI001")] - public DateTimeOffset? ExpiresAt { get; } - public string Filename { get; } - public string Id { get; } - public FilePurpose Purpose { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public int? SizeInBytes { get; } - [Experimental("OPENAI001")] - public long? SizeInBytesLong { get; } - [Obsolete("This property is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] - public FileStatus Status { get; } - [Obsolete("This property is obsolete. For details on why a fine-tuning training file failed validation, see the `error` field on the fine-tuning job.")] - public string StatusDetails { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIFile JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIFile(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIFile PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIFileClient { - protected OpenAIFileClient(); - public OpenAIFileClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIFileClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public OpenAIFileClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public OpenAIFileClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIFileClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIFileClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - [Experimental("OPENAI001")] - public virtual ClientResult AddUploadPart(string uploadId, BinaryContent content, string contentType, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task AddUploadPartAsync(string uploadId, BinaryContent content, string contentType, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult CancelUpload(string uploadId, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task CancelUploadAsync(string uploadId, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult CompleteUpload(string uploadId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task CompleteUploadAsync(string uploadId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult CreateUpload(BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task CreateUploadAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteFile(string fileId, RequestOptions options); - public virtual ClientResult DeleteFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task DeleteFileAsync(string fileId, RequestOptions options); - public virtual Task> DeleteFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult DownloadFile(string fileId, RequestOptions options); - public virtual ClientResult DownloadFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task DownloadFileAsync(string fileId, RequestOptions options); - public virtual Task> DownloadFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetFile(string fileId, RequestOptions options); - public virtual ClientResult GetFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task GetFileAsync(string fileId, RequestOptions options); - public virtual Task> GetFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetFiles(FilePurpose purpose, CancellationToken cancellationToken = default); - public virtual ClientResult GetFiles(string purpose, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult GetFiles(string purpose, long? limit, string order, string after, RequestOptions options); - public virtual ClientResult GetFiles(CancellationToken cancellationToken = default); - public virtual Task> GetFilesAsync(FilePurpose purpose, CancellationToken cancellationToken = default); - public virtual Task GetFilesAsync(string purpose, RequestOptions options); - [Experimental("OPENAI001")] - public virtual Task GetFilesAsync(string purpose, long? limit, string order, string after, RequestOptions options); - public virtual Task> GetFilesAsync(CancellationToken cancellationToken = default); - public virtual ClientResult UploadFile(BinaryData file, string filename, FileUploadPurpose purpose); - public virtual ClientResult UploadFile(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult UploadFile(Stream file, string filename, FileUploadPurpose purpose, CancellationToken cancellationToken = default); - public virtual ClientResult UploadFile(string filePath, FileUploadPurpose purpose); - public virtual Task> UploadFileAsync(BinaryData file, string filename, FileUploadPurpose purpose); - public virtual Task UploadFileAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> UploadFileAsync(Stream file, string filename, FileUploadPurpose purpose, CancellationToken cancellationToken = default); - public virtual Task> UploadFileAsync(string filePath, FileUploadPurpose purpose); - } - public class OpenAIFileCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - protected virtual OpenAIFileCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIFileCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIFileCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIFilesModelFactory { - public static FileDeletionResult FileDeletionResult(string fileId = null, bool deleted = false); - public static OpenAIFileCollection OpenAIFileCollection(IEnumerable items = null); - [Experimental("OPENAI001")] - public static OpenAIFile OpenAIFileInfo(string id = null, int? sizeInBytes = null, DateTimeOffset createdAt = default, string filename = null, FilePurpose purpose = FilePurpose.Assistants, FileStatus status = FileStatus.Uploaded, string statusDetails = null, DateTimeOffset? expiresAt = null, long? sizeInBytesLong = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static OpenAIFile OpenAIFileInfo(string id, int? sizeInBytes, DateTimeOffset createdAt, string filename, FilePurpose purpose, FileStatus status, string statusDetails); + + public readonly partial struct FileUploadPurpose : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileUploadPurpose(string value) { } + public static FileUploadPurpose Assistants { get { throw null; } } + public static FileUploadPurpose Batch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static FileUploadPurpose Evaluations { get { throw null; } } + public static FileUploadPurpose FineTune { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static FileUploadPurpose UserData { get { throw null; } } + public static FileUploadPurpose Vision { get { throw null; } } + + public readonly bool Equals(FileUploadPurpose other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileUploadPurpose left, FileUploadPurpose right) { throw null; } + public static implicit operator FileUploadPurpose(string value) { throw null; } + public static implicit operator FileUploadPurpose?(string value) { throw null; } + public static bool operator !=(FileUploadPurpose left, FileUploadPurpose right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class OpenAIFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIFile() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public string Filename { get { throw null; } } + public string Id { get { throw null; } } + public FilePurpose Purpose { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int? SizeInBytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public long? SizeInBytesLong { get { throw null; } } + + [System.Obsolete("This property is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] + public FileStatus Status { get { throw null; } } + + [System.Obsolete("This property is obsolete. For details on why a fine-tuning training file failed validation, see the `error` field on the fine-tuning job.")] + public string StatusDetails { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFile JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIFile(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFile PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIFileClient + { + protected OpenAIFileClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public OpenAIFileClient(OpenAIFileClientSettings settings) { } + public OpenAIFileClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIFileClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIFileClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIFileClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIFileClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIFileClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult AddUploadPart(string uploadId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task AddUploadPartAsync(string uploadId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult CancelUpload(string uploadId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task CancelUploadAsync(string uploadId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult CompleteUpload(string uploadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task CompleteUploadAsync(string uploadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult CreateUpload(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task CreateUploadAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DownloadFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DownloadFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DownloadFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(FilePurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(string purpose, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult GetFiles(string purpose, long? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GetFilesAsync(FilePurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetFilesAsync(string purpose, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task GetFilesAsync(string purpose, long? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetFilesAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.BinaryData file, string filename, FileUploadPurpose purpose) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.IO.Stream file, string filename, FileUploadPurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(string filePath, FileUploadPurpose purpose) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(System.BinaryData file, string filename, FileUploadPurpose purpose) { throw null; } + public virtual System.Threading.Tasks.Task UploadFileAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(System.IO.Stream file, string filename, FileUploadPurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(string filePath, FileUploadPurpose purpose) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class OpenAIFileClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class OpenAIFileCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIFileCollection() : base(default!) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFileCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIFileCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFileCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIFileCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIFileCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIFilesModelFactory + { + public static FileDeletionResult FileDeletionResult(string fileId = null, bool deleted = false) { throw null; } + public static OpenAIFileCollection OpenAIFileCollection(System.Collections.Generic.IEnumerable items = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static OpenAIFile OpenAIFileInfo(string id = null, int? sizeInBytes = null, System.DateTimeOffset createdAt = default, string filename = null, FilePurpose purpose = FilePurpose.Assistants, FileStatus status = FileStatus.Uploaded, string statusDetails = null, System.DateTimeOffset? expiresAt = null, long? sizeInBytesLong = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static OpenAIFile OpenAIFileInfo(string id, int? sizeInBytes, System.DateTimeOffset createdAt, string filename, FilePurpose purpose, FileStatus status, string statusDetails) { throw null; } } } -namespace OpenAI.FineTuning { - [Experimental("OPENAI001")] - public class FineTuningCheckpoint : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string JobId { get; } - public FineTuningCheckpointMetrics Metrics { get; } - public string ModelId { get; } - public int StepNumber { get; } - protected virtual FineTuningCheckpoint JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningCheckpoint PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - public override string ToString(); - } - [Experimental("OPENAI001")] - public class FineTuningCheckpointMetrics : IJsonModel, IPersistableModel { - public float? FullValidLoss { get; } - public float? FullValidMeanTokenAccuracy { get; } - public int StepNumber { get; } - public float? TrainLoss { get; } - public float? TrainMeanTokenAccuracy { get; } - public float? ValidLoss { get; } - public float? ValidMeanTokenAccuracy { get; } - protected virtual FineTuningCheckpointMetrics JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningCheckpointMetrics PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningClient { - protected FineTuningClient(); - public FineTuningClient(ApiKeyCredential credential, OpenAIClientOptions options); - public FineTuningClient(ApiKeyCredential credential); - public FineTuningClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public FineTuningClient(AuthenticationPolicy authenticationPolicy); - protected internal FineTuningClient(ClientPipeline pipeline, OpenAIClientOptions options); - protected internal FineTuningClient(ClientPipeline pipeline, Uri endpoint); - public FineTuningClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateFineTuningCheckpointPermission(string fineTunedModelCheckpoint, BinaryContent content, RequestOptions options = null); - public virtual Task CreateFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteFineTuningCheckpointPermission(string fineTunedModelCheckpoint, string permissionId, RequestOptions options); - public virtual Task DeleteFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, string permissionId, RequestOptions options); - public virtual FineTuningJob FineTune(BinaryContent content, bool waitUntilCompleted, RequestOptions options); - public virtual FineTuningJob FineTune(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, CancellationToken cancellationToken = default); - public virtual Task FineTuneAsync(BinaryContent content, bool waitUntilCompleted, RequestOptions options); - public virtual Task FineTuneAsync(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GetFineTuningCheckpointPermissions(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, RequestOptions options); - public virtual Task GetFineTuningCheckpointPermissionsAsync(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, RequestOptions options); - public virtual FineTuningJob GetJob(string jobId, CancellationToken cancellationToken = default); - public virtual Task GetJobAsync(string jobId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetJobs(FineTuningJobCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetJobsAsync(FineTuningJobCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult PauseFineTuningJob(string fineTuningJobId, RequestOptions options); - public virtual Task PauseFineTuningJobAsync(string fineTuningJobId, RequestOptions options); - public virtual ClientResult ResumeFineTuningJob(string fineTuningJobId, RequestOptions options); - public virtual Task ResumeFineTuningJobAsync(string fineTuningJobId, RequestOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningError : IJsonModel, IPersistableModel { - public string Code { get; } - public string InvalidParameter { get; } - public string Message { get; } - protected virtual FineTuningError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningEvent : IJsonModel, IPersistableModel { + +namespace OpenAI.FineTuning +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningCheckpoint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningCheckpoint() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string JobId { get { throw null; } } + public FineTuningCheckpointMetrics Metrics { get { throw null; } } + public string ModelId { get { throw null; } } + public int StepNumber { get { throw null; } } + + protected virtual FineTuningCheckpoint JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningCheckpoint PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningCheckpoint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningCheckpoint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public override string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningCheckpointMetrics : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningCheckpointMetrics() { } + public float? FullValidLoss { get { throw null; } } + public float? FullValidMeanTokenAccuracy { get { throw null; } } + public int StepNumber { get { throw null; } } + public float? TrainLoss { get { throw null; } } + public float? TrainMeanTokenAccuracy { get { throw null; } } + public float? ValidLoss { get { throw null; } } + public float? ValidMeanTokenAccuracy { get { throw null; } } + + protected virtual FineTuningCheckpointMetrics JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningCheckpointMetrics PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningCheckpointMetrics System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningCheckpointMetrics System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningClient + { + protected FineTuningClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public FineTuningClient(FineTuningClientSettings settings) { } + public FineTuningClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public FineTuningClient(System.ClientModel.ApiKeyCredential credential) { } + public FineTuningClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public FineTuningClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal FineTuningClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + protected internal FineTuningClient(System.ClientModel.Primitives.ClientPipeline pipeline, System.Uri endpoint) { } + public FineTuningClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateFineTuningCheckpointPermission(string fineTunedModelCheckpoint, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFineTuningCheckpointPermission(string fineTunedModelCheckpoint, string permissionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, string permissionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob FineTune(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob FineTune(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task FineTuneAsync(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task FineTuneAsync(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFineTuningCheckpointPermissions(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetFineTuningCheckpointPermissionsAsync(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob GetJob(string jobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetJobAsync(string jobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetJobs(FineTuningJobCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetJobsAsync(FineTuningJobCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult PauseFineTuningJob(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task PauseFineTuningJobAsync(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult ResumeFineTuningJob(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task ResumeFineTuningJobAsync(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class FineTuningClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningError() { } + public string Code { get { throw null; } } + public string InvalidParameter { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual FineTuningError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningEvent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningEvent() { } public string Level; - public DateTimeOffset CreatedAt { get; } - public BinaryData Data { get; } - public string Id { get; } - public FineTuningJobEventKind? Kind { get; } - public string Message { get; } - protected virtual FineTuningEvent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningEvent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FineTuningHyperparameters : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - } - [Experimental("OPENAI001")] - public class FineTuningIntegration : IJsonModel, IPersistableModel { - protected virtual FineTuningIntegration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningIntegration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningJob : OperationResult { + public System.DateTimeOffset CreatedAt { get { throw null; } } + public System.BinaryData Data { get { throw null; } } + public string Id { get { throw null; } } + public FineTuningJobEventKind? Kind { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual FineTuningEvent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningEvent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningEvent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningEvent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FineTuningHyperparameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public int BatchSize { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + readonly FineTuningHyperparameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly FineTuningHyperparameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningIntegration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningIntegration() { } + protected virtual FineTuningIntegration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningIntegration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningIntegration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningIntegration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningJob : System.ClientModel.Primitives.OperationResult + { + internal FineTuningJob() : base(default!) { } public string? Value; - public string BaseModel { get; } - public int BillableTrainedTokenCount { get; } - public DateTimeOffset? EstimatedFinishAt { get; } - [Obsolete("This property is deprecated. Use the MethodHyperparameters property instead.")] - public FineTuningHyperparameters Hyperparameters { get; } - public IReadOnlyList Integrations { get; } - public string JobId { get; } - public IDictionary Metadata { get; } - public MethodHyperparameters? MethodHyperparameters { get; } - public override ContinuationToken? RehydrationToken { get; protected set; } - public IReadOnlyList ResultFileIds { get; } - public int? Seed { get; } - public FineTuningStatus Status { get; } - public string TrainingFileId { get; } - public FineTuningTrainingMethod? TrainingMethod { get; } - public string? UserProvidedSuffix { get; } - public string ValidationFileId { get; } - public virtual ClientResult Cancel(RequestOptions options); - public virtual ClientResult CancelAndUpdate(CancellationToken cancellationToken = default); - public virtual Task CancelAndUpdateAsync(CancellationToken cancellationToken = default); - public virtual Task CancelAsync(RequestOptions options); - public virtual CollectionResult GetCheckpoints(GetCheckpointsOptions? options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetCheckpoints(string? after, int? limit, RequestOptions? options); - public virtual AsyncCollectionResult GetCheckpointsAsync(GetCheckpointsOptions? options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetCheckpointsAsync(string? after, int? limit, RequestOptions? options); - public virtual CollectionResult GetEvents(GetEventsOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetEvents(string? after, int? limit, RequestOptions options); - public virtual AsyncCollectionResult GetEventsAsync(GetEventsOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetEventsAsync(string? after, int? limit, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, ContinuationToken rehydrationToken, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(FineTuningClient client, ContinuationToken rehydrationToken, RequestOptions options); - public static Task RehydrateAsync(FineTuningClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(FineTuningClient client, string JobId, RequestOptions options); - public static Task RehydrateAsync(FineTuningClient client, string JobId, CancellationToken cancellationToken = default); - public override ClientResult UpdateStatus(RequestOptions? options); - public ClientResult UpdateStatus(CancellationToken cancellationToken = default); - public override ValueTask UpdateStatusAsync(RequestOptions? options); - public ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default); - public override void WaitForCompletion(CancellationToken cancellationToken = default); - public override ValueTask WaitForCompletionAsync(CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class FineTuningJobCollectionOptions { - public string AfterJobId { get; set; } - public int? PageSize { get; set; } - } - [Experimental("OPENAI001")] - public readonly partial struct FineTuningJobEventKind : IEquatable { - public FineTuningJobEventKind(string value); - public static FineTuningJobEventKind Message { get; } - public static FineTuningJobEventKind Metrics { get; } - public readonly bool Equals(FineTuningJobEventKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FineTuningJobEventKind left, FineTuningJobEventKind right); - public static implicit operator FineTuningJobEventKind(string value); - public static implicit operator FineTuningJobEventKind?(string value); - public static bool operator !=(FineTuningJobEventKind left, FineTuningJobEventKind right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FineTuningOptions : IJsonModel, IPersistableModel { - public IList Integrations { get; } - public IDictionary Metadata { get; } - public int? Seed { get; set; } - public string Suffix { get; set; } - public FineTuningTrainingMethod TrainingMethod { get; set; } - public string ValidationFile { get; set; } - protected virtual FineTuningOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FineTuningStatus : IEquatable, IEquatable { - public FineTuningStatus(string value); - public static FineTuningStatus Cancelled { get; } - public static FineTuningStatus Failed { get; } - public bool InProgress { get; } - public static FineTuningStatus Queued { get; } - public static FineTuningStatus Running { get; } - public static FineTuningStatus Succeeded { get; } - public static FineTuningStatus ValidatingFiles { get; } - public readonly bool Equals(FineTuningStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - public readonly bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FineTuningStatus left, FineTuningStatus right); - public static implicit operator FineTuningStatus(string value); - public static implicit operator FineTuningStatus?(string value); - public static bool operator !=(FineTuningStatus left, FineTuningStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FineTuningTrainingMethod : IJsonModel, IPersistableModel { - public static FineTuningTrainingMethod CreateDirectPreferenceOptimization(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null, HyperparameterBetaFactor betaFactor = null); - public static FineTuningTrainingMethod CreateSupervised(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null); - protected virtual FineTuningTrainingMethod JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningTrainingMethod PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GetCheckpointsOptions { - public string AfterCheckpointId { get; set; } - public int? PageSize { get; set; } - } - [Experimental("OPENAI001")] - public class GetEventsOptions { - public string AfterEventId { get; set; } - public int? PageSize { get; set; } - } - [Experimental("OPENAI001")] - public class HyperparameterBatchSize : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterBatchSize(int batchSize); - public static HyperparameterBatchSize CreateAuto(); - public static HyperparameterBatchSize CreateSize(int batchSize); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterBatchSize first, HyperparameterBatchSize second); - public static implicit operator HyperparameterBatchSize(int batchSize); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterBatchSize first, HyperparameterBatchSize second); - } - [Experimental("OPENAI001")] - public class HyperparameterBetaFactor : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterBetaFactor(int beta); - public static HyperparameterBetaFactor CreateAuto(); - public static HyperparameterBetaFactor CreateBeta(int beta); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterBetaFactor first, HyperparameterBetaFactor second); - public static implicit operator HyperparameterBetaFactor(int beta); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterBetaFactor first, HyperparameterBetaFactor second); - } - [Experimental("OPENAI001")] - public class HyperparameterEpochCount : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterEpochCount(int epochCount); - public static HyperparameterEpochCount CreateAuto(); - public static HyperparameterEpochCount CreateEpochCount(int epochCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterEpochCount first, HyperparameterEpochCount second); - public static implicit operator HyperparameterEpochCount(int epochCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterEpochCount first, HyperparameterEpochCount second); - } - [Experimental("OPENAI001")] - public class HyperparameterLearningRate : IEquatable, IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterLearningRate(double learningRateMultiplier); - public static HyperparameterLearningRate CreateAuto(); - public static HyperparameterLearningRate CreateMultiplier(double learningRateMultiplier); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(double other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterLearningRate first, HyperparameterLearningRate second); - public static implicit operator HyperparameterLearningRate(double learningRateMultiplier); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterLearningRate first, HyperparameterLearningRate second); - } - [Experimental("OPENAI001")] - public class HyperparametersForDPO : MethodHyperparameters, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public float Beta { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - protected virtual HyperparametersForDPO JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual HyperparametersForDPO PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class HyperparametersForSupervised : MethodHyperparameters, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - protected virtual HyperparametersForSupervised JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual HyperparametersForSupervised PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MethodHyperparameters { - } - [Experimental("OPENAI001")] - public class WeightsAndBiasesIntegration : FineTuningIntegration, IJsonModel, IPersistableModel { - public WeightsAndBiasesIntegration(string projectName); - public string DisplayName { get; set; } - public string EntityName { get; set; } - public string ProjectName { get; set; } - public IList Tags { get; } - protected override FineTuningIntegration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override FineTuningIntegration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + public string BaseModel { get { throw null; } } + public int BillableTrainedTokenCount { get { throw null; } } + public System.DateTimeOffset? EstimatedFinishAt { get { throw null; } } + + [System.Obsolete("This property is deprecated. Use the MethodHyperparameters property instead.")] + public FineTuningHyperparameters Hyperparameters { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Integrations { get { throw null; } } + public string JobId { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public MethodHyperparameters? MethodHyperparameters { get { throw null; } } + public override System.ClientModel.ContinuationToken? RehydrationToken { get { throw null; } protected set { } } + public System.Collections.Generic.IReadOnlyList ResultFileIds { get { throw null; } } + public int? Seed { get { throw null; } } + public FineTuningStatus Status { get { throw null; } } + public string TrainingFileId { get { throw null; } } + public FineTuningTrainingMethod? TrainingMethod { get { throw null; } } + public string? UserProvidedSuffix { get { throw null; } } + public string ValidationFileId { get { throw null; } } + + public virtual System.ClientModel.ClientResult Cancel(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelAndUpdate(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelAndUpdateAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetCheckpoints(GetCheckpointsOptions? options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetCheckpoints(string? after, int? limit, System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetCheckpointsAsync(GetCheckpointsOptions? options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetCheckpointsAsync(string? after, int? limit, System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.CollectionResult GetEvents(GetEventsOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetEvents(string? after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetEventsAsync(GetEventsOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetEventsAsync(string? after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, string JobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, string JobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.ClientModel.ClientResult UpdateStatus(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public System.ClientModel.ClientResult UpdateStatus(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override void WaitForCompletion(System.Threading.CancellationToken cancellationToken = default) { } + public override System.Threading.Tasks.ValueTask WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningJobCollectionOptions + { + public string AfterJobId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FineTuningJobEventKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FineTuningJobEventKind(string value) { } + public static FineTuningJobEventKind Message { get { throw null; } } + public static FineTuningJobEventKind Metrics { get { throw null; } } + + public readonly bool Equals(FineTuningJobEventKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FineTuningJobEventKind left, FineTuningJobEventKind right) { throw null; } + public static implicit operator FineTuningJobEventKind(string value) { throw null; } + public static implicit operator FineTuningJobEventKind?(string value) { throw null; } + public static bool operator !=(FineTuningJobEventKind left, FineTuningJobEventKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Integrations { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public int? Seed { get { throw null; } set { } } + public string Suffix { get { throw null; } set { } } + public FineTuningTrainingMethod TrainingMethod { get { throw null; } set { } } + public string ValidationFile { get { throw null; } set { } } + + protected virtual FineTuningOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FineTuningStatus : System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FineTuningStatus(string value) { } + public static FineTuningStatus Cancelled { get { throw null; } } + public static FineTuningStatus Failed { get { throw null; } } + public bool InProgress { get { throw null; } } + public static FineTuningStatus Queued { get { throw null; } } + public static FineTuningStatus Running { get { throw null; } } + public static FineTuningStatus Succeeded { get { throw null; } } + public static FineTuningStatus ValidatingFiles { get { throw null; } } + + public readonly bool Equals(FineTuningStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + public readonly bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FineTuningStatus left, FineTuningStatus right) { throw null; } + public static implicit operator FineTuningStatus(string value) { throw null; } + public static implicit operator FineTuningStatus?(string value) { throw null; } + public static bool operator !=(FineTuningStatus left, FineTuningStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningTrainingMethod : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningTrainingMethod() { } + public static FineTuningTrainingMethod CreateDirectPreferenceOptimization(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null, HyperparameterBetaFactor betaFactor = null) { throw null; } + public static FineTuningTrainingMethod CreateSupervised(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null) { throw null; } + protected virtual FineTuningTrainingMethod JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningTrainingMethod PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningTrainingMethod System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningTrainingMethod System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GetCheckpointsOptions + { + public string AfterCheckpointId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GetEventsOptions + { + public string AfterEventId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterBatchSize : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterBatchSize(int batchSize) { } + public static HyperparameterBatchSize CreateAuto() { throw null; } + public static HyperparameterBatchSize CreateSize(int batchSize) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterBatchSize first, HyperparameterBatchSize second) { throw null; } + public static implicit operator HyperparameterBatchSize(int batchSize) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterBatchSize first, HyperparameterBatchSize second) { throw null; } + HyperparameterBatchSize System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterBatchSize System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterBetaFactor : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterBetaFactor(int beta) { } + public static HyperparameterBetaFactor CreateAuto() { throw null; } + public static HyperparameterBetaFactor CreateBeta(int beta) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterBetaFactor first, HyperparameterBetaFactor second) { throw null; } + public static implicit operator HyperparameterBetaFactor(int beta) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterBetaFactor first, HyperparameterBetaFactor second) { throw null; } + HyperparameterBetaFactor System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterBetaFactor System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterEpochCount : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterEpochCount(int epochCount) { } + public static HyperparameterEpochCount CreateAuto() { throw null; } + public static HyperparameterEpochCount CreateEpochCount(int epochCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterEpochCount first, HyperparameterEpochCount second) { throw null; } + public static implicit operator HyperparameterEpochCount(int epochCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterEpochCount first, HyperparameterEpochCount second) { throw null; } + HyperparameterEpochCount System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterEpochCount System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterLearningRate : System.IEquatable, System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterLearningRate(double learningRateMultiplier) { } + public static HyperparameterLearningRate CreateAuto() { throw null; } + public static HyperparameterLearningRate CreateMultiplier(double learningRateMultiplier) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(double other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterLearningRate first, HyperparameterLearningRate second) { throw null; } + public static implicit operator HyperparameterLearningRate(double learningRateMultiplier) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterLearningRate first, HyperparameterLearningRate second) { throw null; } + HyperparameterLearningRate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterLearningRate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparametersForDPO : MethodHyperparameters, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int BatchSize { get { throw null; } } + public float Beta { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + protected virtual HyperparametersForDPO JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual HyperparametersForDPO PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + HyperparametersForDPO System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparametersForDPO System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparametersForSupervised : MethodHyperparameters, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int BatchSize { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + protected virtual HyperparametersForSupervised JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual HyperparametersForSupervised PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + HyperparametersForSupervised System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparametersForSupervised System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MethodHyperparameters + { + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WeightsAndBiasesIntegration : FineTuningIntegration, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WeightsAndBiasesIntegration(string projectName) { } + public string DisplayName { get { throw null; } set { } } + public string EntityName { get { throw null; } set { } } + public string ProjectName { get { throw null; } set { } } + public System.Collections.Generic.IList Tags { get { throw null; } } + + protected override FineTuningIntegration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override FineTuningIntegration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WeightsAndBiasesIntegration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WeightsAndBiasesIntegration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Graders { - [Experimental("OPENAI001")] - public class FineTuneReinforcementHyperparameters : IJsonModel, IPersistableModel { - public BinaryData BatchSize { get; set; } - public BinaryData ComputeMultiplier { get; set; } - public BinaryData EvalInterval { get; set; } - public BinaryData EvalSamples { get; set; } - public BinaryData LearningRateMultiplier { get; set; } - public BinaryData NEpochs { get; set; } - protected virtual FineTuneReinforcementHyperparameters JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuneReinforcementHyperparameters PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - [PersistableModelProxy(typeof(UnknownGrader))] - public class Grader : IJsonModel, IPersistableModel { - protected virtual Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderClient { - protected GraderClient(); - public GraderClient(ApiKeyCredential credential, OpenAIClientOptions options); - public GraderClient(ApiKeyCredential credential); - public GraderClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public GraderClient(AuthenticationPolicy authenticationPolicy); - protected internal GraderClient(ClientPipeline pipeline, OpenAIClientOptions options); - public GraderClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult RunGrader(BinaryContent content, RequestOptions options = null); - public virtual Task RunGraderAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult ValidateGrader(BinaryContent content, RequestOptions options = null); - public virtual Task ValidateGraderAsync(BinaryContent content, RequestOptions options = null); - } - [Experimental("OPENAI001")] - public class GraderLabelModel : Grader, IJsonModel, IPersistableModel { - public IList Labels { get; } - public string Model { get; set; } - public string Name { get; set; } - public IList PassingLabels { get; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderMulti : Grader, IJsonModel, IPersistableModel { - public GraderMulti(string name, BinaryData graders, string calculateOutput); - public string CalculateOutput { get; set; } - public BinaryData Graders { get; set; } - public string Name { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderPython : Grader, IJsonModel, IPersistableModel { - public GraderPython(string name, string source); - public string ImageTag { get; set; } - public string Name { get; set; } - public string Source { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderScoreModel : Grader, IJsonModel, IPersistableModel { - public string Model { get; set; } - public string Name { get; set; } - public IList Range { get; } - public BinaryData SamplingParams { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderStringCheck : Grader, IJsonModel, IPersistableModel { - public GraderStringCheck(string name, string input, string reference, GraderStringCheckOperation operation); - public string Input { get; set; } - public string Name { get; set; } - public GraderStringCheckOperation Operation { get; set; } - public string Reference { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GraderStringCheckOperation : IEquatable { - public GraderStringCheckOperation(string value); - public static GraderStringCheckOperation Eq { get; } - public static GraderStringCheckOperation Ilike { get; } - public static GraderStringCheckOperation Like { get; } - public static GraderStringCheckOperation Ne { get; } - public readonly bool Equals(GraderStringCheckOperation other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right); - public static implicit operator GraderStringCheckOperation(string value); - public static implicit operator GraderStringCheckOperation?(string value); - public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class GraderTextSimilarity : Grader, IJsonModel, IPersistableModel { - public GraderTextSimilarity(string name, string input, string reference, GraderTextSimilarityEvaluationMetric evaluationMetric); - public GraderTextSimilarityEvaluationMetric EvaluationMetric { get; set; } - public string Input { get; set; } - public string Name { get; set; } - public string Reference { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GraderTextSimilarityEvaluationMetric : IEquatable { - public GraderTextSimilarityEvaluationMetric(string value); - public static GraderTextSimilarityEvaluationMetric Bleu { get; } - public static GraderTextSimilarityEvaluationMetric FuzzyMatch { get; } - public static GraderTextSimilarityEvaluationMetric Gleu { get; } - public static GraderTextSimilarityEvaluationMetric Meteor { get; } - public static GraderTextSimilarityEvaluationMetric Rouge1 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge2 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge3 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge4 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge5 { get; } - public static GraderTextSimilarityEvaluationMetric RougeL { get; } - public readonly bool Equals(GraderTextSimilarityEvaluationMetric other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); - public static implicit operator GraderTextSimilarityEvaluationMetric(string value); - public static implicit operator GraderTextSimilarityEvaluationMetric?(string value); - public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct GraderType : IEquatable { - public GraderType(string value); - public static GraderType LabelModel { get; } - public static GraderType Multi { get; } - public static GraderType Python { get; } - public static GraderType ScoreModel { get; } - public static GraderType StringCheck { get; } - public static GraderType TextSimilarity { get; } - public readonly bool Equals(GraderType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderType left, GraderType right); - public static implicit operator GraderType(string value); - public static implicit operator GraderType?(string value); - public static bool operator !=(GraderType left, GraderType right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunGraderRequest : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - public BinaryData Item { get; } - public string ModelSample { get; } - protected virtual RunGraderRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunGraderResponse : IJsonModel, IPersistableModel { - public RunGraderResponseMetadata Metadata { get; } - public BinaryData ModelGraderTokenUsagePerModel { get; } - public float Reward { get; } - public BinaryData SubRewards { get; } - protected virtual RunGraderResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RunGraderResponse(ClientResult result); - protected virtual RunGraderResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunGraderResponseMetadata : IJsonModel, IPersistableModel { - public RunGraderResponseMetadataErrors Errors { get; } - public float ExecutionTime { get; } - public string Kind { get; } - public string Name { get; } - public string SampledModelName { get; } - public BinaryData Scores { get; } - public int? TokenUsage { get; } - protected virtual RunGraderResponseMetadata JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderResponseMetadata PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunGraderResponseMetadataErrors : IJsonModel, IPersistableModel { - public bool FormulaParseError { get; } - public bool InvalidVariableError { get; } - public bool ModelGraderParseError { get; } - public bool ModelGraderRefusalError { get; } - public bool ModelGraderServerError { get; } - public string ModelGraderServerErrorDetails { get; } - public bool OtherError { get; } - public bool PythonGraderRuntimeError { get; } - public string PythonGraderRuntimeErrorDetails { get; } - public bool PythonGraderServerError { get; } - public string PythonGraderServerErrorType { get; } - public bool SampleParseError { get; } - public bool TruncatedObservationError { get; } - public bool UnresponsiveRewardError { get; } - protected virtual RunGraderResponseMetadataErrors JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderResponseMetadataErrors PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class UnknownGrader : Grader, IJsonModel, IPersistableModel { - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ValidateGraderRequest : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - protected virtual ValidateGraderRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ValidateGraderRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ValidateGraderResponse : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - protected virtual ValidateGraderResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ValidateGraderResponse(ClientResult result); - protected virtual ValidateGraderResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + +namespace OpenAI.Graders +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuneReinforcementHyperparameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.BinaryData BatchSize { get { throw null; } set { } } + public System.BinaryData ComputeMultiplier { get { throw null; } set { } } + public System.BinaryData EvalInterval { get { throw null; } set { } } + public System.BinaryData EvalSamples { get { throw null; } set { } } + public System.BinaryData LearningRateMultiplier { get { throw null; } set { } } + public System.BinaryData NEpochs { get { throw null; } set { } } + + protected virtual FineTuneReinforcementHyperparameters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuneReinforcementHyperparameters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuneReinforcementHyperparameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuneReinforcementHyperparameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.ClientModel.Primitives.PersistableModelProxy(typeof(UnknownGrader))] + public partial class Grader : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal Grader() { } + protected virtual Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Grader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Grader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderClient + { + protected GraderClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public GraderClient(GraderClientSettings settings) { } + public GraderClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public GraderClient(System.ClientModel.ApiKeyCredential credential) { } + public GraderClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public GraderClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal GraderClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public GraderClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult RunGrader(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RunGraderAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ValidateGrader(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ValidateGraderAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class GraderClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderLabelModel : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GraderLabelModel() { } + public System.Collections.Generic.IList Labels { get { throw null; } } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList PassingLabels { get { throw null; } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderLabelModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderLabelModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderMulti : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderMulti(string name, System.BinaryData graders, string calculateOutput) { } + public string CalculateOutput { get { throw null; } set { } } + public System.BinaryData Graders { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderMulti System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderMulti System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderPython : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderPython(string name, string source) { } + public string ImageTag { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Source { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderPython System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderPython System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderScoreModel : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GraderScoreModel() { } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Range { get { throw null; } } + public System.BinaryData SamplingParams { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderScoreModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderScoreModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderStringCheck : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderStringCheck(string name, string input, string reference, GraderStringCheckOperation operation) { } + public string Input { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public GraderStringCheckOperation Operation { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderStringCheck System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderStringCheck System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GraderStringCheckOperation : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderStringCheckOperation(string value) { } + public static GraderStringCheckOperation Eq { get { throw null; } } + public static GraderStringCheckOperation Ilike { get { throw null; } } + public static GraderStringCheckOperation Like { get { throw null; } } + public static GraderStringCheckOperation Ne { get { throw null; } } + + public readonly bool Equals(GraderStringCheckOperation other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right) { throw null; } + public static implicit operator GraderStringCheckOperation(string value) { throw null; } + public static implicit operator GraderStringCheckOperation?(string value) { throw null; } + public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderTextSimilarity : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderTextSimilarity(string name, string input, string reference, GraderTextSimilarityEvaluationMetric evaluationMetric) { } + public GraderTextSimilarityEvaluationMetric EvaluationMetric { get { throw null; } set { } } + public string Input { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderTextSimilarity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderTextSimilarity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GraderTextSimilarityEvaluationMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderTextSimilarityEvaluationMetric(string value) { } + public static GraderTextSimilarityEvaluationMetric Bleu { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric FuzzyMatch { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Gleu { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Meteor { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge1 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge2 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge3 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge4 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge5 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric RougeL { get { throw null; } } + + public readonly bool Equals(GraderTextSimilarityEvaluationMetric other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right) { throw null; } + public static implicit operator GraderTextSimilarityEvaluationMetric(string value) { throw null; } + public static implicit operator GraderTextSimilarityEvaluationMetric?(string value) { throw null; } + public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GraderType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderType(string value) { } + public static GraderType LabelModel { get { throw null; } } + public static GraderType Multi { get { throw null; } } + public static GraderType Python { get { throw null; } } + public static GraderType ScoreModel { get { throw null; } } + public static GraderType StringCheck { get { throw null; } } + public static GraderType TextSimilarity { get { throw null; } } + + public readonly bool Equals(GraderType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderType left, GraderType right) { throw null; } + public static implicit operator GraderType(string value) { throw null; } + public static implicit operator GraderType?(string value) { throw null; } + public static bool operator !=(GraderType left, GraderType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderRequest() { } + public System.BinaryData Grader { get { throw null; } } + public System.BinaryData Item { get { throw null; } } + public string ModelSample { get { throw null; } } + + protected virtual RunGraderRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponse() { } + public RunGraderResponseMetadata Metadata { get { throw null; } } + public System.BinaryData ModelGraderTokenUsagePerModel { get { throw null; } } + public float Reward { get { throw null; } } + public System.BinaryData SubRewards { get { throw null; } } + + protected virtual RunGraderResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RunGraderResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual RunGraderResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderResponseMetadata : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponseMetadata() { } + public RunGraderResponseMetadataErrors Errors { get { throw null; } } + public float ExecutionTime { get { throw null; } } + public string Kind { get { throw null; } } + public string Name { get { throw null; } } + public string SampledModelName { get { throw null; } } + public System.BinaryData Scores { get { throw null; } } + public int? TokenUsage { get { throw null; } } + + protected virtual RunGraderResponseMetadata JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderResponseMetadata PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponseMetadata System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponseMetadata System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderResponseMetadataErrors : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponseMetadataErrors() { } + public bool FormulaParseError { get { throw null; } } + public bool InvalidVariableError { get { throw null; } } + public bool ModelGraderParseError { get { throw null; } } + public bool ModelGraderRefusalError { get { throw null; } } + public bool ModelGraderServerError { get { throw null; } } + public string ModelGraderServerErrorDetails { get { throw null; } } + public bool OtherError { get { throw null; } } + public bool PythonGraderRuntimeError { get { throw null; } } + public string PythonGraderRuntimeErrorDetails { get { throw null; } } + public bool PythonGraderServerError { get { throw null; } } + public string PythonGraderServerErrorType { get { throw null; } } + public bool SampleParseError { get { throw null; } } + public bool TruncatedObservationError { get { throw null; } } + public bool UnresponsiveRewardError { get { throw null; } } + + protected virtual RunGraderResponseMetadataErrors JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderResponseMetadataErrors PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponseMetadataErrors System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponseMetadataErrors System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class UnknownGrader : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal UnknownGrader() { } + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Grader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Grader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ValidateGraderRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidateGraderRequest() { } + public System.BinaryData Grader { get { throw null; } } + + protected virtual ValidateGraderRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ValidateGraderRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ValidateGraderRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ValidateGraderRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ValidateGraderResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidateGraderResponse() { } + public System.BinaryData Grader { get { throw null; } } + + protected virtual ValidateGraderResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ValidateGraderResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual ValidateGraderResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ValidateGraderResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ValidateGraderResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Images { - public class GeneratedImage : IJsonModel, IPersistableModel { - public BinaryData ImageBytes { get; } - public Uri ImageUri { get; } - public string RevisedPrompt { get; } - [Experimental("OPENAI001")] - protected virtual GeneratedImage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual GeneratedImage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageBackground : IEquatable { - public GeneratedImageBackground(string value); - public static GeneratedImageBackground Auto { get; } - public static GeneratedImageBackground Opaque { get; } - public static GeneratedImageBackground Transparent { get; } - public readonly bool Equals(GeneratedImageBackground other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageBackground left, GeneratedImageBackground right); - public static implicit operator GeneratedImageBackground(string value); - public static implicit operator GeneratedImageBackground?(string value); - public static bool operator !=(GeneratedImageBackground left, GeneratedImageBackground right); - public override readonly string ToString(); - } - public class GeneratedImageCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public GeneratedImageBackground? Background { get; } - public DateTimeOffset CreatedAt { get; } - [Experimental("OPENAI001")] - public GeneratedImageFileFormat? OutputFileFormat { get; } - [Experimental("OPENAI001")] - public GeneratedImageQuality? Quality { get; } - [Experimental("OPENAI001")] - public GeneratedImageSize? Size { get; } - [Experimental("OPENAI001")] - public ImageTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual GeneratedImageCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator GeneratedImageCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual GeneratedImageCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageFileFormat : IEquatable { - public GeneratedImageFileFormat(string value); - public static GeneratedImageFileFormat Jpeg { get; } - public static GeneratedImageFileFormat Png { get; } - public static GeneratedImageFileFormat Webp { get; } - public readonly bool Equals(GeneratedImageFileFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageFileFormat left, GeneratedImageFileFormat right); - public static implicit operator GeneratedImageFileFormat(string value); - public static implicit operator GeneratedImageFileFormat?(string value); - public static bool operator !=(GeneratedImageFileFormat left, GeneratedImageFileFormat right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageFormat : IEquatable { - public GeneratedImageFormat(string value); - public static GeneratedImageFormat Bytes { get; } - public static GeneratedImageFormat Uri { get; } - public readonly bool Equals(GeneratedImageFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageFormat left, GeneratedImageFormat right); - public static implicit operator GeneratedImageFormat(string value); - public static implicit operator GeneratedImageFormat?(string value); - public static bool operator !=(GeneratedImageFormat left, GeneratedImageFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageModerationLevel : IEquatable { - public GeneratedImageModerationLevel(string value); - public static GeneratedImageModerationLevel Auto { get; } - public static GeneratedImageModerationLevel Low { get; } - public readonly bool Equals(GeneratedImageModerationLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right); - public static implicit operator GeneratedImageModerationLevel(string value); - public static implicit operator GeneratedImageModerationLevel?(string value); - public static bool operator !=(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageQuality : IEquatable { - public GeneratedImageQuality(string value); - [Experimental("OPENAI001")] - public static GeneratedImageQuality Auto { get; } - [Experimental("OPENAI001")] - public static GeneratedImageQuality HD { get; } - public static GeneratedImageQuality High { get; } - [Experimental("OPENAI001")] - public static GeneratedImageQuality Low { get; } - [Experimental("OPENAI001")] - public static GeneratedImageQuality Medium { get; } - public static GeneratedImageQuality Standard { get; } - public readonly bool Equals(GeneratedImageQuality other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageQuality left, GeneratedImageQuality right); - public static implicit operator GeneratedImageQuality(string value); - public static implicit operator GeneratedImageQuality?(string value); - public static bool operator !=(GeneratedImageQuality left, GeneratedImageQuality right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageSize : IEquatable { + +namespace OpenAI.Images +{ + public partial class GeneratedImage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GeneratedImage() { } + public System.BinaryData ImageBytes { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + public string RevisedPrompt { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GeneratedImage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GeneratedImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GeneratedImageBackground : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageBackground(string value) { } + public static GeneratedImageBackground Auto { get { throw null; } } + public static GeneratedImageBackground Opaque { get { throw null; } } + public static GeneratedImageBackground Transparent { get { throw null; } } + + public readonly bool Equals(GeneratedImageBackground other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageBackground left, GeneratedImageBackground right) { throw null; } + public static implicit operator GeneratedImageBackground(string value) { throw null; } + public static implicit operator GeneratedImageBackground?(string value) { throw null; } + public static bool operator !=(GeneratedImageBackground left, GeneratedImageBackground right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class GeneratedImageCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GeneratedImageCollection() : base(default!) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageBackground? Background { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageQuality? Quality { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageSize? Size { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImageCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator GeneratedImageCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImageCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GeneratedImageCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GeneratedImageCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GeneratedImageFileFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageFileFormat(string value) { } + public static GeneratedImageFileFormat Jpeg { get { throw null; } } + public static GeneratedImageFileFormat Png { get { throw null; } } + public static GeneratedImageFileFormat Webp { get { throw null; } } + + public readonly bool Equals(GeneratedImageFileFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageFileFormat left, GeneratedImageFileFormat right) { throw null; } + public static implicit operator GeneratedImageFileFormat(string value) { throw null; } + public static implicit operator GeneratedImageFileFormat?(string value) { throw null; } + public static bool operator !=(GeneratedImageFileFormat left, GeneratedImageFileFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageFormat(string value) { } + public static GeneratedImageFormat Bytes { get { throw null; } } + public static GeneratedImageFormat Uri { get { throw null; } } + + public readonly bool Equals(GeneratedImageFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageFormat left, GeneratedImageFormat right) { throw null; } + public static implicit operator GeneratedImageFormat(string value) { throw null; } + public static implicit operator GeneratedImageFormat?(string value) { throw null; } + public static bool operator !=(GeneratedImageFormat left, GeneratedImageFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GeneratedImageModerationLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageModerationLevel(string value) { } + public static GeneratedImageModerationLevel Auto { get { throw null; } } + public static GeneratedImageModerationLevel Low { get { throw null; } } + + public readonly bool Equals(GeneratedImageModerationLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right) { throw null; } + public static implicit operator GeneratedImageModerationLevel(string value) { throw null; } + public static implicit operator GeneratedImageModerationLevel?(string value) { throw null; } + public static bool operator !=(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageQuality : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageQuality(string value) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality Auto { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality HD { get { throw null; } } + public static GeneratedImageQuality High { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality Low { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality Medium { get { throw null; } } + public static GeneratedImageQuality Standard { get { throw null; } } + + public readonly bool Equals(GeneratedImageQuality other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageQuality left, GeneratedImageQuality right) { throw null; } + public static implicit operator GeneratedImageQuality(string value) { throw null; } + public static implicit operator GeneratedImageQuality?(string value) { throw null; } + public static bool operator !=(GeneratedImageQuality left, GeneratedImageQuality right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; public static readonly GeneratedImageSize W1024xH1024; - [Experimental("OPENAI001")] + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] public static readonly GeneratedImageSize W1024xH1536; public static readonly GeneratedImageSize W1024xH1792; - [Experimental("OPENAI001")] + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] public static readonly GeneratedImageSize W1536xH1024; public static readonly GeneratedImageSize W1792xH1024; public static readonly GeneratedImageSize W256xH256; public static readonly GeneratedImageSize W512xH512; - public GeneratedImageSize(int width, int height); - [Experimental("OPENAI001")] - public static GeneratedImageSize Auto { get; } - public readonly bool Equals(GeneratedImageSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageSize left, GeneratedImageSize right); - public static bool operator !=(GeneratedImageSize left, GeneratedImageSize right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageStyle : IEquatable { - public GeneratedImageStyle(string value); - public static GeneratedImageStyle Natural { get; } - public static GeneratedImageStyle Vivid { get; } - public readonly bool Equals(GeneratedImageStyle other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageStyle left, GeneratedImageStyle right); - public static implicit operator GeneratedImageStyle(string value); - public static implicit operator GeneratedImageStyle?(string value); - public static bool operator !=(GeneratedImageStyle left, GeneratedImageStyle right); - public override readonly string ToString(); - } - public class ImageClient { - protected ImageClient(); - protected internal ImageClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ImageClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ImageClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public ImageClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public ImageClient(string model, AuthenticationPolicy authenticationPolicy); - public ImageClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateImage(string prompt, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageAsync(string prompt, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(Stream image, string imageFilename, string prompt, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(string imageFilePath, string prompt, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdit(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null); - public virtual Task> GenerateImageEditAsync(Stream image, string imageFilename, string prompt, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditAsync(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditAsync(string imageFilePath, string prompt, ImageEditOptions options = null); - public virtual Task> GenerateImageEditAsync(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdits(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult GenerateImageEdits(Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdits(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdits(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdits(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null); - public virtual Task GenerateImageEditsAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> GenerateImageEditsAsync(Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditsAsync(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditsAsync(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null); - public virtual Task> GenerateImageEditsAsync(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null); - public virtual ClientResult GenerateImages(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateImages(string prompt, int imageCount, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateImagesAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateImagesAsync(string prompt, int imageCount, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariation(Stream image, string imageFilename, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariation(string imageFilePath, ImageVariationOptions options = null); - public virtual Task> GenerateImageVariationAsync(Stream image, string imageFilename, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageVariationAsync(string imageFilePath, ImageVariationOptions options = null); - public virtual ClientResult GenerateImageVariations(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult GenerateImageVariations(Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariations(string imageFilePath, int imageCount, ImageVariationOptions options = null); - public virtual Task GenerateImageVariationsAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> GenerateImageVariationsAsync(Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageVariationsAsync(string imageFilePath, int imageCount, ImageVariationOptions options = null); - } - public class ImageEditOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public GeneratedImageBackground? Background { get; set; } - public string EndUserId { get; set; } - [Experimental("OPENAI001")] - public ImageInputFidelity? InputFidelity { get; set; } - [Experimental("OPENAI001")] - public int? OutputCompressionFactor { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageFileFormat? OutputFileFormat { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageQuality? Quality { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - [Experimental("OPENAI001")] - protected virtual ImageEditOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ImageEditOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageGenerationOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public GeneratedImageBackground? Background { get; set; } - public string EndUserId { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageModerationLevel? ModerationLevel { get; set; } - [Experimental("OPENAI001")] - public int? OutputCompressionFactor { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageFileFormat? OutputFileFormat { get; set; } - public GeneratedImageQuality? Quality { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - public GeneratedImageStyle? Style { get; set; } - [Experimental("OPENAI001")] - protected virtual ImageGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ImageGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageInputFidelity : IEquatable { - public ImageInputFidelity(string value); - public static ImageInputFidelity High { get; } - public static ImageInputFidelity Low { get; } - public readonly bool Equals(ImageInputFidelity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageInputFidelity left, ImageInputFidelity right); - public static implicit operator ImageInputFidelity(string value); - public static implicit operator ImageInputFidelity?(string value); - public static bool operator !=(ImageInputFidelity left, ImageInputFidelity right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ImageInputTokenUsageDetails : IJsonModel, IPersistableModel { - public long ImageTokenCount { get; } - public long TextTokenCount { get; } - protected virtual ImageInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ImageOutputTokenUsageDetails : IJsonModel, IPersistableModel { - public long ImageTokenCount { get; } - public long TextTokenCount { get; } - protected virtual ImageOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ImageTokenUsage : IJsonModel, IPersistableModel { - public long InputTokenCount { get; } - public ImageInputTokenUsageDetails InputTokenDetails { get; } - public long OutputTokenCount { get; } - public ImageOutputTokenUsageDetails OutputTokenDetails { get; } - public long TotalTokenCount { get; } - protected virtual ImageTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageVariationOptions : IJsonModel, IPersistableModel { - public string EndUserId { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - [Experimental("OPENAI001")] - protected virtual ImageVariationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ImageVariationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIImagesModelFactory { - public static GeneratedImage GeneratedImage(BinaryData imageBytes = null, Uri imageUri = null, string revisedPrompt = null); - [Experimental("OPENAI001")] - public static GeneratedImageCollection GeneratedImageCollection(DateTimeOffset createdAt = default, IEnumerable items = null, GeneratedImageBackground? background = null, GeneratedImageFileFormat? outputFileFormat = null, GeneratedImageSize? size = null, GeneratedImageQuality? quality = null, ImageTokenUsage usage = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static GeneratedImageCollection GeneratedImageCollection(DateTimeOffset createdAt, IEnumerable items); - [Experimental("OPENAI001")] - public static ImageInputTokenUsageDetails ImageInputTokenUsageDetails(long textTokenCount = 0, long imageTokenCount = 0); - [Experimental("OPENAI001")] - public static ImageTokenUsage ImageTokenUsage(long inputTokenCount = 0, long outputTokenCount = 0, long totalTokenCount = 0, ImageInputTokenUsageDetails inputTokenDetails = null, ImageOutputTokenUsageDetails outputTokenDetails = null); + public GeneratedImageSize(int width, int height) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageSize Auto { get { throw null; } } + + public readonly bool Equals(GeneratedImageSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageSize left, GeneratedImageSize right) { throw null; } + public static bool operator !=(GeneratedImageSize left, GeneratedImageSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageStyle : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageStyle(string value) { } + public static GeneratedImageStyle Natural { get { throw null; } } + public static GeneratedImageStyle Vivid { get { throw null; } } + + public readonly bool Equals(GeneratedImageStyle other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageStyle left, GeneratedImageStyle right) { throw null; } + public static implicit operator GeneratedImageStyle(string value) { throw null; } + public static implicit operator GeneratedImageStyle?(string value) { throw null; } + public static bool operator !=(GeneratedImageStyle left, GeneratedImageStyle right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ImageClient + { + protected ImageClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ImageClient(ImageClientSettings settings) { } + protected internal ImageClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ImageClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ImageClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ImageClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateImage(string prompt, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageAsync(string prompt, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(System.IO.Stream image, string imageFilename, string prompt, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(string imageFilePath, string prompt, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(System.IO.Stream image, string imageFilename, string prompt, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(string imageFilePath, string prompt, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.IO.Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImageEditsAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(System.IO.Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImages(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImages(string prompt, int imageCount, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImagesAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImagesAsync(string prompt, int imageCount, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariation(System.IO.Stream image, string imageFilename, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariation(string imageFilePath, ImageVariationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationAsync(System.IO.Stream image, string imageFilename, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationAsync(string imageFilePath, ImageVariationOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(System.IO.Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(string imageFilePath, int imageCount, ImageVariationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImageVariationsAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationsAsync(System.IO.Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationsAsync(string imageFilePath, int imageCount, ImageVariationOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ImageClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ImageEditOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageBackground? Background { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageInputFidelity? InputFidelity { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int? OutputCompressionFactor { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageQuality? Quality { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageEditOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageEditOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageEditOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageEditOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageBackground? Background { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageModerationLevel? ModerationLevel { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int? OutputCompressionFactor { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } set { } } + public GeneratedImageQuality? Quality { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + public GeneratedImageStyle? Style { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageInputFidelity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageInputFidelity(string value) { } + public static ImageInputFidelity High { get { throw null; } } + public static ImageInputFidelity Low { get { throw null; } } + + public readonly bool Equals(ImageInputFidelity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageInputFidelity left, ImageInputFidelity right) { throw null; } + public static implicit operator ImageInputFidelity(string value) { throw null; } + public static implicit operator ImageInputFidelity?(string value) { throw null; } + public static bool operator !=(ImageInputFidelity left, ImageInputFidelity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageInputTokenUsageDetails() { } + public long ImageTokenCount { get { throw null; } } + public long TextTokenCount { get { throw null; } } + + protected virtual ImageInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageOutputTokenUsageDetails() { } + public long ImageTokenCount { get { throw null; } } + public long TextTokenCount { get { throw null; } } + + protected virtual ImageOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageTokenUsage() { } + public long InputTokenCount { get { throw null; } } + public ImageInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public long OutputTokenCount { get { throw null; } } + public ImageOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + public long TotalTokenCount { get { throw null; } } + + protected virtual ImageTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageVariationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string EndUserId { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageVariationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageVariationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageVariationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageVariationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIImagesModelFactory + { + public static GeneratedImage GeneratedImage(System.BinaryData imageBytes = null, System.Uri imageUri = null, string revisedPrompt = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageCollection GeneratedImageCollection(System.DateTimeOffset createdAt = default, System.Collections.Generic.IEnumerable items = null, GeneratedImageBackground? background = null, GeneratedImageFileFormat? outputFileFormat = null, GeneratedImageSize? size = null, GeneratedImageQuality? quality = null, ImageTokenUsage usage = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static GeneratedImageCollection GeneratedImageCollection(System.DateTimeOffset createdAt, System.Collections.Generic.IEnumerable items) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ImageInputTokenUsageDetails ImageInputTokenUsageDetails(long textTokenCount = 0, long imageTokenCount = 0) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ImageTokenUsage ImageTokenUsage(long inputTokenCount = 0, long outputTokenCount = 0, long totalTokenCount = 0, ImageInputTokenUsageDetails inputTokenDetails = null, ImageOutputTokenUsageDetails outputTokenDetails = null) { throw null; } } } -namespace OpenAI.Models { - public class ModelDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string ModelId { get; } - [Experimental("OPENAI001")] - protected virtual ModelDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator ModelDeletionResult(ClientResult result); - [Experimental("OPENAI001")] - protected virtual ModelDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIModel : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string OwnedBy { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIModel JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIModel(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIModel PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIModelClient { - protected OpenAIModelClient(); - public OpenAIModelClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIModelClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public OpenAIModelClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public OpenAIModelClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIModelClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIModelClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult DeleteModel(string model, RequestOptions options); - public virtual ClientResult DeleteModel(string model, CancellationToken cancellationToken = default); - public virtual Task DeleteModelAsync(string model, RequestOptions options); - public virtual Task> DeleteModelAsync(string model, CancellationToken cancellationToken = default); - public virtual ClientResult GetModel(string model, RequestOptions options); - public virtual ClientResult GetModel(string model, CancellationToken cancellationToken = default); - public virtual Task GetModelAsync(string model, RequestOptions options); - public virtual Task> GetModelAsync(string model, CancellationToken cancellationToken = default); - public virtual ClientResult GetModels(RequestOptions options); - public virtual ClientResult GetModels(CancellationToken cancellationToken = default); - public virtual Task GetModelsAsync(RequestOptions options); - public virtual Task> GetModelsAsync(CancellationToken cancellationToken = default); - } - public class OpenAIModelCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - protected virtual OpenAIModelCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIModelCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIModelCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIModelsModelFactory { - public static ModelDeletionResult ModelDeletionResult(string modelId = null, bool deleted = false); - public static OpenAIModel OpenAIModel(string id = null, DateTimeOffset createdAt = default, string ownedBy = null); - public static OpenAIModelCollection OpenAIModelCollection(IEnumerable items = null); + +namespace OpenAI.Models +{ + public partial class ModelDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModelDeletionResult() { } + public bool Deleted { get { throw null; } } + public string ModelId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModelDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator ModelDeletionResult(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModelDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModelDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModelDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIModel() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string OwnedBy { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModel JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIModel(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModel PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIModelClient + { + protected OpenAIModelClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public OpenAIModelClient(OpenAIModelClientSettings settings) { } + public OpenAIModelClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIModelClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIModelClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIModelClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIModelClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIModelClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult DeleteModel(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteModel(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteModelAsync(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteModelAsync(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetModel(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetModel(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetModelAsync(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetModelAsync(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetModels(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetModels(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetModelsAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetModelsAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class OpenAIModelClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class OpenAIModelCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIModelCollection() : base(default!) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModelCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIModelCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModelCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIModelCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIModelCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIModelsModelFactory + { + public static ModelDeletionResult ModelDeletionResult(string modelId = null, bool deleted = false) { throw null; } + public static OpenAIModel OpenAIModel(string id = null, System.DateTimeOffset createdAt = default, string ownedBy = null) { throw null; } + public static OpenAIModelCollection OpenAIModelCollection(System.Collections.Generic.IEnumerable items = null) { throw null; } } } -namespace OpenAI.Moderations { - [Experimental("OPENAI001")] - [Flags] - public enum ModerationApplicableInputKinds { + +namespace OpenAI.Moderations +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.Flags] + public enum ModerationApplicableInputKinds + { None = 0, Other = 1, Text = 2, Image = 4 } - public class ModerationCategory { - [Experimental("OPENAI001")] - public ModerationApplicableInputKinds ApplicableInputKinds { get; } - public bool Flagged { get; } - public float Score { get; } - } - public class ModerationClient { - protected ModerationClient(); - protected internal ModerationClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ModerationClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ModerationClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public ModerationClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public ModerationClient(string model, AuthenticationPolicy authenticationPolicy); - public ModerationClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - [Experimental("OPENAI001")] - public virtual ClientResult ClassifyInputs(BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult ClassifyInputs(IEnumerable inputParts, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task ClassifyInputsAsync(BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task> ClassifyInputsAsync(IEnumerable inputParts, CancellationToken cancellationToken = default); - public virtual ClientResult ClassifyText(BinaryContent content, RequestOptions options = null); - public virtual ClientResult ClassifyText(IEnumerable inputs, CancellationToken cancellationToken = default); - public virtual ClientResult ClassifyText(string input, CancellationToken cancellationToken = default); - public virtual Task ClassifyTextAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> ClassifyTextAsync(IEnumerable inputs, CancellationToken cancellationToken = default); - public virtual Task> ClassifyTextAsync(string input, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class ModerationInputPart : IJsonModel, IPersistableModel { - public Uri ImageUri { get; } - public ModerationInputPartKind Kind { get; } - public string Text { get; } - public static ModerationInputPart CreateImagePart(Uri imageUri); - public static ModerationInputPart CreateTextPart(string text); - protected virtual ModerationInputPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ModerationInputPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ModerationInputPartKind { + + public partial class ModerationCategory + { + internal ModerationCategory() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ModerationApplicableInputKinds ApplicableInputKinds { get { throw null; } } + public bool Flagged { get { throw null; } } + public float Score { get { throw null; } } + } + public partial class ModerationClient + { + protected ModerationClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ModerationClient(ModerationClientSettings settings) { } + protected internal ModerationClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ModerationClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ModerationClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ModerationClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ModerationClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ModerationClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult ClassifyInputs(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult ClassifyInputs(System.Collections.Generic.IEnumerable inputParts, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task ClassifyInputsAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> ClassifyInputsAsync(System.Collections.Generic.IEnumerable inputParts, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(System.Collections.Generic.IEnumerable inputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(string input, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ClassifyTextAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ClassifyTextAsync(System.Collections.Generic.IEnumerable inputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> ClassifyTextAsync(string input, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ModerationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ModerationInputPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationInputPart() { } + public System.Uri ImageUri { get { throw null; } } + public ModerationInputPartKind Kind { get { throw null; } } + public string Text { get { throw null; } } + + public static ModerationInputPart CreateImagePart(System.Uri imageUri) { throw null; } + public static ModerationInputPart CreateTextPart(string text) { throw null; } + protected virtual ModerationInputPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ModerationInputPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationInputPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationInputPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ModerationInputPartKind + { Text = 0, Image = 1 } - public class ModerationResult : IJsonModel, IPersistableModel { - public bool Flagged { get; } - public ModerationCategory Harassment { get; } - public ModerationCategory HarassmentThreatening { get; } - public ModerationCategory Hate { get; } - public ModerationCategory HateThreatening { get; } - public ModerationCategory Illicit { get; } - public ModerationCategory IllicitViolent { get; } - public ModerationCategory SelfHarm { get; } - public ModerationCategory SelfHarmInstructions { get; } - public ModerationCategory SelfHarmIntent { get; } - public ModerationCategory Sexual { get; } - public ModerationCategory SexualMinors { get; } - public ModerationCategory Violence { get; } - public ModerationCategory ViolenceGraphic { get; } - [Experimental("OPENAI001")] - protected virtual ModerationResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ModerationResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ModerationResultCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - public string Id { get; } - public string Model { get; } - [Experimental("OPENAI001")] - protected virtual ModerationResultCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator ModerationResultCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual ModerationResultCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIModerationsModelFactory { - public static ModerationCategory ModerationCategory(bool flagged = false, float score = 0); - [Experimental("OPENAI001")] - public static ModerationResult ModerationResult(bool flagged = false, ModerationCategory hate = null, ModerationCategory hateThreatening = null, ModerationCategory harassment = null, ModerationCategory harassmentThreatening = null, ModerationCategory selfHarm = null, ModerationCategory selfHarmIntent = null, ModerationCategory selfHarmInstructions = null, ModerationCategory sexual = null, ModerationCategory sexualMinors = null, ModerationCategory violence = null, ModerationCategory violenceGraphic = null, ModerationCategory illicit = null, ModerationCategory illicitViolent = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ModerationResult ModerationResult(bool flagged, ModerationCategory hate, ModerationCategory hateThreatening, ModerationCategory harassment, ModerationCategory harassmentThreatening, ModerationCategory selfHarm, ModerationCategory selfHarmIntent, ModerationCategory selfHarmInstructions, ModerationCategory sexual, ModerationCategory sexualMinors, ModerationCategory violence, ModerationCategory violenceGraphic); - public static ModerationResultCollection ModerationResultCollection(string id = null, string model = null, IEnumerable items = null); + + public partial class ModerationResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationResult() { } + public bool Flagged { get { throw null; } } + public ModerationCategory Harassment { get { throw null; } } + public ModerationCategory HarassmentThreatening { get { throw null; } } + public ModerationCategory Hate { get { throw null; } } + public ModerationCategory HateThreatening { get { throw null; } } + public ModerationCategory Illicit { get { throw null; } } + public ModerationCategory IllicitViolent { get { throw null; } } + public ModerationCategory SelfHarm { get { throw null; } } + public ModerationCategory SelfHarmInstructions { get { throw null; } } + public ModerationCategory SelfHarmIntent { get { throw null; } } + public ModerationCategory Sexual { get { throw null; } } + public ModerationCategory SexualMinors { get { throw null; } } + public ModerationCategory Violence { get { throw null; } } + public ModerationCategory ViolenceGraphic { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ModerationResultCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationResultCollection() : base(default!) { } + public string Id { get { throw null; } } + public string Model { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResultCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator ModerationResultCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResultCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationResultCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationResultCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIModerationsModelFactory + { + public static ModerationCategory ModerationCategory(bool flagged = false, float score = 0) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ModerationResult ModerationResult(bool flagged = false, ModerationCategory hate = null, ModerationCategory hateThreatening = null, ModerationCategory harassment = null, ModerationCategory harassmentThreatening = null, ModerationCategory selfHarm = null, ModerationCategory selfHarmIntent = null, ModerationCategory selfHarmInstructions = null, ModerationCategory sexual = null, ModerationCategory sexualMinors = null, ModerationCategory violence = null, ModerationCategory violenceGraphic = null, ModerationCategory illicit = null, ModerationCategory illicitViolent = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ModerationResult ModerationResult(bool flagged, ModerationCategory hate, ModerationCategory hateThreatening, ModerationCategory harassment, ModerationCategory harassmentThreatening, ModerationCategory selfHarm, ModerationCategory selfHarmIntent, ModerationCategory selfHarmInstructions, ModerationCategory sexual, ModerationCategory sexualMinors, ModerationCategory violence, ModerationCategory violenceGraphic) { throw null; } + public static ModerationResultCollection ModerationResultCollection(string id = null, string model = null, System.Collections.Generic.IEnumerable items = null) { throw null; } } } -namespace OpenAI.Realtime { - [Experimental("OPENAI002")] - public class ConversationContentPart : IJsonModel, IPersistableModel { - public string AudioTranscript { get; } - public string Text { get; } - public static ConversationContentPart CreateInputAudioTranscriptPart(string transcript = null); - public static ConversationContentPart CreateInputTextPart(string text); - public static ConversationContentPart CreateOutputAudioTranscriptPart(string transcript = null); - public static ConversationContentPart CreateOutputTextPart(string text); - protected virtual ConversationContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ConversationContentPart(string text); - protected virtual ConversationContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationContentPartKind : IEquatable { - public ConversationContentPartKind(string value); - public static ConversationContentPartKind InputAudio { get; } - public static ConversationContentPartKind InputText { get; } - public static ConversationContentPartKind OutputAudio { get; } - public static ConversationContentPartKind OutputText { get; } - public readonly bool Equals(ConversationContentPartKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right); - public static implicit operator ConversationContentPartKind(string value); - public static implicit operator ConversationContentPartKind?(string value); - public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationFunctionTool : ConversationTool, IJsonModel, IPersistableModel { - public ConversationFunctionTool(string name); - public string Description { get; set; } - public string Name { get; set; } - public BinaryData Parameters { get; set; } - protected override ConversationTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ConversationTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationIncompleteReason : IEquatable { - public ConversationIncompleteReason(string value); - public static ConversationIncompleteReason ClientCancelled { get; } - public static ConversationIncompleteReason ContentFilter { get; } - public static ConversationIncompleteReason MaxOutputTokens { get; } - public static ConversationIncompleteReason TurnDetected { get; } - public readonly bool Equals(ConversationIncompleteReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationIncompleteReason left, ConversationIncompleteReason right); - public static implicit operator ConversationIncompleteReason(string value); - public static implicit operator ConversationIncompleteReason?(string value); - public static bool operator !=(ConversationIncompleteReason left, ConversationIncompleteReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int CachedTokenCount { get; } - public int TextTokenCount { get; } - protected virtual ConversationInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationItemStatus : IEquatable { - public ConversationItemStatus(string value); - public static ConversationItemStatus Completed { get; } - public static ConversationItemStatus Incomplete { get; } - public static ConversationItemStatus InProgress { get; } - public readonly bool Equals(ConversationItemStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationItemStatus left, ConversationItemStatus right); - public static implicit operator ConversationItemStatus(string value); - public static implicit operator ConversationItemStatus?(string value); - public static bool operator !=(ConversationItemStatus left, ConversationItemStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationMaxTokensChoice : IJsonModel, IPersistableModel { - public ConversationMaxTokensChoice(int numberValue); - public int? NumericValue { get; } - public static ConversationMaxTokensChoice CreateDefaultMaxTokensChoice(); - public static ConversationMaxTokensChoice CreateInfiniteMaxTokensChoice(); - public static ConversationMaxTokensChoice CreateNumericMaxTokensChoice(int maxTokens); - public static implicit operator ConversationMaxTokensChoice(int maxTokens); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationMessageRole : IEquatable { - public ConversationMessageRole(string value); - public static ConversationMessageRole Assistant { get; } - public static ConversationMessageRole System { get; } - public static ConversationMessageRole User { get; } - public readonly bool Equals(ConversationMessageRole other); - [EditorBrowsable(global::EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(global::EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationMessageRole left, ConversationMessageRole right); - public static implicit operator ConversationMessageRole(string value); - public static implicit operator ConversationMessageRole?(string value); - public static bool operator !=(ConversationMessageRole left, ConversationMessageRole right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationOutputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int TextTokenCount { get; } - protected virtual ConversationOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationRateLimitDetailsItem : IJsonModel, IPersistableModel { - public int MaximumCount { get; } - public string Name { get; } - public int RemainingCount { get; } - public TimeSpan TimeUntilReset { get; } - protected virtual ConversationRateLimitDetailsItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationRateLimitDetailsItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationResponseOptions : IJsonModel, IPersistableModel { + +namespace OpenAI.Realtime +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationContentPart() { } + public string AudioTranscript { get { throw null; } } + public string Text { get { throw null; } } + + public static ConversationContentPart CreateInputAudioTranscriptPart(string transcript = null) { throw null; } + public static ConversationContentPart CreateInputTextPart(string text) { throw null; } + public static ConversationContentPart CreateOutputAudioTranscriptPart(string transcript = null) { throw null; } + public static ConversationContentPart CreateOutputTextPart(string text) { throw null; } + protected virtual ConversationContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ConversationContentPart(string text) { throw null; } + protected virtual ConversationContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationContentPartKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationContentPartKind(string value) { } + public static ConversationContentPartKind InputAudio { get { throw null; } } + public static ConversationContentPartKind InputText { get { throw null; } } + public static ConversationContentPartKind OutputAudio { get { throw null; } } + public static ConversationContentPartKind OutputText { get { throw null; } } + + public readonly bool Equals(ConversationContentPartKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right) { throw null; } + public static implicit operator ConversationContentPartKind(string value) { throw null; } + public static implicit operator ConversationContentPartKind?(string value) { throw null; } + public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationFunctionTool : ConversationTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationFunctionTool(string name) { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } set { } } + + protected override ConversationTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ConversationTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationFunctionTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationFunctionTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationIncompleteReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationIncompleteReason(string value) { } + public static ConversationIncompleteReason ClientCancelled { get { throw null; } } + public static ConversationIncompleteReason ContentFilter { get { throw null; } } + public static ConversationIncompleteReason MaxOutputTokens { get { throw null; } } + public static ConversationIncompleteReason TurnDetected { get { throw null; } } + + public readonly bool Equals(ConversationIncompleteReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationIncompleteReason left, ConversationIncompleteReason right) { throw null; } + public static implicit operator ConversationIncompleteReason(string value) { throw null; } + public static implicit operator ConversationIncompleteReason?(string value) { throw null; } + public static bool operator !=(ConversationIncompleteReason left, ConversationIncompleteReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationInputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int CachedTokenCount { get { throw null; } } + public int TextTokenCount { get { throw null; } } + + protected virtual ConversationInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationItemStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationItemStatus(string value) { } + public static ConversationItemStatus Completed { get { throw null; } } + public static ConversationItemStatus Incomplete { get { throw null; } } + public static ConversationItemStatus InProgress { get { throw null; } } + + public readonly bool Equals(ConversationItemStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationItemStatus left, ConversationItemStatus right) { throw null; } + public static implicit operator ConversationItemStatus(string value) { throw null; } + public static implicit operator ConversationItemStatus?(string value) { throw null; } + public static bool operator !=(ConversationItemStatus left, ConversationItemStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationMaxTokensChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationMaxTokensChoice(int numberValue) { } + public int? NumericValue { get { throw null; } } + + public static ConversationMaxTokensChoice CreateDefaultMaxTokensChoice() { throw null; } + public static ConversationMaxTokensChoice CreateInfiniteMaxTokensChoice() { throw null; } + public static ConversationMaxTokensChoice CreateNumericMaxTokensChoice(int maxTokens) { throw null; } + public static implicit operator ConversationMaxTokensChoice(int maxTokens) { throw null; } + ConversationMaxTokensChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationMaxTokensChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationMessageRole : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationMessageRole(string value) { } + public static ConversationMessageRole Assistant { get { throw null; } } + public static ConversationMessageRole System { get { throw null; } } + public static ConversationMessageRole User { get { throw null; } } + + public readonly bool Equals(ConversationMessageRole other) { throw null; } + [System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationMessageRole left, ConversationMessageRole right) { throw null; } + public static implicit operator ConversationMessageRole(string value) { throw null; } + public static implicit operator ConversationMessageRole?(string value) { throw null; } + public static bool operator !=(ConversationMessageRole left, ConversationMessageRole right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationOutputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int TextTokenCount { get { throw null; } } + + protected virtual ConversationOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationRateLimitDetailsItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationRateLimitDetailsItem() { } + public int MaximumCount { get { throw null; } } + public string Name { get { throw null; } } + public int RemainingCount { get { throw null; } } + public System.TimeSpan TimeUntilReset { get { throw null; } } + + protected virtual ConversationRateLimitDetailsItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationRateLimitDetailsItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationRateLimitDetailsItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationRateLimitDetailsItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { public ConversationVoice? Voice; - public RealtimeContentModalities ContentModalities { get; set; } - public ResponseConversationSelection? ConversationSelection { get; set; } - public string Instructions { get; set; } - public ConversationMaxTokensChoice MaxOutputTokens { get; set; } - public IDictionary Metadata { get; } - public RealtimeAudioFormat? OutputAudioFormat { get; set; } - public IList OverrideItems { get; } - public float? Temperature { get; set; } - public ConversationToolChoice ToolChoice { get; set; } - public IList Tools { get; } - protected virtual ConversationResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationSessionConfiguredUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public new string EventId { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputTranscriptionOptions { get; } - public string Instructions { get; } - public ConversationMaxTokensChoice MaxOutputTokens { get; } - public string Model { get; } - public RealtimeAudioFormat OutputAudioFormat { get; } - public string SessionId { get; } - public float Temperature { get; } - public ConversationToolChoice ToolChoice { get; } - public IReadOnlyList Tools { get; } - public TurnDetectionOptions TurnDetectionOptions { get; } - public ConversationVoice Voice { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationSessionOptions : RealtimeRequestSessionBase, IJsonModel, IPersistableModel { - public ConversationSessionOptions(); - public RealtimeSessionAudioConfiguration Audio { get; set; } - public RealtimeContentModalities ContentModalities { get; set; } - public IList Include { get; } - public InputNoiseReductionOptions InputNoiseReductionOptions { get; set; } - public InputTranscriptionOptions InputTranscriptionOptions { get; set; } - public string Instructions { get; set; } - public ConversationMaxTokensChoice MaxOutputTokens { get; set; } - public float? Temperature { get; set; } - public ConversationToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public BinaryData Tracing { get; set; } - public TurnDetectionOptions TurnDetectionOptions { get; set; } - public ConversationVoice? Voice { get; set; } - protected override RealtimeRequestSessionBase JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeRequestSessionBase PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationSessionStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputTranscriptionOptions { get; } - public string Instructions { get; } - public ConversationMaxTokensChoice MaxOutputTokens { get; } - public string Model { get; } - public RealtimeAudioFormat OutputAudioFormat { get; } - public string SessionId { get; } - public float Temperature { get; } - public ConversationToolChoice ToolChoice { get; } - public IReadOnlyList Tools { get; } - public TurnDetectionOptions TurnDetectionOptions { get; } - public ConversationVoice Voice { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationStatus : IEquatable { - public ConversationStatus(string value); - public static ConversationStatus Cancelled { get; } - public static ConversationStatus Completed { get; } - public static ConversationStatus Failed { get; } - public static ConversationStatus Incomplete { get; } - public static ConversationStatus InProgress { get; } - public readonly bool Equals(ConversationStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationStatus left, ConversationStatus right); - public static implicit operator ConversationStatus(string value); - public static implicit operator ConversationStatus?(string value); - public static bool operator !=(ConversationStatus left, ConversationStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationStatusDetails : IJsonModel, IPersistableModel { - public string ErrorCode { get; } - public string ErrorKind { get; } - public ConversationIncompleteReason? IncompleteReason { get; } - public ConversationStatus StatusKind { get; } - protected virtual ConversationStatusDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationStatusDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public ConversationInputTokenUsageDetails InputTokenDetails { get; } - public int OutputTokenCount { get; } - public ConversationOutputTokenUsageDetails OutputTokenDetails { get; } - public int TotalTokenCount { get; } - protected virtual ConversationTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationTool : IJsonModel, IPersistableModel { - public ConversationToolKind Kind { get; } - public static ConversationTool CreateFunctionTool(string name, string description = null, BinaryData parameters = null); - protected virtual ConversationTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationToolChoice : IJsonModel, IPersistableModel { - public string FunctionName { get; } - public ConversationToolChoiceKind Kind { get; } - public static ConversationToolChoice CreateAutoToolChoice(); - public static ConversationToolChoice CreateFunctionToolChoice(string functionName); - public static ConversationToolChoice CreateNoneToolChoice(); - public static ConversationToolChoice CreateRequiredToolChoice(); - } - [Experimental("OPENAI002")] - public enum ConversationToolChoiceKind { + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public ResponseConversationSelection? ConversationSelection { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public RealtimeAudioFormat? OutputAudioFormat { get { throw null; } set { } } + public System.Collections.Generic.IList OverrideItems { get { throw null; } } + public float? Temperature { get { throw null; } set { } } + public ConversationToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + + protected virtual ConversationResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationSessionConfiguredUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationSessionConfiguredUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public new string EventId { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } } + public string Instructions { get { throw null; } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } } + public string Model { get { throw null; } } + public RealtimeAudioFormat OutputAudioFormat { get { throw null; } } + public string SessionId { get { throw null; } } + public float Temperature { get { throw null; } } + public ConversationToolChoice ToolChoice { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } } + public ConversationVoice Voice { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionConfiguredUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionConfiguredUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationSessionOptions : RealtimeRequestSessionBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationSessionOptions() { } + public RealtimeSessionAudioConfiguration Audio { get { throw null; } set { } } + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public System.Collections.Generic.IList Include { get { throw null; } } + public InputNoiseReductionOptions InputNoiseReductionOptions { get { throw null; } set { } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ConversationToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public System.BinaryData Tracing { get { throw null; } set { } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } set { } } + public ConversationVoice? Voice { get { throw null; } set { } } + + protected override RealtimeRequestSessionBase JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeRequestSessionBase PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationSessionStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationSessionStartedUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } } + public string Instructions { get { throw null; } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } } + public string Model { get { throw null; } } + public RealtimeAudioFormat OutputAudioFormat { get { throw null; } } + public string SessionId { get { throw null; } } + public float Temperature { get { throw null; } } + public ConversationToolChoice ToolChoice { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } } + public ConversationVoice Voice { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationStatus(string value) { } + public static ConversationStatus Cancelled { get { throw null; } } + public static ConversationStatus Completed { get { throw null; } } + public static ConversationStatus Failed { get { throw null; } } + public static ConversationStatus Incomplete { get { throw null; } } + public static ConversationStatus InProgress { get { throw null; } } + + public readonly bool Equals(ConversationStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationStatus left, ConversationStatus right) { throw null; } + public static implicit operator ConversationStatus(string value) { throw null; } + public static implicit operator ConversationStatus?(string value) { throw null; } + public static bool operator !=(ConversationStatus left, ConversationStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationStatusDetails() { } + public string ErrorCode { get { throw null; } } + public string ErrorKind { get { throw null; } } + public ConversationIncompleteReason? IncompleteReason { get { throw null; } } + public ConversationStatus StatusKind { get { throw null; } } + + protected virtual ConversationStatusDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationStatusDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationStatusDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public ConversationInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public ConversationOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual ConversationTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationTool() { } + public ConversationToolKind Kind { get { throw null; } } + + public static ConversationTool CreateFunctionTool(string name, string description = null, System.BinaryData parameters = null) { throw null; } + protected virtual ConversationTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationToolChoice() { } + public string FunctionName { get { throw null; } } + public ConversationToolChoiceKind Kind { get { throw null; } } + + public static ConversationToolChoice CreateAutoToolChoice() { throw null; } + public static ConversationToolChoice CreateFunctionToolChoice(string functionName) { throw null; } + public static ConversationToolChoice CreateNoneToolChoice() { throw null; } + public static ConversationToolChoice CreateRequiredToolChoice() { throw null; } + ConversationToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum ConversationToolChoiceKind + { Unknown = 0, Auto = 1, None = 2, Required = 3, Function = 4 } - [Experimental("OPENAI002")] - public readonly partial struct ConversationToolKind : IEquatable { - public ConversationToolKind(string value); - public static ConversationToolKind Function { get; } - public static ConversationToolKind Mcp { get; } - public readonly bool Equals(ConversationToolKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationToolKind left, ConversationToolKind right); - public static implicit operator ConversationToolKind(string value); - public static implicit operator ConversationToolKind?(string value); - public static bool operator !=(ConversationToolKind left, ConversationToolKind right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationVoice : IEquatable { - public ConversationVoice(string value); - public static ConversationVoice Alloy { get; } - public static ConversationVoice Ash { get; } - public static ConversationVoice Ballad { get; } - public static ConversationVoice Coral { get; } - public static ConversationVoice Echo { get; } - public static ConversationVoice Fable { get; } - public static ConversationVoice Nova { get; } - public static ConversationVoice Onyx { get; } - public static ConversationVoice Sage { get; } - public static ConversationVoice Shimmer { get; } - public static ConversationVoice Verse { get; } - public readonly bool Equals(ConversationVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationVoice left, ConversationVoice right); - public static implicit operator ConversationVoice(string value); - public static implicit operator ConversationVoice?(string value); - public static bool operator !=(ConversationVoice left, ConversationVoice right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class InputAudioClearedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioCommittedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ItemId { get; } - public string PreviousItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioSpeechFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public TimeSpan AudioEndTime { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioSpeechStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public TimeSpan AudioStartTime { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int? ContentIndex { get; } - public string Delta { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioTranscriptionFailedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ErrorCode { get; } - public string ErrorMessage { get; } - public string ErrorParameterName { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public string Transcript { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public enum InputNoiseReductionKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationToolKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationToolKind(string value) { } + public static ConversationToolKind Function { get { throw null; } } + public static ConversationToolKind Mcp { get { throw null; } } + + public readonly bool Equals(ConversationToolKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationToolKind left, ConversationToolKind right) { throw null; } + public static implicit operator ConversationToolKind(string value) { throw null; } + public static implicit operator ConversationToolKind?(string value) { throw null; } + public static bool operator !=(ConversationToolKind left, ConversationToolKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationVoice(string value) { } + public static ConversationVoice Alloy { get { throw null; } } + public static ConversationVoice Ash { get { throw null; } } + public static ConversationVoice Ballad { get { throw null; } } + public static ConversationVoice Coral { get { throw null; } } + public static ConversationVoice Echo { get { throw null; } } + public static ConversationVoice Fable { get { throw null; } } + public static ConversationVoice Nova { get { throw null; } } + public static ConversationVoice Onyx { get { throw null; } } + public static ConversationVoice Sage { get { throw null; } } + public static ConversationVoice Shimmer { get { throw null; } } + public static ConversationVoice Verse { get { throw null; } } + + public readonly bool Equals(ConversationVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationVoice left, ConversationVoice right) { throw null; } + public static implicit operator ConversationVoice(string value) { throw null; } + public static implicit operator ConversationVoice?(string value) { throw null; } + public static bool operator !=(ConversationVoice left, ConversationVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioClearedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioClearedUpdate() { } + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioClearedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioClearedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioCommittedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioCommittedUpdate() { } + public string ItemId { get { throw null; } } + public string PreviousItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioCommittedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioCommittedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioSpeechFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioSpeechFinishedUpdate() { } + public System.TimeSpan AudioEndTime { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioSpeechFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioSpeechFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioSpeechStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioSpeechStartedUpdate() { } + public System.TimeSpan AudioStartTime { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioSpeechStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioSpeechStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionDeltaUpdate() { } + public int? ContentIndex { get { throw null; } } + public string Delta { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioTranscriptionFailedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionFailedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ErrorCode { get { throw null; } } + public string ErrorMessage { get { throw null; } } + public string ErrorParameterName { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public string Transcript { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum InputNoiseReductionKind + { Unknown = 0, NearField = 1, FarField = 2, Disabled = 3 } - [Experimental("OPENAI002")] - public class InputNoiseReductionOptions : IJsonModel, IPersistableModel { - public InputNoiseReductionKind Kind { get; set; } - public static InputNoiseReductionOptions CreateDisabledOptions(); - public static InputNoiseReductionOptions CreateFarFieldOptions(); - public static InputNoiseReductionOptions CreateNearFieldOptions(); - protected virtual InputNoiseReductionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual InputNoiseReductionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct InputTranscriptionModel : IEquatable { - public InputTranscriptionModel(string value); - public static InputTranscriptionModel Gpt4oMiniTranscribe { get; } - public static InputTranscriptionModel Gpt4oMiniTranscribe20251215 { get; } - public static InputTranscriptionModel Gpt4oTranscribe { get; } - public static InputTranscriptionModel Gpt4oTranscribeDiarize { get; } - public static InputTranscriptionModel Whisper1 { get; } - public readonly bool Equals(InputTranscriptionModel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right); - public static implicit operator InputTranscriptionModel(string value); - public static implicit operator InputTranscriptionModel?(string value); - public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class InputTranscriptionOptions : IJsonModel, IPersistableModel { - public string Language { get; set; } - public InputTranscriptionModel? Model { get; set; } - public string Prompt { get; set; } - protected virtual InputTranscriptionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual InputTranscriptionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemCreatedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public string PreviousItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemDeletedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemRetrievedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeItem Item { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemTruncatedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int AudioEndMs { get; } - public int ContentIndex { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputAudioFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - public string Transcript { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputDeltaUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public BinaryData AudioBytes { get; } - public string AudioTranscript { get; } - public int ContentPartIndex { get; } - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public string ResponseId { get; } - public string Text { get; } - } - [Experimental("OPENAI002")] - public class OutputPartFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string AudioTranscript { get; } - public int ContentPartIndex { get; } - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public string ResponseId { get; } - public string Text { get; } - } - [Experimental("OPENAI002")] - public class OutputStreamingFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputStreamingStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputTextFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - public string Text { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RateLimitsUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList AllDetails { get; } - public ConversationRateLimitDetailsItem RequestDetails { get; } - public ConversationRateLimitDetailsItem TokenDetails { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeAudioFormat : IEquatable { - public RealtimeAudioFormat(string value); - public static RealtimeAudioFormat G711Alaw { get; } - public static RealtimeAudioFormat G711Ulaw { get; } - public static RealtimeAudioFormat Pcm16 { get; } - public readonly bool Equals(RealtimeAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right); - public static implicit operator RealtimeAudioFormat(string value); - public static implicit operator RealtimeAudioFormat?(string value); - public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeClient { - protected RealtimeClient(); - public RealtimeClient(ApiKeyCredential credential, RealtimeClientOptions options); - public RealtimeClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public RealtimeClient(AuthenticationPolicy authenticationPolicy, RealtimeClientOptions options); - [Experimental("OPENAI001")] - public RealtimeClient(AuthenticationPolicy authenticationPolicy); - protected internal RealtimeClient(ClientPipeline pipeline, RealtimeClientOptions options); - public RealtimeClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public event EventHandler OnReceivingCommand { - add; - remove; + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputNoiseReductionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputNoiseReductionOptions() { } + public InputNoiseReductionKind Kind { get { throw null; } set { } } + + public static InputNoiseReductionOptions CreateDisabledOptions() { throw null; } + public static InputNoiseReductionOptions CreateFarFieldOptions() { throw null; } + public static InputNoiseReductionOptions CreateNearFieldOptions() { throw null; } + protected virtual InputNoiseReductionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual InputNoiseReductionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputNoiseReductionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputNoiseReductionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct InputTranscriptionModel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public InputTranscriptionModel(string value) { } + public static InputTranscriptionModel Gpt4oMiniTranscribe { get { throw null; } } + public static InputTranscriptionModel Gpt4oMiniTranscribe20251215 { get { throw null; } } + public static InputTranscriptionModel Gpt4oTranscribe { get { throw null; } } + public static InputTranscriptionModel Gpt4oTranscribeDiarize { get { throw null; } } + public static InputTranscriptionModel Whisper1 { get { throw null; } } + + public readonly bool Equals(InputTranscriptionModel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right) { throw null; } + public static implicit operator InputTranscriptionModel(string value) { throw null; } + public static implicit operator InputTranscriptionModel?(string value) { throw null; } + public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputTranscriptionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Language { get { throw null; } set { } } + public InputTranscriptionModel? Model { get { throw null; } set { } } + public string Prompt { get { throw null; } set { } } + + protected virtual InputTranscriptionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual InputTranscriptionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputTranscriptionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputTranscriptionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemCreatedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemCreatedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public string PreviousItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemCreatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemCreatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemDeletedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemDeletedUpdate() { } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemDeletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemDeletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemRetrievedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemRetrievedUpdate() { } + public RealtimeItem Item { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemRetrievedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemRetrievedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemTruncatedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemTruncatedUpdate() { } + public int AudioEndMs { get { throw null; } } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemTruncatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemTruncatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputAudioFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputAudioFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputAudioFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputAudioFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputAudioTranscriptionFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputAudioTranscriptionFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Transcript { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputDeltaUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputDeltaUpdate() { } + public System.BinaryData AudioBytes { get { throw null; } } + public string AudioTranscript { get { throw null; } } + public int ContentPartIndex { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + OutputDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputPartFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputPartFinishedUpdate() { } + public string AudioTranscript { get { throw null; } } + public int ContentPartIndex { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + OutputPartFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputPartFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputStreamingFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputStreamingFinishedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputStreamingFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputStreamingFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputStreamingStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputStreamingStartedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputStreamingStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputStreamingStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputTextFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputTextFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputTextFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputTextFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RateLimitsUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RateLimitsUpdate() { } + public System.Collections.Generic.IReadOnlyList AllDetails { get { throw null; } } + public ConversationRateLimitDetailsItem RequestDetails { get { throw null; } } + public ConversationRateLimitDetailsItem TokenDetails { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RateLimitsUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RateLimitsUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeAudioFormat(string value) { } + public static RealtimeAudioFormat G711Alaw { get { throw null; } } + public static RealtimeAudioFormat G711Ulaw { get { throw null; } } + public static RealtimeAudioFormat Pcm16 { get { throw null; } } + + public readonly bool Equals(RealtimeAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right) { throw null; } + public static implicit operator RealtimeAudioFormat(string value) { throw null; } + public static implicit operator RealtimeAudioFormat?(string value) { throw null; } + public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeClient + { + protected RealtimeClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public RealtimeClient(RealtimeClientSettings settings) { } + public RealtimeClient(System.ClientModel.ApiKeyCredential credential, RealtimeClientOptions options) { } + public RealtimeClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public RealtimeClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, RealtimeClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public RealtimeClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal RealtimeClient(System.ClientModel.Primitives.ClientPipeline pipeline, RealtimeClientOptions options) { } + public RealtimeClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public event System.EventHandler OnReceivingCommand { + add { } + remove { } } - public event EventHandler OnSendingCommand { - add; - remove; + + public event System.EventHandler OnSendingCommand { + add { } + remove { } } - public virtual ClientResult CreateRealtimeClientSecret(RealtimeCreateClientSecretRequest body, CancellationToken cancellationToken = default); - public virtual ClientResult CreateRealtimeClientSecret(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateRealtimeClientSecretAsync(RealtimeCreateClientSecretRequest body, CancellationToken cancellationToken = default); - public virtual Task CreateRealtimeClientSecretAsync(BinaryContent content, RequestOptions options = null); - public RealtimeSession StartConversationSession(string model, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartConversationSessionAsync(string model, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public RealtimeSession StartSession(string model, string intent, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartSessionAsync(string model, string intent, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public RealtimeSession StartTranscriptionSession(RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartTranscriptionSessionAsync(RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - } - public class RealtimeClientOptions : ClientPipelineOptions { - public Uri Endpoint { get; set; } - public string OrganizationId { get; set; } - public string ProjectId { get; set; } - public string UserAgentApplicationId { get; set; } - } - [Experimental("OPENAI002")] - [Flags] - public enum RealtimeContentModalities { + + public virtual System.ClientModel.ClientResult CreateRealtimeClientSecret(RealtimeCreateClientSecretRequest body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateRealtimeClientSecret(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateRealtimeClientSecretAsync(RealtimeCreateClientSecretRequest body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateRealtimeClientSecretAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public RealtimeSession StartConversationSession(string model, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartConversationSessionAsync(string model, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public RealtimeSession StartSession(string model, string intent, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartSessionAsync(string model, string intent, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public RealtimeSession StartTranscriptionSession(RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartTranscriptionSessionAsync(RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public partial class RealtimeClientOptions : System.ClientModel.Primitives.ClientPipelineOptions + { + public System.Uri Endpoint { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string ProjectId { get { throw null; } set { } } + public string UserAgentApplicationId { get { throw null; } set { } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class RealtimeClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + [System.Flags] + public enum RealtimeContentModalities + { Default = 0, Text = 1, Audio = 2 } - [Experimental("OPENAI002")] - public class RealtimeCreateClientSecretRequest : IJsonModel, IPersistableModel { - public RealtimeCreateClientSecretRequestExpiresAfter ExpiresAfter { get; set; } - public RealtimeSessionCreateRequestUnion Session { get; set; } - protected virtual RealtimeCreateClientSecretRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(RealtimeCreateClientSecretRequest realtimeCreateClientSecretRequest); - protected virtual RealtimeCreateClientSecretRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeCreateClientSecretRequestExpiresAfter : IJsonModel, IPersistableModel { - public RealtimeCreateClientSecretRequestExpiresAfterAnchor? Anchor { get; set; } - public int? Seconds { get; set; } - protected virtual RealtimeCreateClientSecretRequestExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeCreateClientSecretRequestExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeCreateClientSecretRequestExpiresAfterAnchor : IEquatable { - public RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value); - public static RealtimeCreateClientSecretRequestExpiresAfterAnchor CreatedAt { get; } - public readonly bool Equals(RealtimeCreateClientSecretRequestExpiresAfterAnchor other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right); - public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value); - public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor?(string value); - public static bool operator !=(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeCreateClientSecretResponse : IJsonModel, IPersistableModel { - public DateTimeOffset ExpiresAt { get; } - public RealtimeSessionCreateResponseUnion Session { get; } - public string Value { get; } - protected virtual RealtimeCreateClientSecretResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RealtimeCreateClientSecretResponse(ClientResult result); - protected virtual RealtimeCreateClientSecretResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeErrorUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ErrorCode { get; } - public string ErrorEventId { get; } - public string Message { get; } - public string ParameterName { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeItem : IJsonModel, IPersistableModel { - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string FunctionName { get; } - public string Id { get; set; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public static RealtimeItem CreateAssistantMessage(IEnumerable contentItems); - public static RealtimeItem CreateFunctionCall(string name, string callId, string arguments); - public static RealtimeItem CreateFunctionCallOutput(string callId, string output); - public static RealtimeItem CreateSystemMessage(IEnumerable contentItems); - public static RealtimeItem CreateUserMessage(IEnumerable contentItems); - protected virtual RealtimeItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeRequestSessionBase : IJsonModel, IPersistableModel { - protected virtual RealtimeRequestSessionBase JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeRequestSessionBase PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSession : IDisposable { - protected internal RealtimeSession(ApiKeyCredential credential, RealtimeClient parentClient, Uri endpoint, string model, string intent); - public Net.WebSockets.WebSocket WebSocket { get; protected set; } - public virtual void AddItem(RealtimeItem item, string previousItemId, CancellationToken cancellationToken = default); - public virtual void AddItem(RealtimeItem item, CancellationToken cancellationToken = default); - public virtual Task AddItemAsync(RealtimeItem item, string previousItemId, CancellationToken cancellationToken = default); - public virtual Task AddItemAsync(RealtimeItem item, CancellationToken cancellationToken = default); - public virtual void CancelResponse(CancellationToken cancellationToken = default); - public virtual Task CancelResponseAsync(CancellationToken cancellationToken = default); - public virtual void ClearInputAudio(CancellationToken cancellationToken = default); - public virtual Task ClearInputAudioAsync(CancellationToken cancellationToken = default); - public virtual void CommitPendingAudio(CancellationToken cancellationToken = default); - public virtual Task CommitPendingAudioAsync(CancellationToken cancellationToken = default); - public virtual Task ConfigureConversationSessionAsync(ConversationSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual void ConfigureSession(ConversationSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual void ConfigureTranscriptionSession(TranscriptionSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual Task ConfigureTranscriptionSessionAsync(TranscriptionSessionOptions sessionOptions, CancellationToken cancellationToken = default); - protected internal virtual void Connect(string queryString = null, IDictionary headers = null, CancellationToken cancellationToken = default); - protected internal virtual Task ConnectAsync(string queryString = null, IDictionary headers = null, CancellationToken cancellationToken = default); - public virtual void DeleteItem(string itemId, CancellationToken cancellationToken = default); - public virtual Task DeleteItemAsync(string itemId, CancellationToken cancellationToken = default); - public void Dispose(); - public virtual void InterruptResponse(CancellationToken cancellationToken = default); - public virtual Task InterruptResponseAsync(CancellationToken cancellationToken = default); - public virtual IEnumerable ReceiveUpdates(RequestOptions options); - public virtual IEnumerable ReceiveUpdates(CancellationToken cancellationToken = default); - public virtual IAsyncEnumerable ReceiveUpdatesAsync(RequestOptions options); - public virtual IAsyncEnumerable ReceiveUpdatesAsync(CancellationToken cancellationToken = default); - public virtual void RequestItemRetrieval(string itemId, CancellationToken cancellationToken = default); - public virtual Task RequestItemRetrievalAsync(string itemId, CancellationToken cancellationToken = default); - public virtual void SendCommand(BinaryData data, RequestOptions options); - public virtual Task SendCommandAsync(BinaryData data, RequestOptions options); - public virtual void SendInputAudio(BinaryData audio, CancellationToken cancellationToken = default); - public virtual void SendInputAudio(Stream audio, CancellationToken cancellationToken = default); - public virtual Task SendInputAudioAsync(BinaryData audio, CancellationToken cancellationToken = default); - public virtual Task SendInputAudioAsync(Stream audio, CancellationToken cancellationToken = default); - public virtual void StartResponse(ConversationResponseOptions options, CancellationToken cancellationToken = default); - public void StartResponse(CancellationToken cancellationToken = default); - public virtual Task StartResponseAsync(ConversationResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task StartResponseAsync(CancellationToken cancellationToken = default); - public virtual void TruncateItem(string itemId, int contentPartIndex, TimeSpan audioDuration, CancellationToken cancellationToken = default); - public virtual Task TruncateItemAsync(string itemId, int contentPartIndex, TimeSpan audioDuration, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI002")] - public class RealtimeSessionAudioConfiguration : IJsonModel, IPersistableModel { - public RealtimeSessionAudioInputConfiguration Input { get; set; } - public RealtimeSessionAudioOutputConfiguration Output { get; set; } - protected virtual RealtimeSessionAudioConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSessionAudioInputConfiguration : IJsonModel, IPersistableModel { - public RealtimeAudioFormat? Format { get; set; } - public InputNoiseReductionOptions NoiseReduction { get; set; } - public InputTranscriptionOptions Transcription { get; set; } - public TurnDetectionOptions TurnDetection { get; set; } - protected virtual RealtimeSessionAudioInputConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioInputConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSessionAudioOutputConfiguration : IJsonModel, IPersistableModel { - public RealtimeAudioFormat? Format { get; set; } - public float? Speed { get; set; } - public ConversationVoice? Voice { get; set; } - protected virtual RealtimeSessionAudioOutputConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioOutputConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSessionCreateRequestUnion : IJsonModel, IPersistableModel { - protected virtual RealtimeSessionCreateRequestUnion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionCreateRequestUnion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeSessionCreateRequestUnionType : IEquatable { - public RealtimeSessionCreateRequestUnionType(string value); - public static RealtimeSessionCreateRequestUnionType Realtime { get; } - public static RealtimeSessionCreateRequestUnionType Transcription { get; } - public readonly bool Equals(RealtimeSessionCreateRequestUnionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right); - public static implicit operator RealtimeSessionCreateRequestUnionType(string value); - public static implicit operator RealtimeSessionCreateRequestUnionType?(string value); - public static bool operator !=(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeSessionCreateResponseUnion : IJsonModel, IPersistableModel { - protected virtual RealtimeSessionCreateResponseUnion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionCreateResponseUnion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeSessionCreateResponseUnionType : IEquatable { - public RealtimeSessionCreateResponseUnionType(string value); - public static RealtimeSessionCreateResponseUnionType Realtime { get; } - public static RealtimeSessionCreateResponseUnionType Transcription { get; } - public readonly bool Equals(RealtimeSessionCreateResponseUnionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right); - public static implicit operator RealtimeSessionCreateResponseUnionType(string value); - public static implicit operator RealtimeSessionCreateResponseUnionType?(string value); - public static bool operator !=(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeSessionOptions { - public IDictionary Headers { get; } - public string QueryString { get; set; } - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeSessionType : IEquatable { - public RealtimeSessionType(string value); - public static RealtimeSessionType Realtime { get; } - public static RealtimeSessionType Transcription { get; } - public readonly bool Equals(RealtimeSessionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionType left, RealtimeSessionType right); - public static implicit operator RealtimeSessionType(string value); - public static implicit operator RealtimeSessionType?(string value); - public static bool operator !=(RealtimeSessionType left, RealtimeSessionType right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeUpdate : IJsonModel, IPersistableModel { - public string EventId { get; } - public RealtimeUpdateKind Kind { get; } - public BinaryData GetRawContent(); - protected virtual RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RealtimeUpdate(ClientResult result); - protected virtual RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public enum RealtimeUpdateKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeCreateClientSecretRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeCreateClientSecretRequestExpiresAfter ExpiresAfter { get { throw null; } set { } } + public RealtimeSessionCreateRequestUnion Session { get { throw null; } set { } } + + protected virtual RealtimeCreateClientSecretRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(RealtimeCreateClientSecretRequest realtimeCreateClientSecretRequest) { throw null; } + protected virtual RealtimeCreateClientSecretRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeCreateClientSecretRequestExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeCreateClientSecretRequestExpiresAfterAnchor? Anchor { get { throw null; } set { } } + public int? Seconds { get { throw null; } set { } } + + protected virtual RealtimeCreateClientSecretRequestExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeCreateClientSecretRequestExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretRequestExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretRequestExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeCreateClientSecretRequestExpiresAfterAnchor : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value) { } + public static RealtimeCreateClientSecretRequestExpiresAfterAnchor CreatedAt { get { throw null; } } + + public readonly bool Equals(RealtimeCreateClientSecretRequestExpiresAfterAnchor other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right) { throw null; } + public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value) { throw null; } + public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor?(string value) { throw null; } + public static bool operator !=(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeCreateClientSecretResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeCreateClientSecretResponse() { } + public System.DateTimeOffset ExpiresAt { get { throw null; } } + public RealtimeSessionCreateResponseUnion Session { get { throw null; } } + public string Value { get { throw null; } } + + protected virtual RealtimeCreateClientSecretResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RealtimeCreateClientSecretResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual RealtimeCreateClientSecretResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeErrorUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeErrorUpdate() { } + public string ErrorCode { get { throw null; } } + public string ErrorEventId { get { throw null; } } + public string Message { get { throw null; } } + public string ParameterName { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeErrorUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeErrorUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeItem() { } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionName { get { throw null; } } + public string Id { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + + public static RealtimeItem CreateAssistantMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + public static RealtimeItem CreateFunctionCall(string name, string callId, string arguments) { throw null; } + public static RealtimeItem CreateFunctionCallOutput(string callId, string output) { throw null; } + public static RealtimeItem CreateSystemMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + public static RealtimeItem CreateUserMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + protected virtual RealtimeItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeRequestSessionBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeRequestSessionBase() { } + protected virtual RealtimeRequestSessionBase JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeRequestSessionBase PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeRequestSessionBase System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeRequestSessionBase System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSession : System.IDisposable + { + protected internal RealtimeSession(System.ClientModel.ApiKeyCredential credential, RealtimeClient parentClient, System.Uri endpoint, string model, string intent) { } + public System.Net.WebSockets.WebSocket WebSocket { get { throw null; } protected set { } } + + public virtual void AddItem(RealtimeItem item, string previousItemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void AddItem(RealtimeItem item, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task AddItemAsync(RealtimeItem item, string previousItemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddItemAsync(RealtimeItem item, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void CancelResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task CancelResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void ClearInputAudio(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task ClearInputAudioAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void CommitPendingAudio(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task CommitPendingAudioAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ConfigureConversationSessionAsync(ConversationSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void ConfigureSession(ConversationSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void ConfigureTranscriptionSession(TranscriptionSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task ConfigureTranscriptionSessionAsync(TranscriptionSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { throw null; } + protected internal virtual void Connect(string queryString = null, System.Collections.Generic.IDictionary headers = null, System.Threading.CancellationToken cancellationToken = default) { } + protected internal virtual System.Threading.Tasks.Task ConnectAsync(string queryString = null, System.Collections.Generic.IDictionary headers = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void DeleteItem(string itemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task DeleteItemAsync(string itemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public void Dispose() { } + public virtual void InterruptResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task InterruptResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Collections.Generic.IEnumerable ReceiveUpdates(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Collections.Generic.IEnumerable ReceiveUpdates(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable ReceiveUpdatesAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable ReceiveUpdatesAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void RequestItemRetrieval(string itemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task RequestItemRetrievalAsync(string itemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void SendCommand(System.BinaryData data, System.ClientModel.Primitives.RequestOptions options) { } + public virtual System.Threading.Tasks.Task SendCommandAsync(System.BinaryData data, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual void SendInputAudio(System.BinaryData audio, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void SendInputAudio(System.IO.Stream audio, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task SendInputAudioAsync(System.BinaryData audio, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task SendInputAudioAsync(System.IO.Stream audio, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void StartResponse(ConversationResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { } + public void StartResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task StartResponseAsync(ConversationResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void TruncateItem(string itemId, int contentPartIndex, System.TimeSpan audioDuration, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task TruncateItemAsync(string itemId, int contentPartIndex, System.TimeSpan audioDuration, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionAudioConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeSessionAudioInputConfiguration Input { get { throw null; } set { } } + public RealtimeSessionAudioOutputConfiguration Output { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionAudioInputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeAudioFormat? Format { get { throw null; } set { } } + public InputNoiseReductionOptions NoiseReduction { get { throw null; } set { } } + public InputTranscriptionOptions Transcription { get { throw null; } set { } } + public TurnDetectionOptions TurnDetection { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioInputConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioInputConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioInputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioInputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionAudioOutputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeAudioFormat? Format { get { throw null; } set { } } + public float? Speed { get { throw null; } set { } } + public ConversationVoice? Voice { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioOutputConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioOutputConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioOutputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioOutputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionCreateRequestUnion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeSessionCreateRequestUnion() { } + protected virtual RealtimeSessionCreateRequestUnion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionCreateRequestUnion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionCreateRequestUnion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionCreateRequestUnion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeSessionCreateRequestUnionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionCreateRequestUnionType(string value) { } + public static RealtimeSessionCreateRequestUnionType Realtime { get { throw null; } } + public static RealtimeSessionCreateRequestUnionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionCreateRequestUnionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right) { throw null; } + public static implicit operator RealtimeSessionCreateRequestUnionType(string value) { throw null; } + public static implicit operator RealtimeSessionCreateRequestUnionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionCreateResponseUnion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeSessionCreateResponseUnion() { } + protected virtual RealtimeSessionCreateResponseUnion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionCreateResponseUnion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionCreateResponseUnion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionCreateResponseUnion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeSessionCreateResponseUnionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionCreateResponseUnionType(string value) { } + public static RealtimeSessionCreateResponseUnionType Realtime { get { throw null; } } + public static RealtimeSessionCreateResponseUnionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionCreateResponseUnionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right) { throw null; } + public static implicit operator RealtimeSessionCreateResponseUnionType(string value) { throw null; } + public static implicit operator RealtimeSessionCreateResponseUnionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionOptions + { + public System.Collections.Generic.IDictionary Headers { get { throw null; } } + public string QueryString { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeSessionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionType(string value) { } + public static RealtimeSessionType Realtime { get { throw null; } } + public static RealtimeSessionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionType left, RealtimeSessionType right) { throw null; } + public static implicit operator RealtimeSessionType(string value) { throw null; } + public static implicit operator RealtimeSessionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionType left, RealtimeSessionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeUpdate() { } + public string EventId { get { throw null; } } + public RealtimeUpdateKind Kind { get { throw null; } } + + public System.BinaryData GetRawContent() { throw null; } + protected virtual RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RealtimeUpdate(System.ClientModel.ClientResult result) { throw null; } + protected virtual RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum RealtimeUpdateKind + { Unknown = 0, SessionStarted = 1, SessionConfigured = 2, @@ -5023,235 +7851,373 @@ public enum RealtimeUpdateKind { ResponseMcpCallCompleted = 45, ResponseMcpCallFailed = 46 } - [Experimental("OPENAI002")] - public readonly partial struct ResponseConversationSelection : IEquatable { - public ResponseConversationSelection(string value); - public static ResponseConversationSelection Auto { get; } - public static ResponseConversationSelection None { get; } - public readonly bool Equals(ResponseConversationSelection other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right); - public static implicit operator ResponseConversationSelection(string value); - public static implicit operator ResponseConversationSelection?(string value); - public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ResponseFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList CreatedItems { get; } - public string ResponseId { get; } - public ConversationStatus? Status { get; } - public ConversationStatusDetails StatusDetails { get; } - public ConversationTokenUsage Usage { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ResponseStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList CreatedItems { get; } - public string ResponseId { get; } - public ConversationStatus Status { get; } - public ConversationStatusDetails StatusDetails { get; } - public ConversationTokenUsage Usage { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct SemanticEagernessLevel : IEquatable { - public SemanticEagernessLevel(string value); - public static SemanticEagernessLevel Auto { get; } - public static SemanticEagernessLevel High { get; } - public static SemanticEagernessLevel Low { get; } - public static SemanticEagernessLevel Medium { get; } - public readonly bool Equals(SemanticEagernessLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(SemanticEagernessLevel left, SemanticEagernessLevel right); - public static implicit operator SemanticEagernessLevel(string value); - public static implicit operator SemanticEagernessLevel?(string value); - public static bool operator !=(SemanticEagernessLevel left, SemanticEagernessLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class TranscriptionSessionConfiguredUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputAudioTranscription { get; } - public TurnDetectionOptions TurnDetection { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class TranscriptionSessionOptions : IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; set; } - public IList Include { get; } - public RealtimeAudioFormat? InputAudioFormat { get; set; } - public InputNoiseReductionOptions InputNoiseReductionOptions { get; set; } - public InputTranscriptionOptions InputTranscriptionOptions { get; set; } - public TurnDetectionOptions TurnDetectionOptions { get; set; } - protected virtual TranscriptionSessionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual TranscriptionSessionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public enum TurnDetectionKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ResponseConversationSelection : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseConversationSelection(string value) { } + public static ResponseConversationSelection Auto { get { throw null; } } + public static ResponseConversationSelection None { get { throw null; } } + + public readonly bool Equals(ResponseConversationSelection other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right) { throw null; } + public static implicit operator ResponseConversationSelection(string value) { throw null; } + public static implicit operator ResponseConversationSelection?(string value) { throw null; } + public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ResponseFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseFinishedUpdate() { } + public System.Collections.Generic.IReadOnlyList CreatedItems { get { throw null; } } + public string ResponseId { get { throw null; } } + public ConversationStatus? Status { get { throw null; } } + public ConversationStatusDetails StatusDetails { get { throw null; } } + public ConversationTokenUsage Usage { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ResponseStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseStartedUpdate() { } + public System.Collections.Generic.IReadOnlyList CreatedItems { get { throw null; } } + public string ResponseId { get { throw null; } } + public ConversationStatus Status { get { throw null; } } + public ConversationStatusDetails StatusDetails { get { throw null; } } + public ConversationTokenUsage Usage { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct SemanticEagernessLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SemanticEagernessLevel(string value) { } + public static SemanticEagernessLevel Auto { get { throw null; } } + public static SemanticEagernessLevel High { get { throw null; } } + public static SemanticEagernessLevel Low { get { throw null; } } + public static SemanticEagernessLevel Medium { get { throw null; } } + + public readonly bool Equals(SemanticEagernessLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(SemanticEagernessLevel left, SemanticEagernessLevel right) { throw null; } + public static implicit operator SemanticEagernessLevel(string value) { throw null; } + public static implicit operator SemanticEagernessLevel?(string value) { throw null; } + public static bool operator !=(SemanticEagernessLevel left, SemanticEagernessLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class TranscriptionSessionConfiguredUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TranscriptionSessionConfiguredUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputAudioTranscription { get { throw null; } } + public TurnDetectionOptions TurnDetection { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TranscriptionSessionConfiguredUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TranscriptionSessionConfiguredUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class TranscriptionSessionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public System.Collections.Generic.IList Include { get { throw null; } } + public RealtimeAudioFormat? InputAudioFormat { get { throw null; } set { } } + public InputNoiseReductionOptions InputNoiseReductionOptions { get { throw null; } set { } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } set { } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } set { } } + + protected virtual TranscriptionSessionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual TranscriptionSessionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TranscriptionSessionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TranscriptionSessionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum TurnDetectionKind + { Unknown = 0, ServerVoiceActivityDetection = 1, SemanticVoiceActivityDetection = 2, Disabled = 3 } - [Experimental("OPENAI002")] - public class TurnDetectionOptions : IJsonModel, IPersistableModel { - public TurnDetectionKind Kind { get; } - public static TurnDetectionOptions CreateDisabledTurnDetectionOptions(); - public static TurnDetectionOptions CreateSemanticVoiceActivityTurnDetectionOptions(SemanticEagernessLevel? eagernessLevel = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null); - public static TurnDetectionOptions CreateServerVoiceActivityTurnDetectionOptions(float? detectionThreshold = null, TimeSpan? prefixPaddingDuration = null, TimeSpan? silenceDuration = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null); - protected virtual TurnDetectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual TurnDetectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class TurnDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TurnDetectionOptions() { } + public TurnDetectionKind Kind { get { throw null; } } + + public static TurnDetectionOptions CreateDisabledTurnDetectionOptions() { throw null; } + public static TurnDetectionOptions CreateSemanticVoiceActivityTurnDetectionOptions(SemanticEagernessLevel? eagernessLevel = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null) { throw null; } + public static TurnDetectionOptions CreateServerVoiceActivityTurnDetectionOptions(float? detectionThreshold = null, System.TimeSpan? prefixPaddingDuration = null, System.TimeSpan? silenceDuration = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null) { throw null; } + protected virtual TurnDetectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual TurnDetectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TurnDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TurnDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Responses { - [Experimental("OPENAI001")] - public class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, IJsonModel, IPersistableModel { - public AutomaticCodeInterpreterToolContainerConfiguration(); - public IList FileIds { get; } - protected override CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, IJsonModel, IPersistableModel { - public CodeInterpreterCallImageOutput(Uri imageUri); - public Uri ImageUri { get; set; } - protected override CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, IJsonModel, IPersistableModel { - public CodeInterpreterCallLogsOutput(string logs); - public string Logs { get; set; } - protected override CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallOutput : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public CodeInterpreterCallResponseItem(string code); - public string Code { get; set; } - public string ContainerId { get; set; } - public IList Outputs { get; } - public CodeInterpreterCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum CodeInterpreterCallStatus { + +namespace OpenAI.Responses +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AutomaticCodeInterpreterToolContainerConfiguration() { } + public System.Collections.Generic.IList FileIds { get { throw null; } } + + protected override CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AutomaticCodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AutomaticCodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallImageOutput(System.Uri imageUri) { } + public System.Uri ImageUri { get { throw null; } set { } } + + protected override CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallImageOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallImageOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallLogsOutput(string logs) { } + public string Logs { get { throw null; } set { } } + + protected override CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallLogsOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallLogsOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CodeInterpreterCallOutput() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallResponseItem(string code) { } + public string Code { get { throw null; } set { } } + public string ContainerId { get { throw null; } set { } } + public System.Collections.Generic.IList Outputs { get { throw null; } } + public CodeInterpreterCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum CodeInterpreterCallStatus + { InProgress = 0, Interpreting = 1, Completed = 2, Incomplete = 3, Failed = 4 } - [Experimental("OPENAI001")] - public class CodeInterpreterTool : ResponseTool, IJsonModel, IPersistableModel { - public CodeInterpreterTool(CodeInterpreterToolContainer container); - public CodeInterpreterToolContainer Container { get; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolContainer : IJsonModel, IPersistableModel { - public CodeInterpreterToolContainer(CodeInterpreterToolContainerConfiguration containerConfiguration); - public CodeInterpreterToolContainer(string containerId); - public CodeInterpreterToolContainerConfiguration ContainerConfiguration { get; } - public string ContainerId { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual CodeInterpreterToolContainer JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolContainer PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolContainerConfiguration : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(IEnumerable fileIds = null); - protected virtual CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public class ComputerCallAction : IJsonModel, IPersistableModel { - public Drawing.Point? ClickCoordinates { get; } - public ComputerCallActionMouseButton? ClickMouseButton { get; } - public Drawing.Point? DoubleClickCoordinates { get; } - public IList DragPath { get; } - public IList KeyPressKeyCodes { get; } - public ComputerCallActionKind Kind { get; } - public Drawing.Point? MoveCoordinates { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public Drawing.Point? ScrollCoordinates { get; } - public int? ScrollHorizontalOffset { get; } - public int? ScrollVerticalOffset { get; } - public string TypeText { get; } - public static ComputerCallAction CreateClickAction(Drawing.Point clickCoordinates, ComputerCallActionMouseButton clickMouseButton); - public static ComputerCallAction CreateDoubleClickAction(Drawing.Point doubleClickCoordinates, ComputerCallActionMouseButton doubleClickMouseButton); - public static ComputerCallAction CreateDragAction(IList dragPath); - public static ComputerCallAction CreateKeyPressAction(IList keyCodes); - public static ComputerCallAction CreateMoveAction(Drawing.Point moveCoordinates); - public static ComputerCallAction CreateScreenshotAction(); - public static ComputerCallAction CreateScrollAction(Drawing.Point scrollCoordinates, int horizontalOffset, int verticalOffset); - public static ComputerCallAction CreateTypeAction(string typeText); - public static ComputerCallAction CreateWaitAction(); - protected virtual ComputerCallAction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallAction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public enum ComputerCallActionKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterTool(CodeInterpreterToolContainer container) { } + public CodeInterpreterToolContainer Container { get { throw null; } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolContainer : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolContainer(CodeInterpreterToolContainerConfiguration containerConfiguration) { } + public CodeInterpreterToolContainer(string containerId) { } + public CodeInterpreterToolContainerConfiguration ContainerConfiguration { get { throw null; } } + public string ContainerId { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual CodeInterpreterToolContainer JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolContainer PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolContainer System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolContainer System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolContainerConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CodeInterpreterToolContainerConfiguration() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(System.Collections.Generic.IEnumerable fileIds = null) { throw null; } + protected virtual CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallAction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ComputerCallAction() { } + public System.Drawing.Point? ClickCoordinates { get { throw null; } } + public ComputerCallActionMouseButton? ClickMouseButton { get { throw null; } } + public System.Drawing.Point? DoubleClickCoordinates { get { throw null; } } + public System.Collections.Generic.IList DragPath { get { throw null; } } + public System.Collections.Generic.IList KeyPressKeyCodes { get { throw null; } } + public ComputerCallActionKind Kind { get { throw null; } } + public System.Drawing.Point? MoveCoordinates { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Drawing.Point? ScrollCoordinates { get { throw null; } } + public int? ScrollHorizontalOffset { get { throw null; } } + public int? ScrollVerticalOffset { get { throw null; } } + public string TypeText { get { throw null; } } + + public static ComputerCallAction CreateClickAction(System.Drawing.Point clickCoordinates, ComputerCallActionMouseButton clickMouseButton) { throw null; } + public static ComputerCallAction CreateDoubleClickAction(System.Drawing.Point doubleClickCoordinates, ComputerCallActionMouseButton doubleClickMouseButton) { throw null; } + public static ComputerCallAction CreateDragAction(System.Collections.Generic.IList dragPath) { throw null; } + public static ComputerCallAction CreateKeyPressAction(System.Collections.Generic.IList keyCodes) { throw null; } + public static ComputerCallAction CreateMoveAction(System.Drawing.Point moveCoordinates) { throw null; } + public static ComputerCallAction CreateScreenshotAction() { throw null; } + public static ComputerCallAction CreateScrollAction(System.Drawing.Point scrollCoordinates, int horizontalOffset, int verticalOffset) { throw null; } + public static ComputerCallAction CreateTypeAction(string typeText) { throw null; } + public static ComputerCallAction CreateWaitAction() { throw null; } + protected virtual ComputerCallAction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallAction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallAction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallAction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallActionKind + { Click = 0, DoubleClick = 1, Drag = 2, @@ -5262,753 +8228,1122 @@ public enum ComputerCallActionKind { Type = 7, Wait = 8 } - [Experimental("OPENAICUA001")] - public enum ComputerCallActionMouseButton { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallActionMouseButton + { Left = 0, Right = 1, Wheel = 2, Back = 3, Forward = 4 } - [Experimental("OPENAICUA001")] - public class ComputerCallOutput : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ComputerCallOutput CreateScreenshotOutput(BinaryData screenshotImageBytes, string screenshotImageBytesMediaType); - public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId); - public static ComputerCallOutput CreateScreenshotOutput(Uri screenshotImageUri); - protected virtual ComputerCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public class ComputerCallOutputResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output); - public IList AcknowledgedSafetyChecks { get; } - public string CallId { get; set; } - public ComputerCallOutput Output { get; set; } - public ComputerCallOutputStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public enum ComputerCallOutputStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ComputerCallOutput() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ComputerCallOutput CreateScreenshotOutput(System.BinaryData screenshotImageBytes, string screenshotImageBytesMediaType) { throw null; } + public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId) { throw null; } + public static ComputerCallOutput CreateScreenshotOutput(System.Uri screenshotImageUri) { throw null; } + protected virtual ComputerCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallOutputResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output) { } + public System.Collections.Generic.IList AcknowledgedSafetyChecks { get { throw null; } } + public string CallId { get { throw null; } set { } } + public ComputerCallOutput Output { get { throw null; } set { } } + public ComputerCallOutputStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallOutputResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallOutputResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallOutputStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAICUA001")] - public class ComputerCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ComputerCallResponseItem(string callId, ComputerCallAction action, IEnumerable pendingSafetyChecks); - public ComputerCallAction Action { get; set; } - public string CallId { get; set; } - public IList PendingSafetyChecks { get; } - public ComputerCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public class ComputerCallSafetyCheck : IJsonModel, IPersistableModel { - public ComputerCallSafetyCheck(string id, string code, string message); - public string Code { get; set; } - public string Id { get; set; } - public string Message { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ComputerCallSafetyCheck JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallSafetyCheck PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public enum ComputerCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallResponseItem(string callId, ComputerCallAction action, System.Collections.Generic.IEnumerable pendingSafetyChecks) { } + public ComputerCallAction Action { get { throw null; } set { } } + public string CallId { get { throw null; } set { } } + public System.Collections.Generic.IList PendingSafetyChecks { get { throw null; } } + public ComputerCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallSafetyCheck : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallSafetyCheck(string id, string code, string message) { } + public string Code { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ComputerCallSafetyCheck JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallSafetyCheck PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallSafetyCheck System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallSafetyCheck System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class ComputerTool : ResponseTool, IJsonModel, IPersistableModel { - public ComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight); - public int DisplayHeight { get; set; } - public int DisplayWidth { get; set; } - public ComputerToolEnvironment Environment { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public readonly partial struct ComputerToolEnvironment : IEquatable { - public ComputerToolEnvironment(string value); - public static ComputerToolEnvironment Browser { get; } - public static ComputerToolEnvironment Linux { get; } - public static ComputerToolEnvironment Mac { get; } - public static ComputerToolEnvironment Ubuntu { get; } - public static ComputerToolEnvironment Windows { get; } - public readonly bool Equals(ComputerToolEnvironment other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ComputerToolEnvironment left, ComputerToolEnvironment right); - public static implicit operator ComputerToolEnvironment(string value); - public static implicit operator ComputerToolEnvironment?(string value); - public static bool operator !=(ComputerToolEnvironment left, ComputerToolEnvironment right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public ContainerFileCitationMessageAnnotation(string containerId, string fileId, int startIndex, int endIndex, string filename); - public string ContainerId { get; set; } - public int EndIndex { get; set; } - public string FileId { get; set; } - public string Filename { get; set; } - public int StartIndex { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateResponseOptions : IJsonModel, IPersistableModel { - public CreateResponseOptions(); - public CreateResponseOptions(IEnumerable inputItems, string model = null); - public bool? BackgroundModeEnabled { get; set; } - public ResponseConversationOptions ConversationOptions { get; set; } - public string EndUserId { get; set; } - public IList IncludedProperties { get; } - public IList InputItems { get; } - public string Instructions { get; set; } - public int? MaxOutputTokenCount { get; set; } - public int? MaxToolCallCount { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public bool? ParallelToolCallsEnabled { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string PreviousResponseId { get; set; } - public ResponseReasoningOptions ReasoningOptions { get; set; } - public string SafetyIdentifier { get; set; } - public ResponseServiceTier? ServiceTier { get; set; } - public bool? StoredOutputEnabled { get; set; } - public bool? StreamingEnabled { get; set; } - public float? Temperature { get; set; } - public ResponseTextOptions TextOptions { get; set; } - public ResponseToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - public ResponseTruncationMode? TruncationMode { get; set; } - protected virtual CreateResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(CreateResponseOptions createResponseOptions); - protected virtual CreateResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CustomMcpToolCallApprovalPolicy : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public McpToolFilter ToolsAlwaysRequiringApproval { get; set; } - public McpToolFilter ToolsNeverRequiringApproval { get; set; } - protected virtual CustomMcpToolCallApprovalPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CustomMcpToolCallApprovalPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public FileCitationMessageAnnotation(string fileId, int index, string filename); - public string FileId { get; set; } - public string Filename { get; set; } - public int Index { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FilePathMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public FilePathMessageAnnotation(string fileId, int index); - public string FileId { get; set; } - public int Index { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FileSearchCallResponseItem(IEnumerable queries); - public IList Queries { get; } - public IList Results { get; set; } - public FileSearchCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchCallResult : IJsonModel, IPersistableModel { - public IDictionary Attributes { get; } - public string FileId { get; set; } - public string Filename { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public float? Score { get; set; } - public string Text { get; set; } - protected virtual FileSearchCallResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchCallResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum FileSearchCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ComputerTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight) { } + public int DisplayHeight { get { throw null; } set { } } + public int DisplayWidth { get { throw null; } set { } } + public ComputerToolEnvironment Environment { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public readonly partial struct ComputerToolEnvironment : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ComputerToolEnvironment(string value) { } + public static ComputerToolEnvironment Browser { get { throw null; } } + public static ComputerToolEnvironment Linux { get { throw null; } } + public static ComputerToolEnvironment Mac { get { throw null; } } + public static ComputerToolEnvironment Ubuntu { get { throw null; } } + public static ComputerToolEnvironment Windows { get { throw null; } } + + public readonly bool Equals(ComputerToolEnvironment other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ComputerToolEnvironment left, ComputerToolEnvironment right) { throw null; } + public static implicit operator ComputerToolEnvironment(string value) { throw null; } + public static implicit operator ComputerToolEnvironment?(string value) { throw null; } + public static bool operator !=(ComputerToolEnvironment left, ComputerToolEnvironment right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContainerFileCitationMessageAnnotation(string containerId, string fileId, int startIndex, int endIndex, string filename) { } + public string ContainerId { get { throw null; } set { } } + public int EndIndex { get { throw null; } set { } } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + public int StartIndex { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateResponseOptions() { } + public CreateResponseOptions(System.Collections.Generic.IEnumerable inputItems, string model = null) { } + public bool? BackgroundModeEnabled { get { throw null; } set { } } + public ResponseConversationOptions ConversationOptions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public System.Collections.Generic.IList IncludedProperties { get { throw null; } } + public System.Collections.Generic.IList InputItems { get { throw null; } } + public string Instructions { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public int? MaxToolCallCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public bool? ParallelToolCallsEnabled { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string PreviousResponseId { get { throw null; } set { } } + public ResponseReasoningOptions ReasoningOptions { get { throw null; } set { } } + public string SafetyIdentifier { get { throw null; } set { } } + public ResponseServiceTier? ServiceTier { get { throw null; } set { } } + public bool? StoredOutputEnabled { get { throw null; } set { } } + public bool? StreamingEnabled { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ResponseTextOptions TextOptions { get { throw null; } set { } } + public ResponseToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + public ResponseTruncationMode? TruncationMode { get { throw null; } set { } } + + protected virtual CreateResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(CreateResponseOptions createResponseOptions) { throw null; } + protected virtual CreateResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CustomMcpToolCallApprovalPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public McpToolFilter ToolsAlwaysRequiringApproval { get { throw null; } set { } } + public McpToolFilter ToolsNeverRequiringApproval { get { throw null; } set { } } + + protected virtual CustomMcpToolCallApprovalPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CustomMcpToolCallApprovalPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CustomMcpToolCallApprovalPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CustomMcpToolCallApprovalPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileCitationMessageAnnotation(string fileId, int index, string filename) { } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + public int Index { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FilePathMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FilePathMessageAnnotation(string fileId, int index) { } + public string FileId { get { throw null; } set { } } + public int Index { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FilePathMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FilePathMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchCallResponseItem(System.Collections.Generic.IEnumerable queries) { } + public System.Collections.Generic.IList Queries { get { throw null; } } + public System.Collections.Generic.IList Results { get { throw null; } set { } } + public FileSearchCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchCallResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Attributes { get { throw null; } } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public float? Score { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected virtual FileSearchCallResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchCallResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchCallResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchCallResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum FileSearchCallStatus + { InProgress = 0, Searching = 1, Completed = 2, Incomplete = 3, Failed = 4 } - [Experimental("OPENAI001")] - public class FileSearchTool : ResponseTool, IJsonModel, IPersistableModel { - public FileSearchTool(IEnumerable vectorStoreIds); - public BinaryData Filters { get; set; } - public int? MaxResultCount { get; set; } - public FileSearchToolRankingOptions RankingOptions { get; set; } - public IList VectorStoreIds { get; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FileSearchToolRanker : IEquatable { - public FileSearchToolRanker(string value); - public static FileSearchToolRanker Auto { get; } - public static FileSearchToolRanker Default20241115 { get; } - public readonly bool Equals(FileSearchToolRanker other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileSearchToolRanker left, FileSearchToolRanker right); - public static implicit operator FileSearchToolRanker(string value); - public static implicit operator FileSearchToolRanker?(string value); - public static bool operator !=(FileSearchToolRanker left, FileSearchToolRanker right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FileSearchToolRankingOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public FileSearchToolRanker? Ranker { get; set; } - public float? ScoreThreshold { get; set; } - protected virtual FileSearchToolRankingOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchToolRankingOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FunctionCallOutputResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FunctionCallOutputResponseItem(string callId, string functionOutput); - public string CallId { get; set; } - public string FunctionOutput { get; set; } - public FunctionCallOutputStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum FunctionCallOutputStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchTool(System.Collections.Generic.IEnumerable vectorStoreIds) { } + public System.BinaryData Filters { get { throw null; } set { } } + public int? MaxResultCount { get { throw null; } set { } } + public FileSearchToolRankingOptions RankingOptions { get { throw null; } set { } } + public System.Collections.Generic.IList VectorStoreIds { get { throw null; } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FileSearchToolRanker : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileSearchToolRanker(string value) { } + public static FileSearchToolRanker Auto { get { throw null; } } + public static FileSearchToolRanker Default20241115 { get { throw null; } } + + public readonly bool Equals(FileSearchToolRanker other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileSearchToolRanker left, FileSearchToolRanker right) { throw null; } + public static implicit operator FileSearchToolRanker(string value) { throw null; } + public static implicit operator FileSearchToolRanker?(string value) { throw null; } + public static bool operator !=(FileSearchToolRanker left, FileSearchToolRanker right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchToolRankingOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public FileSearchToolRanker? Ranker { get { throw null; } set { } } + public float? ScoreThreshold { get { throw null; } set { } } + + protected virtual FileSearchToolRankingOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchToolRankingOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolRankingOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolRankingOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionCallOutputResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionCallOutputResponseItem(string callId, string functionOutput) { } + public string CallId { get { throw null; } set { } } + public string FunctionOutput { get { throw null; } set { } } + public FunctionCallOutputStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionCallOutputResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionCallOutputResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum FunctionCallOutputStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class FunctionCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FunctionCallResponseItem(string callId, string functionName, BinaryData functionArguments); - public string CallId { get; set; } - public BinaryData FunctionArguments { get; set; } - public string FunctionName { get; set; } - public FunctionCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum FunctionCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionCallResponseItem(string callId, string functionName, System.BinaryData functionArguments) { } + public string CallId { get { throw null; } set { } } + public System.BinaryData FunctionArguments { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public FunctionCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum FunctionCallStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class FunctionTool : ResponseTool, IJsonModel, IPersistableModel { - public FunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled); - public string FunctionDescription { get; set; } - public string FunctionName { get; set; } - public BinaryData FunctionParameters { get; set; } - public bool? StrictModeEnabled { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GetResponseOptions : IJsonModel, IPersistableModel { - public GetResponseOptions(string responseId); - public IList IncludedProperties { get; set; } - public bool? IncludeObfuscation { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string ResponseId { get; } - public int? StartingAfter { get; set; } - public bool? StreamingEnabled { get; set; } - protected virtual GetResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual GetResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GlobalMcpToolCallApprovalPolicy : IEquatable { - public GlobalMcpToolCallApprovalPolicy(string value); - public static GlobalMcpToolCallApprovalPolicy AlwaysRequireApproval { get; } - public static GlobalMcpToolCallApprovalPolicy NeverRequireApproval { get; } - public readonly bool Equals(GlobalMcpToolCallApprovalPolicy other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right); - public static implicit operator GlobalMcpToolCallApprovalPolicy(string value); - public static implicit operator GlobalMcpToolCallApprovalPolicy?(string value); - public static bool operator !=(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ImageGenerationCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ImageGenerationCallResponseItem(BinaryData imageResultBytes); - public BinaryData ImageResultBytes { get; set; } - public ImageGenerationCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ImageGenerationCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionTool(string functionName, System.BinaryData functionParameters, bool? strictModeEnabled) { } + public string FunctionDescription { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public System.BinaryData FunctionParameters { get { throw null; } set { } } + public bool? StrictModeEnabled { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GetResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GetResponseOptions(string responseId) { } + public System.Collections.Generic.IList IncludedProperties { get { throw null; } set { } } + public bool? IncludeObfuscation { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ResponseId { get { throw null; } } + public int? StartingAfter { get { throw null; } set { } } + public bool? StreamingEnabled { get { throw null; } set { } } + + protected virtual GetResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual GetResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GetResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GetResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GlobalMcpToolCallApprovalPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GlobalMcpToolCallApprovalPolicy(string value) { } + public static GlobalMcpToolCallApprovalPolicy AlwaysRequireApproval { get { throw null; } } + public static GlobalMcpToolCallApprovalPolicy NeverRequireApproval { get { throw null; } } + + public readonly bool Equals(GlobalMcpToolCallApprovalPolicy other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right) { throw null; } + public static implicit operator GlobalMcpToolCallApprovalPolicy(string value) { throw null; } + public static implicit operator GlobalMcpToolCallApprovalPolicy?(string value) { throw null; } + public static bool operator !=(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageGenerationCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationCallResponseItem(System.BinaryData imageResultBytes) { } + public System.BinaryData ImageResultBytes { get { throw null; } set { } } + public ImageGenerationCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ImageGenerationCallStatus + { InProgress = 0, Completed = 1, Generating = 2, Failed = 3 } - [Experimental("OPENAI001")] - public class ImageGenerationTool : ResponseTool, IJsonModel, IPersistableModel { - public ImageGenerationTool(); - public ImageGenerationToolBackground? Background { get; set; } - public ImageGenerationToolInputFidelity? InputFidelity { get; set; } - public ImageGenerationToolInputImageMask InputImageMask { get; set; } - public string Model { get; set; } - public ImageGenerationToolModerationLevel? ModerationLevel { get; set; } - public int? OutputCompressionFactor { get; set; } - public ImageGenerationToolOutputFileFormat? OutputFileFormat { get; set; } - public int? PartialImageCount { get; set; } - public ImageGenerationToolQuality? Quality { get; set; } - public ImageGenerationToolSize? Size { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolBackground : IEquatable { - public ImageGenerationToolBackground(string value); - public static ImageGenerationToolBackground Auto { get; } - public static ImageGenerationToolBackground Opaque { get; } - public static ImageGenerationToolBackground Transparent { get; } - public readonly bool Equals(ImageGenerationToolBackground other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolBackground left, ImageGenerationToolBackground right); - public static implicit operator ImageGenerationToolBackground(string value); - public static implicit operator ImageGenerationToolBackground?(string value); - public static bool operator !=(ImageGenerationToolBackground left, ImageGenerationToolBackground right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolInputFidelity : IEquatable { - public ImageGenerationToolInputFidelity(string value); - public static ImageGenerationToolInputFidelity High { get; } - public static ImageGenerationToolInputFidelity Low { get; } - public readonly bool Equals(ImageGenerationToolInputFidelity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right); - public static implicit operator ImageGenerationToolInputFidelity(string value); - public static implicit operator ImageGenerationToolInputFidelity?(string value); - public static bool operator !=(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ImageGenerationToolInputImageMask : IJsonModel, IPersistableModel { - public ImageGenerationToolInputImageMask(string fileId); - public ImageGenerationToolInputImageMask(Uri imageUri); - public string FileId { get; } - public Uri ImageUri { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ImageGenerationToolInputImageMask JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageGenerationToolInputImageMask PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolModerationLevel : IEquatable { - public ImageGenerationToolModerationLevel(string value); - public static ImageGenerationToolModerationLevel Auto { get; } - public static ImageGenerationToolModerationLevel Low { get; } - public readonly bool Equals(ImageGenerationToolModerationLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right); - public static implicit operator ImageGenerationToolModerationLevel(string value); - public static implicit operator ImageGenerationToolModerationLevel?(string value); - public static bool operator !=(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolOutputFileFormat : IEquatable { - public ImageGenerationToolOutputFileFormat(string value); - public static ImageGenerationToolOutputFileFormat Jpeg { get; } - public static ImageGenerationToolOutputFileFormat Png { get; } - public static ImageGenerationToolOutputFileFormat Webp { get; } - public readonly bool Equals(ImageGenerationToolOutputFileFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right); - public static implicit operator ImageGenerationToolOutputFileFormat(string value); - public static implicit operator ImageGenerationToolOutputFileFormat?(string value); - public static bool operator !=(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolQuality : IEquatable { - public ImageGenerationToolQuality(string value); - public static ImageGenerationToolQuality Auto { get; } - public static ImageGenerationToolQuality High { get; } - public static ImageGenerationToolQuality Low { get; } - public static ImageGenerationToolQuality Medium { get; } - public readonly bool Equals(ImageGenerationToolQuality other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolQuality left, ImageGenerationToolQuality right); - public static implicit operator ImageGenerationToolQuality(string value); - public static implicit operator ImageGenerationToolQuality?(string value); - public static bool operator !=(ImageGenerationToolQuality left, ImageGenerationToolQuality right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolSize : IEquatable { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageGenerationTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationTool() { } + public ImageGenerationToolBackground? Background { get { throw null; } set { } } + public ImageGenerationToolInputFidelity? InputFidelity { get { throw null; } set { } } + public ImageGenerationToolInputImageMask InputImageMask { get { throw null; } set { } } + public string Model { get { throw null; } set { } } + public ImageGenerationToolModerationLevel? ModerationLevel { get { throw null; } set { } } + public int? OutputCompressionFactor { get { throw null; } set { } } + public ImageGenerationToolOutputFileFormat? OutputFileFormat { get { throw null; } set { } } + public int? PartialImageCount { get { throw null; } set { } } + public ImageGenerationToolQuality? Quality { get { throw null; } set { } } + public ImageGenerationToolSize? Size { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolBackground : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolBackground(string value) { } + public static ImageGenerationToolBackground Auto { get { throw null; } } + public static ImageGenerationToolBackground Opaque { get { throw null; } } + public static ImageGenerationToolBackground Transparent { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolBackground other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolBackground left, ImageGenerationToolBackground right) { throw null; } + public static implicit operator ImageGenerationToolBackground(string value) { throw null; } + public static implicit operator ImageGenerationToolBackground?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolBackground left, ImageGenerationToolBackground right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolInputFidelity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolInputFidelity(string value) { } + public static ImageGenerationToolInputFidelity High { get { throw null; } } + public static ImageGenerationToolInputFidelity Low { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolInputFidelity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right) { throw null; } + public static implicit operator ImageGenerationToolInputFidelity(string value) { throw null; } + public static implicit operator ImageGenerationToolInputFidelity?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageGenerationToolInputImageMask : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationToolInputImageMask(string fileId) { } + public ImageGenerationToolInputImageMask(System.Uri imageUri) { } + public string FileId { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ImageGenerationToolInputImageMask JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageGenerationToolInputImageMask PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationToolInputImageMask System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationToolInputImageMask System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolModerationLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolModerationLevel(string value) { } + public static ImageGenerationToolModerationLevel Auto { get { throw null; } } + public static ImageGenerationToolModerationLevel Low { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolModerationLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right) { throw null; } + public static implicit operator ImageGenerationToolModerationLevel(string value) { throw null; } + public static implicit operator ImageGenerationToolModerationLevel?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolOutputFileFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolOutputFileFormat(string value) { } + public static ImageGenerationToolOutputFileFormat Jpeg { get { throw null; } } + public static ImageGenerationToolOutputFileFormat Png { get { throw null; } } + public static ImageGenerationToolOutputFileFormat Webp { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolOutputFileFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right) { throw null; } + public static implicit operator ImageGenerationToolOutputFileFormat(string value) { throw null; } + public static implicit operator ImageGenerationToolOutputFileFormat?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolQuality : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolQuality(string value) { } + public static ImageGenerationToolQuality Auto { get { throw null; } } + public static ImageGenerationToolQuality High { get { throw null; } } + public static ImageGenerationToolQuality Low { get { throw null; } } + public static ImageGenerationToolQuality Medium { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolQuality other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolQuality left, ImageGenerationToolQuality right) { throw null; } + public static implicit operator ImageGenerationToolQuality(string value) { throw null; } + public static implicit operator ImageGenerationToolQuality?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolQuality left, ImageGenerationToolQuality right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; public static readonly ImageGenerationToolSize W1024xH1024; public static readonly ImageGenerationToolSize W1024xH1536; public static readonly ImageGenerationToolSize W1536xH1024; - public ImageGenerationToolSize(int width, int height); - public static ImageGenerationToolSize Auto { get; } - public readonly bool Equals(ImageGenerationToolSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolSize left, ImageGenerationToolSize right); - public static bool operator !=(ImageGenerationToolSize left, ImageGenerationToolSize right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct IncludedResponseProperty : IEquatable { - public IncludedResponseProperty(string value); - public static IncludedResponseProperty CodeInterpreterCallOutputs { get; } - public static IncludedResponseProperty ComputerCallOutputImageUri { get; } - public static IncludedResponseProperty FileSearchCallResults { get; } - public static IncludedResponseProperty MessageInputImageUri { get; } - public static IncludedResponseProperty ReasoningEncryptedContent { get; } - public readonly bool Equals(IncludedResponseProperty other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(IncludedResponseProperty left, IncludedResponseProperty right); - public static implicit operator IncludedResponseProperty(string value); - public static implicit operator IncludedResponseProperty?(string value); - public static bool operator !=(IncludedResponseProperty left, IncludedResponseProperty right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class McpTool : ResponseTool, IJsonModel, IPersistableModel { - public McpTool(string serverLabel, McpToolConnectorId connectorId); - public McpTool(string serverLabel, Uri serverUri); - public McpToolFilter AllowedTools { get; set; } - public string AuthorizationToken { get; set; } - public McpToolConnectorId? ConnectorId { get; set; } - public IDictionary Headers { get; set; } - public string ServerDescription { get; set; } - public string ServerLabel { get; set; } - public Uri ServerUri { get; set; } - public McpToolCallApprovalPolicy ToolCallApprovalPolicy { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallApprovalPolicy : IJsonModel, IPersistableModel { - public McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy); - public McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy); - public CustomMcpToolCallApprovalPolicy CustomPolicy { get; } - public GlobalMcpToolCallApprovalPolicy? GlobalPolicy { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual McpToolCallApprovalPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy); - public static implicit operator McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy); - protected virtual McpToolCallApprovalPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallApprovalRequestItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallApprovalRequestItem(string id, string serverLabel, string toolName, BinaryData toolArguments); - public string ServerLabel { get; set; } - public BinaryData ToolArguments { get; set; } - public string ToolName { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallApprovalResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallApprovalResponseItem(string approvalRequestId, bool approved); - public string ApprovalRequestId { get; set; } - public bool Approved { get; set; } - public string Reason { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallItem(string serverLabel, string toolName, BinaryData toolArguments); - public BinaryData Error { get; set; } - public string ServerLabel { get; set; } - public BinaryData ToolArguments { get; set; } - public string ToolName { get; set; } - public string ToolOutput { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct McpToolConnectorId : IEquatable { - public McpToolConnectorId(string value); - public static McpToolConnectorId Dropbox { get; } - public static McpToolConnectorId Gmail { get; } - public static McpToolConnectorId GoogleCalendar { get; } - public static McpToolConnectorId GoogleDrive { get; } - public static McpToolConnectorId MicrosoftTeams { get; } - public static McpToolConnectorId OutlookCalendar { get; } - public static McpToolConnectorId OutlookEmail { get; } - public static McpToolConnectorId SharePoint { get; } - public readonly bool Equals(McpToolConnectorId other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(McpToolConnectorId left, McpToolConnectorId right); - public static implicit operator McpToolConnectorId(string value); - public static implicit operator McpToolConnectorId?(string value); - public static bool operator !=(McpToolConnectorId left, McpToolConnectorId right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class McpToolDefinition : IJsonModel, IPersistableModel { - public McpToolDefinition(string name, BinaryData inputSchema); - public BinaryData Annotations { get; set; } - public string Description { get; set; } - public BinaryData InputSchema { get; set; } - public string Name { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual McpToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual McpToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolDefinitionListItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolDefinitionListItem(string serverLabel, IEnumerable toolDefinitions); - public BinaryData Error { get; set; } - public string ServerLabel { get; set; } - public IList ToolDefinitions { get; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolFilter : IJsonModel, IPersistableModel { - public bool? IsReadOnly { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public IList ToolNames { get; } - protected virtual McpToolFilter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual McpToolFilter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public IList Content { get; } - public MessageRole Role { get; } - public MessageStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum MessageRole { + public ImageGenerationToolSize(int width, int height) { } + public static ImageGenerationToolSize Auto { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolSize left, ImageGenerationToolSize right) { throw null; } + public static bool operator !=(ImageGenerationToolSize left, ImageGenerationToolSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct IncludedResponseProperty : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IncludedResponseProperty(string value) { } + public static IncludedResponseProperty CodeInterpreterCallOutputs { get { throw null; } } + public static IncludedResponseProperty ComputerCallOutputImageUri { get { throw null; } } + public static IncludedResponseProperty FileSearchCallResults { get { throw null; } } + public static IncludedResponseProperty MessageInputImageUri { get { throw null; } } + public static IncludedResponseProperty ReasoningEncryptedContent { get { throw null; } } + + public readonly bool Equals(IncludedResponseProperty other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(IncludedResponseProperty left, IncludedResponseProperty right) { throw null; } + public static implicit operator IncludedResponseProperty(string value) { throw null; } + public static implicit operator IncludedResponseProperty?(string value) { throw null; } + public static bool operator !=(IncludedResponseProperty left, IncludedResponseProperty right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpTool(string serverLabel, McpToolConnectorId connectorId) { } + public McpTool(string serverLabel, System.Uri serverUri) { } + public McpToolFilter AllowedTools { get { throw null; } set { } } + public string AuthorizationToken { get { throw null; } set { } } + public McpToolConnectorId? ConnectorId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Headers { get { throw null; } set { } } + public string ServerDescription { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.Uri ServerUri { get { throw null; } set { } } + public McpToolCallApprovalPolicy ToolCallApprovalPolicy { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallApprovalPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy) { } + public McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy) { } + public CustomMcpToolCallApprovalPolicy CustomPolicy { get { throw null; } } + public GlobalMcpToolCallApprovalPolicy? GlobalPolicy { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual McpToolCallApprovalPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy) { throw null; } + public static implicit operator McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy) { throw null; } + protected virtual McpToolCallApprovalPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallApprovalRequestItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalRequestItem(string id, string serverLabel, string toolName, System.BinaryData toolArguments) { } + public string ServerLabel { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + public string ToolName { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalRequestItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalRequestItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallApprovalResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalResponseItem(string approvalRequestId, bool approved) { } + public string ApprovalRequestId { get { throw null; } set { } } + public bool Approved { get { throw null; } set { } } + public string Reason { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallItem(string serverLabel, string toolName, System.BinaryData toolArguments) { } + public System.BinaryData Error { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + public string ToolName { get { throw null; } set { } } + public string ToolOutput { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct McpToolConnectorId : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public McpToolConnectorId(string value) { } + public static McpToolConnectorId Dropbox { get { throw null; } } + public static McpToolConnectorId Gmail { get { throw null; } } + public static McpToolConnectorId GoogleCalendar { get { throw null; } } + public static McpToolConnectorId GoogleDrive { get { throw null; } } + public static McpToolConnectorId MicrosoftTeams { get { throw null; } } + public static McpToolConnectorId OutlookCalendar { get { throw null; } } + public static McpToolConnectorId OutlookEmail { get { throw null; } } + public static McpToolConnectorId SharePoint { get { throw null; } } + + public readonly bool Equals(McpToolConnectorId other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(McpToolConnectorId left, McpToolConnectorId right) { throw null; } + public static implicit operator McpToolConnectorId(string value) { throw null; } + public static implicit operator McpToolConnectorId?(string value) { throw null; } + public static bool operator !=(McpToolConnectorId left, McpToolConnectorId right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolDefinition(string name, System.BinaryData inputSchema) { } + public System.BinaryData Annotations { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.BinaryData InputSchema { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual McpToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual McpToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolDefinitionListItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolDefinitionListItem(string serverLabel, System.Collections.Generic.IEnumerable toolDefinitions) { } + public System.BinaryData Error { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.Collections.Generic.IList ToolDefinitions { get { throw null; } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolDefinitionListItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolDefinitionListItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolFilter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? IsReadOnly { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Collections.Generic.IList ToolNames { get { throw null; } } + + protected virtual McpToolFilter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual McpToolFilter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolFilter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolFilter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageResponseItem() { } + public System.Collections.Generic.IList Content { get { throw null; } } + public MessageRole Role { get { throw null; } } + public MessageStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageRole + { Unknown = 0, Assistant = 1, Developer = 2, System = 3, User = 4 } - [Experimental("OPENAI001")] - public enum MessageStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class ReasoningResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ReasoningResponseItem(IEnumerable summaryParts); - public ReasoningResponseItem(string summaryText); - public string EncryptedContent { get; set; } - public ReasoningStatus? Status { get; set; } - public IList SummaryParts { get; } - public string GetSummaryText(); - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ReasoningStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReasoningResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReasoningResponseItem(System.Collections.Generic.IEnumerable summaryParts) { } + public ReasoningResponseItem(string summaryText) { } + public string EncryptedContent { get { throw null; } set { } } + public ReasoningStatus? Status { get { throw null; } set { } } + public System.Collections.Generic.IList SummaryParts { get { throw null; } } + + public string GetSummaryText() { throw null; } + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ReasoningStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class ReasoningSummaryPart : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ReasoningSummaryTextPart CreateTextPart(string text); - protected virtual ReasoningSummaryPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ReasoningSummaryPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ReasoningSummaryTextPart : ReasoningSummaryPart, IJsonModel, IPersistableModel { - public ReasoningSummaryTextPart(string text); - public string Text { get; set; } - protected override ReasoningSummaryPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ReasoningSummaryPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ReferenceResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ReferenceResponseItem(string id); - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseContentPart : IJsonModel, IPersistableModel { - public BinaryData InputFileBytes { get; } - public string InputFileBytesMediaType { get; } - public string InputFileId { get; } - public string InputFilename { get; } - public ResponseImageDetailLevel? InputImageDetailLevel { get; } - public string InputImageFileId { get; } - public Uri InputImageUri { get; } - public ResponseContentPartKind Kind { get; } - public IReadOnlyList OutputTextAnnotations { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public string Text { get; } - public static ResponseContentPart CreateInputFilePart(BinaryData fileBytes, string fileBytesMediaType, string filename); - public static ResponseContentPart CreateInputFilePart(string fileId); - public static ResponseContentPart CreateInputImagePart(string imageFileId, ResponseImageDetailLevel? imageDetailLevel = null); - public static ResponseContentPart CreateInputImagePart(Uri imageUri, ResponseImageDetailLevel? imageDetailLevel = null); - public static ResponseContentPart CreateInputTextPart(string text); - public static ResponseContentPart CreateOutputTextPart(string text, IEnumerable annotations); - public static ResponseContentPart CreateRefusalPart(string refusal); - protected virtual ResponseContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ResponseContentPartKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReasoningSummaryPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ReasoningSummaryPart() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ReasoningSummaryTextPart CreateTextPart(string text) { throw null; } + protected virtual ReasoningSummaryPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ReasoningSummaryPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningSummaryPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningSummaryPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReasoningSummaryTextPart : ReasoningSummaryPart, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReasoningSummaryTextPart(string text) { } + public string Text { get { throw null; } set { } } + + protected override ReasoningSummaryPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ReasoningSummaryPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningSummaryTextPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningSummaryTextPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReferenceResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReferenceResponseItem(string id) { } + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReferenceResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReferenceResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseContentPart() { } + public System.BinaryData InputFileBytes { get { throw null; } } + public string InputFileBytesMediaType { get { throw null; } } + public string InputFileId { get { throw null; } } + public string InputFilename { get { throw null; } } + public ResponseImageDetailLevel? InputImageDetailLevel { get { throw null; } } + public string InputImageFileId { get { throw null; } } + public System.Uri InputImageUri { get { throw null; } } + public ResponseContentPartKind Kind { get { throw null; } } + public System.Collections.Generic.IReadOnlyList OutputTextAnnotations { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + + public static ResponseContentPart CreateInputFilePart(System.BinaryData fileBytes, string fileBytesMediaType, string filename) { throw null; } + public static ResponseContentPart CreateInputFilePart(string fileId) { throw null; } + public static ResponseContentPart CreateInputImagePart(string imageFileId, ResponseImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ResponseContentPart CreateInputImagePart(System.Uri imageUri, ResponseImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ResponseContentPart CreateInputTextPart(string text) { throw null; } + public static ResponseContentPart CreateOutputTextPart(string text, System.Collections.Generic.IEnumerable annotations) { throw null; } + public static ResponseContentPart CreateRefusalPart(string refusal) { throw null; } + protected virtual ResponseContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseContentPartKind + { Unknown = 0, InputText = 1, InputImage = 2, @@ -6016,421 +9351,585 @@ public enum ResponseContentPartKind { OutputText = 4, Refusal = 5 } - [Experimental("OPENAI001")] - public class ResponseConversationOptions : IJsonModel, IPersistableModel { - public ResponseConversationOptions(string conversationId); - public string ConversationId { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseConversationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseConversationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string ResponseId { get; set; } - protected virtual ResponseDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseDeletionResult(ClientResult result); - protected virtual ResponseDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseError : IJsonModel, IPersistableModel { - public ResponseErrorCode Code { get; } - public string Message { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseErrorCode : IEquatable { - public ResponseErrorCode(string value); - public static ResponseErrorCode EmptyImageFile { get; } - public static ResponseErrorCode FailedToDownloadImage { get; } - public static ResponseErrorCode ImageContentPolicyViolation { get; } - public static ResponseErrorCode ImageFileNotFound { get; } - public static ResponseErrorCode ImageFileTooLarge { get; } - public static ResponseErrorCode ImageParseError { get; } - public static ResponseErrorCode ImageTooLarge { get; } - public static ResponseErrorCode ImageTooSmall { get; } - public static ResponseErrorCode InvalidBase64Image { get; } - public static ResponseErrorCode InvalidImage { get; } - public static ResponseErrorCode InvalidImageFormat { get; } - public static ResponseErrorCode InvalidImageMode { get; } - public static ResponseErrorCode InvalidImageUrl { get; } - public static ResponseErrorCode InvalidPrompt { get; } - public static ResponseErrorCode RateLimitExceeded { get; } - public static ResponseErrorCode ServerError { get; } - public static ResponseErrorCode UnsupportedImageMediaType { get; } - public static ResponseErrorCode VectorStoreTimeout { get; } - public readonly bool Equals(ResponseErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseErrorCode left, ResponseErrorCode right); - public static implicit operator ResponseErrorCode(string value); - public static implicit operator ResponseErrorCode?(string value); - public static bool operator !=(ResponseErrorCode left, ResponseErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseImageDetailLevel : IEquatable { - public ResponseImageDetailLevel(string value); - public static ResponseImageDetailLevel Auto { get; } - public static ResponseImageDetailLevel High { get; } - public static ResponseImageDetailLevel Low { get; } - public readonly bool Equals(ResponseImageDetailLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseImageDetailLevel left, ResponseImageDetailLevel right); - public static implicit operator ResponseImageDetailLevel(string value); - public static implicit operator ResponseImageDetailLevel?(string value); - public static bool operator !=(ResponseImageDetailLevel left, ResponseImageDetailLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseIncompleteStatusDetails : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public ResponseIncompleteStatusReason? Reason { get; } - protected virtual ResponseIncompleteStatusDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseIncompleteStatusDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseIncompleteStatusReason : IEquatable { - public ResponseIncompleteStatusReason(string value); - public static ResponseIncompleteStatusReason ContentFilter { get; } - public static ResponseIncompleteStatusReason MaxOutputTokens { get; } - public readonly bool Equals(ResponseIncompleteStatusReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right); - public static implicit operator ResponseIncompleteStatusReason(string value); - public static implicit operator ResponseIncompleteStatusReason?(string value); - public static bool operator !=(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int CachedTokenCount { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseItem : IJsonModel, IPersistableModel { - public string Id { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static MessageResponseItem CreateAssistantMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateAssistantMessageItem(string outputTextContent, IEnumerable annotations = null); - [Experimental("OPENAICUA001")] - public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, IEnumerable pendingSafetyChecks); - [Experimental("OPENAICUA001")] - public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output); - public static MessageResponseItem CreateDeveloperMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent); - public static FileSearchCallResponseItem CreateFileSearchCallItem(IEnumerable queries); - public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, BinaryData functionArguments); - public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput); - public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string id, string serverLabel, string name, BinaryData arguments); - public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved); - public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, BinaryData arguments); - public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, IEnumerable toolDefinitions); - public static ReasoningResponseItem CreateReasoningItem(IEnumerable summaryParts); - public static ReasoningResponseItem CreateReasoningItem(string summaryText); - public static ReferenceResponseItem CreateReferenceItem(string id); - public static MessageResponseItem CreateSystemMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateSystemMessageItem(string inputTextContent); - public static MessageResponseItem CreateUserMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateUserMessageItem(string inputTextContent); - public static WebSearchCallResponseItem CreateWebSearchCallItem(); - protected virtual ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseItem(ClientResult result); - protected virtual ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseItemCollectionOptions : IJsonModel, IPersistableModel { - public ResponseItemCollectionOptions(string responseId); - public string AfterId { get; set; } - public string BeforeId { get; set; } - public ResponseItemCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - public string ResponseId { get; } - protected virtual ResponseItemCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseItemCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseItemCollectionOrder : IEquatable { - public ResponseItemCollectionOrder(string value); - public static ResponseItemCollectionOrder Ascending { get; } - public static ResponseItemCollectionOrder Descending { get; } - public readonly bool Equals(ResponseItemCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right); - public static implicit operator ResponseItemCollectionOrder(string value); - public static implicit operator ResponseItemCollectionOrder?(string value); - public static bool operator !=(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseItemCollectionPage : IJsonModel, IPersistableModel { - public IList Data { get; } - public string FirstId { get; set; } - public bool HasMore { get; set; } - public string LastId { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseItemCollectionPage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseItemCollectionPage(ClientResult result); - protected virtual ResponseItemCollectionPage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseMessageAnnotation : IJsonModel, IPersistableModel { - public ResponseMessageAnnotationKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ResponseMessageAnnotationKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseConversationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResponseConversationOptions(string conversationId) { } + public string ConversationId { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseConversationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseConversationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseConversationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseConversationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool Deleted { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ResponseId { get { throw null; } set { } } + + protected virtual ResponseDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseError() { } + public ResponseErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseErrorCode(string value) { } + public static ResponseErrorCode EmptyImageFile { get { throw null; } } + public static ResponseErrorCode FailedToDownloadImage { get { throw null; } } + public static ResponseErrorCode ImageContentPolicyViolation { get { throw null; } } + public static ResponseErrorCode ImageFileNotFound { get { throw null; } } + public static ResponseErrorCode ImageFileTooLarge { get { throw null; } } + public static ResponseErrorCode ImageParseError { get { throw null; } } + public static ResponseErrorCode ImageTooLarge { get { throw null; } } + public static ResponseErrorCode ImageTooSmall { get { throw null; } } + public static ResponseErrorCode InvalidBase64Image { get { throw null; } } + public static ResponseErrorCode InvalidImage { get { throw null; } } + public static ResponseErrorCode InvalidImageFormat { get { throw null; } } + public static ResponseErrorCode InvalidImageMode { get { throw null; } } + public static ResponseErrorCode InvalidImageUrl { get { throw null; } } + public static ResponseErrorCode InvalidPrompt { get { throw null; } } + public static ResponseErrorCode RateLimitExceeded { get { throw null; } } + public static ResponseErrorCode ServerError { get { throw null; } } + public static ResponseErrorCode UnsupportedImageMediaType { get { throw null; } } + public static ResponseErrorCode VectorStoreTimeout { get { throw null; } } + + public readonly bool Equals(ResponseErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseErrorCode left, ResponseErrorCode right) { throw null; } + public static implicit operator ResponseErrorCode(string value) { throw null; } + public static implicit operator ResponseErrorCode?(string value) { throw null; } + public static bool operator !=(ResponseErrorCode left, ResponseErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseImageDetailLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseImageDetailLevel(string value) { } + public static ResponseImageDetailLevel Auto { get { throw null; } } + public static ResponseImageDetailLevel High { get { throw null; } } + public static ResponseImageDetailLevel Low { get { throw null; } } + + public readonly bool Equals(ResponseImageDetailLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseImageDetailLevel left, ResponseImageDetailLevel right) { throw null; } + public static implicit operator ResponseImageDetailLevel(string value) { throw null; } + public static implicit operator ResponseImageDetailLevel?(string value) { throw null; } + public static bool operator !=(ResponseImageDetailLevel left, ResponseImageDetailLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseIncompleteStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseIncompleteStatusDetails() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseIncompleteStatusReason? Reason { get { throw null; } } + + protected virtual ResponseIncompleteStatusDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseIncompleteStatusDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseIncompleteStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseIncompleteStatusDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseIncompleteStatusReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseIncompleteStatusReason(string value) { } + public static ResponseIncompleteStatusReason ContentFilter { get { throw null; } } + public static ResponseIncompleteStatusReason MaxOutputTokens { get { throw null; } } + + public readonly bool Equals(ResponseIncompleteStatusReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right) { throw null; } + public static implicit operator ResponseIncompleteStatusReason(string value) { throw null; } + public static implicit operator ResponseIncompleteStatusReason?(string value) { throw null; } + public static bool operator !=(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int CachedTokenCount { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseItem() { } + public string Id { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static MessageResponseItem CreateAssistantMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateAssistantMessageItem(string outputTextContent, System.Collections.Generic.IEnumerable annotations = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, System.Collections.Generic.IEnumerable pendingSafetyChecks) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output) { throw null; } + public static MessageResponseItem CreateDeveloperMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent) { throw null; } + public static FileSearchCallResponseItem CreateFileSearchCallItem(System.Collections.Generic.IEnumerable queries) { throw null; } + public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, System.BinaryData functionArguments) { throw null; } + public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput) { throw null; } + public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string id, string serverLabel, string name, System.BinaryData arguments) { throw null; } + public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved) { throw null; } + public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, System.BinaryData arguments) { throw null; } + public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, System.Collections.Generic.IEnumerable toolDefinitions) { throw null; } + public static ReasoningResponseItem CreateReasoningItem(System.Collections.Generic.IEnumerable summaryParts) { throw null; } + public static ReasoningResponseItem CreateReasoningItem(string summaryText) { throw null; } + public static ReferenceResponseItem CreateReferenceItem(string id) { throw null; } + public static MessageResponseItem CreateSystemMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateSystemMessageItem(string inputTextContent) { throw null; } + public static MessageResponseItem CreateUserMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateUserMessageItem(string inputTextContent) { throw null; } + public static WebSearchCallResponseItem CreateWebSearchCallItem() { throw null; } + protected virtual ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseItem(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseItemCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResponseItemCollectionOptions(string responseId) { } + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public ResponseItemCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + public string ResponseId { get { throw null; } } + + protected virtual ResponseItemCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseItemCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItemCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItemCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseItemCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseItemCollectionOrder(string value) { } + public static ResponseItemCollectionOrder Ascending { get { throw null; } } + public static ResponseItemCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ResponseItemCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right) { throw null; } + public static implicit operator ResponseItemCollectionOrder(string value) { throw null; } + public static implicit operator ResponseItemCollectionOrder?(string value) { throw null; } + public static bool operator !=(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseItemCollectionPage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Data { get { throw null; } } + public string FirstId { get { throw null; } set { } } + public bool HasMore { get { throw null; } set { } } + public string LastId { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseItemCollectionPage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseItemCollectionPage(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseItemCollectionPage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItemCollectionPage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItemCollectionPage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseMessageAnnotation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseMessageAnnotation() { } + public ResponseMessageAnnotationKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseMessageAnnotationKind + { FileCitation = 0, UriCitation = 1, FilePath = 2, ContainerFileCitation = 3 } - [Experimental("OPENAI001")] - public class ResponseOutputTokenUsageDetails : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int ReasoningTokenCount { get; set; } - protected virtual ResponseOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseReasoningEffortLevel : IEquatable { - public ResponseReasoningEffortLevel(string value); - public static ResponseReasoningEffortLevel High { get; } - public static ResponseReasoningEffortLevel Low { get; } - public static ResponseReasoningEffortLevel Medium { get; } - public static ResponseReasoningEffortLevel Minimal { get; } - public static ResponseReasoningEffortLevel None { get; } - public readonly bool Equals(ResponseReasoningEffortLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right); - public static implicit operator ResponseReasoningEffortLevel(string value); - public static implicit operator ResponseReasoningEffortLevel?(string value); - public static bool operator !=(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseReasoningOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public ResponseReasoningEffortLevel? ReasoningEffortLevel { get; set; } - public ResponseReasoningSummaryVerbosity? ReasoningSummaryVerbosity { get; set; } - protected virtual ResponseReasoningOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseReasoningOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseReasoningSummaryVerbosity : IEquatable { - public ResponseReasoningSummaryVerbosity(string value); - public static ResponseReasoningSummaryVerbosity Auto { get; } - public static ResponseReasoningSummaryVerbosity Concise { get; } - public static ResponseReasoningSummaryVerbosity Detailed { get; } - public readonly bool Equals(ResponseReasoningSummaryVerbosity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); - public static implicit operator ResponseReasoningSummaryVerbosity(string value); - public static implicit operator ResponseReasoningSummaryVerbosity?(string value); - public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseResult : IJsonModel, IPersistableModel { - public bool? BackgroundModeEnabled { get; set; } - public ResponseConversationOptions ConversationOptions { get; set; } - public DateTimeOffset CreatedAt { get; set; } - public string EndUserId { get; set; } - public ResponseError Error { get; set; } - public string Id { get; set; } - public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; } - public string Instructions { get; set; } - public int? MaxOutputTokenCount { get; set; } - public int? MaxToolCallCount { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - public IList OutputItems { get; } - public bool ParallelToolCallsEnabled { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string PreviousResponseId { get; set; } - public ResponseReasoningOptions ReasoningOptions { get; set; } - public string SafetyIdentifier { get; set; } - public ResponseServiceTier? ServiceTier { get; set; } - public ResponseStatus? Status { get; set; } - public float? Temperature { get; set; } - public ResponseTextOptions TextOptions { get; set; } - public ResponseToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - public ResponseTruncationMode? TruncationMode { get; set; } - public ResponseTokenUsage Usage { get; set; } - public string GetOutputText(); - protected virtual ResponseResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseResult(ClientResult result); - protected virtual ResponseResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponsesClient { - protected ResponsesClient(); - protected internal ResponsesClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ResponsesClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ResponsesClient(string model, ApiKeyCredential credential); - public ResponsesClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ResponsesClient(string model, AuthenticationPolicy authenticationPolicy); - public ResponsesClient(string model, string apiKey); - [Experimental("OPENAI001")] - public virtual Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelResponse(string responseId, RequestOptions options); - public virtual ClientResult CancelResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task CancelResponseAsync(string responseId, RequestOptions options); - public virtual Task> CancelResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult CompactResponse(string contentType, BinaryContent content, RequestOptions options = null); - public virtual Task CompactResponseAsync(string contentType, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateResponse(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult CreateResponse(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateResponse(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateResponse(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual Task> CreateResponseAsync(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task CreateResponseAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateResponseAsync(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual Task> CreateResponseAsync(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteResponse(string responseId, RequestOptions options); - public virtual ClientResult DeleteResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task DeleteResponseAsync(string responseId, RequestOptions options); - public virtual Task> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult GetInputTokenCount(string contentType, BinaryContent content, RequestOptions options = null); - public virtual Task GetInputTokenCountAsync(string contentType, BinaryContent content, RequestOptions options = null); - public virtual ClientResult GetResponse(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponse(string responseId, IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options); - public virtual ClientResult GetResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task> GetResponseAsync(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task GetResponseAsync(string responseId, IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options); - public virtual Task> GetResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponseInputItemCollectionPage(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponseInputItemCollectionPage(string responseId, int? limit, string order, string after, string before, RequestOptions options); - public virtual Task> GetResponseInputItemCollectionPageAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual Task GetResponseInputItemCollectionPageAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options); - public virtual CollectionResult GetResponseInputItems(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseInputItems(string responseId, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseInputItemsAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseStreaming(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseStreaming(string responseId, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseStreamingAsync(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseStreamingAsync(string responseId, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseServiceTier : IEquatable { - public ResponseServiceTier(string value); - public static ResponseServiceTier Auto { get; } - public static ResponseServiceTier Default { get; } - public static ResponseServiceTier Flex { get; } - public static ResponseServiceTier Scale { get; } - public readonly bool Equals(ResponseServiceTier other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseServiceTier left, ResponseServiceTier right); - public static implicit operator ResponseServiceTier(string value); - public static implicit operator ResponseServiceTier?(string value); - public static bool operator !=(ResponseServiceTier left, ResponseServiceTier right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public enum ResponseStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int ReasoningTokenCount { get { throw null; } set { } } + + protected virtual ResponseOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseReasoningEffortLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseReasoningEffortLevel(string value) { } + public static ResponseReasoningEffortLevel High { get { throw null; } } + public static ResponseReasoningEffortLevel Low { get { throw null; } } + public static ResponseReasoningEffortLevel Medium { get { throw null; } } + public static ResponseReasoningEffortLevel Minimal { get { throw null; } } + public static ResponseReasoningEffortLevel None { get { throw null; } } + + public readonly bool Equals(ResponseReasoningEffortLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right) { throw null; } + public static implicit operator ResponseReasoningEffortLevel(string value) { throw null; } + public static implicit operator ResponseReasoningEffortLevel?(string value) { throw null; } + public static bool operator !=(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseReasoningOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseReasoningEffortLevel? ReasoningEffortLevel { get { throw null; } set { } } + public ResponseReasoningSummaryVerbosity? ReasoningSummaryVerbosity { get { throw null; } set { } } + + protected virtual ResponseReasoningOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseReasoningOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseReasoningOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseReasoningOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseReasoningSummaryVerbosity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseReasoningSummaryVerbosity(string value) { } + public static ResponseReasoningSummaryVerbosity Auto { get { throw null; } } + public static ResponseReasoningSummaryVerbosity Concise { get { throw null; } } + public static ResponseReasoningSummaryVerbosity Detailed { get { throw null; } } + + public readonly bool Equals(ResponseReasoningSummaryVerbosity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right) { throw null; } + public static implicit operator ResponseReasoningSummaryVerbosity(string value) { throw null; } + public static implicit operator ResponseReasoningSummaryVerbosity?(string value) { throw null; } + public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? BackgroundModeEnabled { get { throw null; } set { } } + public ResponseConversationOptions ConversationOptions { get { throw null; } set { } } + public System.DateTimeOffset CreatedAt { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public ResponseError Error { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public ResponseIncompleteStatusDetails IncompleteStatusDetails { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public int? MaxToolCallCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + public System.Collections.Generic.IList OutputItems { get { throw null; } } + public bool ParallelToolCallsEnabled { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string PreviousResponseId { get { throw null; } set { } } + public ResponseReasoningOptions ReasoningOptions { get { throw null; } set { } } + public string SafetyIdentifier { get { throw null; } set { } } + public ResponseServiceTier? ServiceTier { get { throw null; } set { } } + public ResponseStatus? Status { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ResponseTextOptions TextOptions { get { throw null; } set { } } + public ResponseToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + public ResponseTruncationMode? TruncationMode { get { throw null; } set { } } + public ResponseTokenUsage Usage { get { throw null; } set { } } + + public string GetOutputText() { throw null; } + protected virtual ResponseResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponsesClient + { + protected ResponsesClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ResponsesClient(ResponsesClientSettings settings) { } + protected internal ResponsesClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public ResponsesClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ResponsesClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelResponse(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelResponseAsync(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CompactResponse(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CompactResponseAsync(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateResponseAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteResponse(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteResponseAsync(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetInputTokenCount(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetInputTokenCountAsync(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(string responseId, System.Collections.Generic.IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseAsync(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetResponseAsync(string responseId, System.Collections.Generic.IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponseInputItemCollectionPage(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponseInputItemCollectionPage(string responseId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseInputItemCollectionPageAsync(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetResponseInputItemCollectionPageAsync(string responseId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseInputItems(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseInputItems(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseInputItemsAsync(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseInputItemsAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseStreaming(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseStreaming(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseStreamingAsync(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseStreamingAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ResponsesClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseServiceTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseServiceTier(string value) { } + public static ResponseServiceTier Auto { get { throw null; } } + public static ResponseServiceTier Default { get { throw null; } } + public static ResponseServiceTier Flex { get { throw null; } } + public static ResponseServiceTier Scale { get { throw null; } } + + public readonly bool Equals(ResponseServiceTier other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseServiceTier left, ResponseServiceTier right) { throw null; } + public static implicit operator ResponseServiceTier(string value) { throw null; } + public static implicit operator ResponseServiceTier?(string value) { throw null; } + public static bool operator !=(ResponseServiceTier left, ResponseServiceTier right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseStatus + { InProgress = 0, Completed = 1, Cancelled = 2, @@ -6438,92 +9937,141 @@ public enum ResponseStatus { Incomplete = 4, Failed = 5 } - [Experimental("OPENAI001")] - public class ResponseTextFormat : IJsonModel, IPersistableModel { - public ResponseTextFormatKind Kind { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ResponseTextFormat CreateJsonObjectFormat(); - public static ResponseTextFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null); - public static ResponseTextFormat CreateTextFormat(); - protected virtual ResponseTextFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTextFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ResponseTextFormatKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTextFormat : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseTextFormat() { } + public ResponseTextFormatKind Kind { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ResponseTextFormat CreateJsonObjectFormat() { throw null; } + public static ResponseTextFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, System.BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null) { throw null; } + public static ResponseTextFormat CreateTextFormat() { throw null; } + protected virtual ResponseTextFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTextFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTextFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTextFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseTextFormatKind + { Unknown = 0, Text = 1, JsonObject = 2, JsonSchema = 3 } - [Experimental("OPENAI001")] - public class ResponseTextOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public ResponseTextFormat TextFormat { get; set; } - protected virtual ResponseTextOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTextOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; set; } - public ResponseInputTokenUsageDetails InputTokenDetails { get; set; } - public int OutputTokenCount { get; set; } - public ResponseOutputTokenUsageDetails OutputTokenDetails { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; set; } - protected virtual ResponseTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseTool : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static CodeInterpreterTool CreateCodeInterpreterTool(CodeInterpreterToolContainer container); - [Experimental("OPENAICUA001")] - public static ComputerTool CreateComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight); - public static FileSearchTool CreateFileSearchTool(IEnumerable vectorStoreIds, int? maxResultCount = null, FileSearchToolRankingOptions rankingOptions = null, BinaryData filters = null); - public static FunctionTool CreateFunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled, string functionDescription = null); - public static ImageGenerationTool CreateImageGenerationTool(string model, ImageGenerationToolQuality? quality = null, ImageGenerationToolSize? size = null, ImageGenerationToolOutputFileFormat? outputFileFormat = null, int? outputCompressionFactor = null, ImageGenerationToolModerationLevel? moderationLevel = null, ImageGenerationToolBackground? background = null, ImageGenerationToolInputFidelity? inputFidelity = null, ImageGenerationToolInputImageMask inputImageMask = null, int? partialImageCount = null); - public static McpTool CreateMcpTool(string serverLabel, McpToolConnectorId connectorId, string authorizationToken = null, string serverDescription = null, IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null); - public static McpTool CreateMcpTool(string serverLabel, Uri serverUri, string authorizationToken = null, string serverDescription = null, IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null); - public static WebSearchPreviewTool CreateWebSearchPreviewTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null); - public static WebSearchTool CreateWebSearchTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null, WebSearchToolFilters filters = null); - protected virtual ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseToolChoice : IJsonModel, IPersistableModel { - public string FunctionName { get; } - public ResponseToolChoiceKind Kind { get; } - public static ResponseToolChoice CreateAutoChoice(); - [Experimental("OPENAICUA001")] - public static ResponseToolChoice CreateComputerChoice(); - public static ResponseToolChoice CreateFileSearchChoice(); - public static ResponseToolChoice CreateFunctionChoice(string functionName); - public static ResponseToolChoice CreateNoneChoice(); - public static ResponseToolChoice CreateRequiredChoice(); - public static ResponseToolChoice CreateWebSearchChoice(); - } - [Experimental("OPENAI001")] - public enum ResponseToolChoiceKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTextOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseTextFormat TextFormat { get { throw null; } set { } } + + protected virtual ResponseTextOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTextOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTextOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTextOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int InputTokenCount { get { throw null; } set { } } + public ResponseInputTokenUsageDetails InputTokenDetails { get { throw null; } set { } } + public int OutputTokenCount { get { throw null; } set { } } + public ResponseOutputTokenUsageDetails OutputTokenDetails { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } set { } } + + protected virtual ResponseTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseTool() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static CodeInterpreterTool CreateCodeInterpreterTool(CodeInterpreterToolContainer container) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ComputerTool CreateComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight) { throw null; } + public static FileSearchTool CreateFileSearchTool(System.Collections.Generic.IEnumerable vectorStoreIds, int? maxResultCount = null, FileSearchToolRankingOptions rankingOptions = null, System.BinaryData filters = null) { throw null; } + public static FunctionTool CreateFunctionTool(string functionName, System.BinaryData functionParameters, bool? strictModeEnabled, string functionDescription = null) { throw null; } + public static ImageGenerationTool CreateImageGenerationTool(string model, ImageGenerationToolQuality? quality = null, ImageGenerationToolSize? size = null, ImageGenerationToolOutputFileFormat? outputFileFormat = null, int? outputCompressionFactor = null, ImageGenerationToolModerationLevel? moderationLevel = null, ImageGenerationToolBackground? background = null, ImageGenerationToolInputFidelity? inputFidelity = null, ImageGenerationToolInputImageMask inputImageMask = null, int? partialImageCount = null) { throw null; } + public static McpTool CreateMcpTool(string serverLabel, McpToolConnectorId connectorId, string authorizationToken = null, string serverDescription = null, System.Collections.Generic.IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null) { throw null; } + public static McpTool CreateMcpTool(string serverLabel, System.Uri serverUri, string authorizationToken = null, string serverDescription = null, System.Collections.Generic.IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null) { throw null; } + public static WebSearchPreviewTool CreateWebSearchPreviewTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null) { throw null; } + public static WebSearchTool CreateWebSearchTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null, WebSearchToolFilters filters = null) { throw null; } + protected virtual ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseToolChoice() { } + public string FunctionName { get { throw null; } } + public ResponseToolChoiceKind Kind { get { throw null; } } + + public static ResponseToolChoice CreateAutoChoice() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ResponseToolChoice CreateComputerChoice() { throw null; } + public static ResponseToolChoice CreateFileSearchChoice() { throw null; } + public static ResponseToolChoice CreateFunctionChoice(string functionName) { throw null; } + public static ResponseToolChoice CreateNoneChoice() { throw null; } + public static ResponseToolChoice CreateRequiredChoice() { throw null; } + public static ResponseToolChoice CreateWebSearchChoice() { throw null; } + ResponseToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseToolChoiceKind + { Unknown = 0, Auto = 1, None = 2, @@ -6533,1004 +10081,1636 @@ public enum ResponseToolChoiceKind { WebSearch = 6, Computer = 7 } - [Experimental("OPENAI001")] - public readonly partial struct ResponseTruncationMode : IEquatable { - public ResponseTruncationMode(string value); - public static ResponseTruncationMode Auto { get; } - public static ResponseTruncationMode Disabled { get; } - public readonly bool Equals(ResponseTruncationMode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right); - public static implicit operator ResponseTruncationMode(string value); - public static implicit operator ResponseTruncationMode?(string value); - public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCodeDeltaUpdate(); - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCodeDoneUpdate(); - public string Code { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallInterpretingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCompletedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseContentPartAddedUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ResponseContentPart Part { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseContentPartDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ResponseContentPart Part { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCreatedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCreatedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseErrorUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseErrorUpdate(); - public string Code { get; set; } - public string Message { get; set; } - public string Param { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFailedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallSearchingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFunctionCallArgumentsDeltaUpdate(); - public BinaryData Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFunctionCallArgumentsDoneUpdate(); - public BinaryData FunctionArguments { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallGeneratingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallPartialImageUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public BinaryData PartialImageBytes { get; set; } - public int PartialImageIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseIncompleteUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseInProgressUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallArgumentsDeltaUpdate(); - public BinaryData Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallArgumentsDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public BinaryData ToolArguments { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallFailedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsFailedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputItemAddedUpdate(); - public ResponseItem Item { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputItemDoneUpdate(); - public ResponseItem Item { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputTextDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputTextDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseQueuedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseQueuedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryPartAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryPartAddedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ReasoningSummaryPart Part { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryPartDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryPartDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ReasoningSummaryPart Part { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryTextDeltaUpdate(); - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryTextDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public int SummaryIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningTextDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningTextDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseRefusalDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseRefusalDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Refusal { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseTextAnnotationAddedUpdate(); - public BinaryData Annotation { get; set; } - public int AnnotationIndex { get; set; } - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseUpdate : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int SequenceNumber { get; set; } - protected virtual StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallSearchingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class UriCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public UriCitationMessageAnnotation(Uri uri, int startIndex, int endIndex, string title); - public int EndIndex { get; set; } - public int StartIndex { get; set; } - public string Title { get; set; } - public Uri Uri { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public WebSearchCallResponseItem(); - public WebSearchCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum WebSearchCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseTruncationMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseTruncationMode(string value) { } + public static ResponseTruncationMode Auto { get { throw null; } } + public static ResponseTruncationMode Disabled { get { throw null; } } + + public readonly bool Equals(ResponseTruncationMode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right) { throw null; } + public static implicit operator ResponseTruncationMode(string value) { throw null; } + public static implicit operator ResponseTruncationMode?(string value) { throw null; } + public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCodeDeltaUpdate() { } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCodeDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCodeDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCodeDoneUpdate() { } + public string Code { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCodeDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCodeDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallInterpretingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallInterpretingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallInterpretingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCompletedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseContentPartAddedUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ResponseContentPart Part { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseContentPartAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseContentPartAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseContentPartDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ResponseContentPart Part { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseContentPartDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseContentPartDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCreatedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCreatedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCreatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCreatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseErrorUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseErrorUpdate() { } + public string Code { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + public string Param { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseErrorUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseErrorUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFailedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallSearchingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallSearchingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallSearchingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFunctionCallArgumentsDeltaUpdate() { } + public System.BinaryData Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFunctionCallArgumentsDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFunctionCallArgumentsDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFunctionCallArgumentsDoneUpdate() { } + public System.BinaryData FunctionArguments { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFunctionCallArgumentsDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFunctionCallArgumentsDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallGeneratingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallGeneratingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallGeneratingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallPartialImageUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public System.BinaryData PartialImageBytes { get { throw null; } set { } } + public int PartialImageIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallPartialImageUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallPartialImageUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseIncompleteUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseIncompleteUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseIncompleteUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseInProgressUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallArgumentsDeltaUpdate() { } + public System.BinaryData Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallArgumentsDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallArgumentsDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallArgumentsDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallArgumentsDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallArgumentsDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallFailedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsFailedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputItemAddedUpdate() { } + public ResponseItem Item { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputItemAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputItemAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputItemDoneUpdate() { } + public ResponseItem Item { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputItemDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputItemDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputTextDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputTextDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseQueuedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseQueuedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseQueuedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseQueuedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryPartAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryPartAddedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ReasoningSummaryPart Part { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryPartAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryPartAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryPartDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryPartDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ReasoningSummaryPart Part { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryPartDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryPartDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryTextDeltaUpdate() { } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryTextDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningTextDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningTextDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseRefusalDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseRefusalDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseRefusalDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseRefusalDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Refusal { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseRefusalDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseRefusalDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseTextAnnotationAddedUpdate() { } + public System.BinaryData Annotation { get { throw null; } set { } } + public int AnnotationIndex { get { throw null; } set { } } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseTextAnnotationAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseTextAnnotationAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingResponseUpdate() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int SequenceNumber { get { throw null; } set { } } + + protected virtual StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallSearchingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallSearchingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallSearchingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class UriCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UriCitationMessageAnnotation(System.Uri uri, int startIndex, int endIndex, string title) { } + public int EndIndex { get { throw null; } set { } } + public int StartIndex { get { throw null; } set { } } + public string Title { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + UriCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + UriCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchCallResponseItem() { } + public WebSearchCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum WebSearchCallStatus + { InProgress = 0, Searching = 1, Completed = 2, Failed = 3 } - [Experimental("OPENAI001")] - public class WebSearchPreviewTool : ResponseTool, IJsonModel, IPersistableModel { - public WebSearchPreviewTool(); - public WebSearchToolContextSize? SearchContextSize { get; set; } - public WebSearchToolLocation UserLocation { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchTool : ResponseTool, IJsonModel, IPersistableModel { - public WebSearchTool(); - public WebSearchToolFilters Filters { get; set; } - public WebSearchToolContextSize? SearchContextSize { get; set; } - public WebSearchToolLocation UserLocation { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchToolApproximateLocation : WebSearchToolLocation, IJsonModel, IPersistableModel { - public WebSearchToolApproximateLocation(); - public string City { get; set; } - public string Country { get; set; } - public string Region { get; set; } - public string Timezone { get; set; } - protected override WebSearchToolLocation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override WebSearchToolLocation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct WebSearchToolContextSize : IEquatable { - public WebSearchToolContextSize(string value); - public static WebSearchToolContextSize High { get; } - public static WebSearchToolContextSize Low { get; } - public static WebSearchToolContextSize Medium { get; } - public readonly bool Equals(WebSearchToolContextSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(WebSearchToolContextSize left, WebSearchToolContextSize right); - public static implicit operator WebSearchToolContextSize(string value); - public static implicit operator WebSearchToolContextSize?(string value); - public static bool operator !=(WebSearchToolContextSize left, WebSearchToolContextSize right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class WebSearchToolFilters : IJsonModel, IPersistableModel { - public IList AllowedDomains { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual WebSearchToolFilters JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual WebSearchToolFilters PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchToolLocation : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static WebSearchToolApproximateLocation CreateApproximateLocation(string country = null, string region = null, string city = null, string timezone = null); - protected virtual WebSearchToolLocation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual WebSearchToolLocation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchPreviewTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchPreviewTool() { } + public WebSearchToolContextSize? SearchContextSize { get { throw null; } set { } } + public WebSearchToolLocation UserLocation { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchPreviewTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchPreviewTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchTool() { } + public WebSearchToolFilters Filters { get { throw null; } set { } } + public WebSearchToolContextSize? SearchContextSize { get { throw null; } set { } } + public WebSearchToolLocation UserLocation { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchToolApproximateLocation : WebSearchToolLocation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchToolApproximateLocation() { } + public string City { get { throw null; } set { } } + public string Country { get { throw null; } set { } } + public string Region { get { throw null; } set { } } + public string Timezone { get { throw null; } set { } } + + protected override WebSearchToolLocation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override WebSearchToolLocation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolApproximateLocation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolApproximateLocation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct WebSearchToolContextSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WebSearchToolContextSize(string value) { } + public static WebSearchToolContextSize High { get { throw null; } } + public static WebSearchToolContextSize Low { get { throw null; } } + public static WebSearchToolContextSize Medium { get { throw null; } } + + public readonly bool Equals(WebSearchToolContextSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(WebSearchToolContextSize left, WebSearchToolContextSize right) { throw null; } + public static implicit operator WebSearchToolContextSize(string value) { throw null; } + public static implicit operator WebSearchToolContextSize?(string value) { throw null; } + public static bool operator !=(WebSearchToolContextSize left, WebSearchToolContextSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchToolFilters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList AllowedDomains { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual WebSearchToolFilters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual WebSearchToolFilters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolFilters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolFilters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchToolLocation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal WebSearchToolLocation() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static WebSearchToolApproximateLocation CreateApproximateLocation(string country = null, string region = null, string city = null, string timezone = null) { throw null; } + protected virtual WebSearchToolLocation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual WebSearchToolLocation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolLocation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolLocation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.VectorStores { - [Experimental("OPENAI001")] - public abstract class FileChunkingStrategy : IJsonModel, IPersistableModel { - public static FileChunkingStrategy Auto { get; } - public static FileChunkingStrategy Unknown { get; } - public static FileChunkingStrategy CreateStaticStrategy(int maxTokensPerChunk, int overlappingTokenCount); - protected virtual FileChunkingStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileChunkingStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileFromStoreRemovalResult : IJsonModel, IPersistableModel { - public string FileId { get; } - public bool Removed { get; } - protected virtual FileFromStoreRemovalResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator FileFromStoreRemovalResult(ClientResult result); - protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StaticFileChunkingStrategy : FileChunkingStrategy, IJsonModel, IPersistableModel { - public StaticFileChunkingStrategy(int maxTokensPerChunk, int overlappingTokenCount); - public int MaxTokensPerChunk { get; } - public int OverlappingTokenCount { get; } - protected override FileChunkingStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override FileChunkingStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStore : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public VectorStoreExpirationPolicy ExpirationPolicy { get; } - public DateTimeOffset? ExpiresAt { get; } - public VectorStoreFileCounts FileCounts { get; } - public string Id { get; } - public DateTimeOffset? LastActiveAt { get; } - public IReadOnlyDictionary Metadata { get; } - public string Name { get; } - public VectorStoreStatus Status { get; } - public int UsageBytes { get; } - protected virtual VectorStore JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStore(ClientResult result); - protected virtual VectorStore PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreClient { - protected VectorStoreClient(); - public VectorStoreClient(ApiKeyCredential credential, OpenAIClientOptions options); - public VectorStoreClient(ApiKeyCredential credential); - public VectorStoreClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public VectorStoreClient(AuthenticationPolicy authenticationPolicy); - protected internal VectorStoreClient(ClientPipeline pipeline, OpenAIClientOptions options); - public VectorStoreClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult AddFileBatchToVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult AddFileBatchToVectorStore(string vectorStoreId, IEnumerable fileIds, CancellationToken cancellationToken = default); - public virtual Task AddFileBatchToVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> AddFileBatchToVectorStoreAsync(string vectorStoreId, IEnumerable fileIds, CancellationToken cancellationToken = default); - public virtual ClientResult AddFileToVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult AddFileToVectorStore(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task AddFileToVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> AddFileToVectorStoreAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, RequestOptions options); - public virtual ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual Task CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, RequestOptions options); - public virtual Task> CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual ClientResult CreateVectorStore(VectorStoreCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateVectorStore(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateVectorStoreAsync(VectorStoreCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateVectorStoreAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteVectorStore(string vectorStoreId, RequestOptions options); - public virtual ClientResult DeleteVectorStore(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual Task DeleteVectorStoreAsync(string vectorStoreId, RequestOptions options); - public virtual Task> DeleteVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStore(string vectorStoreId, RequestOptions options); - public virtual ClientResult GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreAsync(string vectorStoreId, RequestOptions options); - public virtual Task> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreFileAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task> GetVectorStoreFileAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, RequestOptions options); - public virtual ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, RequestOptions options); - public virtual Task> GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFiles(string vectorStoreId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFiles(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual CollectionResult GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoresAsync(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoresAsync(int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult ModifyVectorStore(string vectorStoreId, VectorStoreModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyVectorStoreAsync(string vectorStoreId, VectorStoreModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task> RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult RetrieveVectorStoreFileContent(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task RetrieveVectorStoreFileContentAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult SearchVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task SearchVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, IDictionary attributes, CancellationToken cancellationToken = default); - public virtual Task UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, BinaryContent content, RequestOptions options = null); - public virtual Task> UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, IDictionary attributes, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class VectorStoreCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public VectorStoreCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual VectorStoreCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreCollectionOrder : IEquatable { - public VectorStoreCollectionOrder(string value); - public static VectorStoreCollectionOrder Ascending { get; } - public static VectorStoreCollectionOrder Descending { get; } - public readonly bool Equals(VectorStoreCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); - public static implicit operator VectorStoreCollectionOrder(string value); - public static implicit operator VectorStoreCollectionOrder?(string value); - public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreCreationOptions : IJsonModel, IPersistableModel { - public FileChunkingStrategy ChunkingStrategy { get; set; } - public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } - public IList FileIds { get; } - public IDictionary Metadata { get; } - public string Name { get; set; } - protected virtual VectorStoreCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreDeletionResult(ClientResult result); - protected virtual VectorStoreDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum VectorStoreExpirationAnchor { + +namespace OpenAI.VectorStores +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class FileChunkingStrategy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileChunkingStrategy() { } + public static FileChunkingStrategy Auto { get { throw null; } } + public static FileChunkingStrategy Unknown { get { throw null; } } + + public static FileChunkingStrategy CreateStaticStrategy(int maxTokensPerChunk, int overlappingTokenCount) { throw null; } + protected virtual FileChunkingStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileChunkingStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileChunkingStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileChunkingStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileFromStoreRemovalResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileFromStoreRemovalResult() { } + public string FileId { get { throw null; } } + public bool Removed { get { throw null; } } + + protected virtual FileFromStoreRemovalResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator FileFromStoreRemovalResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileFromStoreRemovalResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileFromStoreRemovalResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StaticFileChunkingStrategy : FileChunkingStrategy, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StaticFileChunkingStrategy(int maxTokensPerChunk, int overlappingTokenCount) { } + public int MaxTokensPerChunk { get { throw null; } } + public int OverlappingTokenCount { get { throw null; } } + + protected override FileChunkingStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override FileChunkingStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StaticFileChunkingStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StaticFileChunkingStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStore : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStore() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public VectorStoreFileCounts FileCounts { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? LastActiveAt { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } } + public VectorStoreStatus Status { get { throw null; } } + public int UsageBytes { get { throw null; } } + + protected virtual VectorStore JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStore(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStore PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStore System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStore System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreClient + { + protected VectorStoreClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public VectorStoreClient(VectorStoreClientSettings settings) { } + public VectorStoreClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public VectorStoreClient(System.ClientModel.ApiKeyCredential credential) { } + public VectorStoreClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public VectorStoreClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal VectorStoreClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public VectorStoreClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult AddFileBatchToVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult AddFileBatchToVectorStore(string vectorStoreId, System.Collections.Generic.IEnumerable fileIds, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddFileBatchToVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> AddFileBatchToVectorStoreAsync(string vectorStoreId, System.Collections.Generic.IEnumerable fileIds, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult AddFileToVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult AddFileToVectorStore(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddFileToVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> AddFileToVectorStoreAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateVectorStore(VectorStoreCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateVectorStore(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateVectorStoreAsync(VectorStoreCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateVectorStoreAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVectorStore(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVectorStore(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteVectorStoreAsync(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteVectorStoreAsync(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStore(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStore(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreAsync(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreAsync(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreFileAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreFileAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStoreFiles(string vectorStoreId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStoreFiles(string vectorStoreId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStores(VectorStoreCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStores(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoresAsync(VectorStoreCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoresAsync(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult ModifyVectorStore(string vectorStoreId, VectorStoreModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyVectorStoreAsync(string vectorStoreId, VectorStoreModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult RetrieveVectorStoreFileContent(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task RetrieveVectorStoreFileContentAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult SearchVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SearchVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, System.Collections.Generic.IDictionary attributes, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, System.Collections.Generic.IDictionary attributes, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class VectorStoreClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public VectorStoreCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual VectorStoreCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreCollectionOrder(string value) { } + public static VectorStoreCollectionOrder Ascending { get { throw null; } } + public static VectorStoreCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(VectorStoreCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right) { throw null; } + public static implicit operator VectorStoreCollectionOrder(string value) { throw null; } + public static implicit operator VectorStoreCollectionOrder?(string value) { throw null; } + public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileChunkingStrategy ChunkingStrategy { get { throw null; } set { } } + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + + protected virtual VectorStoreCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreDeletionResult() { } + public bool Deleted { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum VectorStoreExpirationAnchor + { Unknown = 0, LastActiveAt = 1 } - [Experimental("OPENAI001")] - public class VectorStoreExpirationPolicy : IJsonModel, IPersistableModel { - public VectorStoreExpirationPolicy(VectorStoreExpirationAnchor anchor, int days); - public VectorStoreExpirationAnchor Anchor { get; set; } - public int Days { get; set; } - protected virtual VectorStoreExpirationPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreExpirationPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreFile : IJsonModel, IPersistableModel { - public IDictionary Attributes { get; } - public FileChunkingStrategy ChunkingStrategy { get; } - public DateTimeOffset CreatedAt { get; } - public string FileId { get; } - public VectorStoreFileError LastError { get; } - public int Size { get; } - public VectorStoreFileStatus Status { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreFile JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreFile(ClientResult result); - protected virtual VectorStoreFile PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreFileBatch : IJsonModel, IPersistableModel { - public string BatchId { get; } - public DateTimeOffset CreatedAt { get; } - public VectorStoreFileCounts FileCounts { get; } - public VectorStoreFileBatchStatus Status { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreFileBatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreFileBatch(ClientResult result); - protected virtual VectorStoreFileBatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileBatchStatus : IEquatable { - public VectorStoreFileBatchStatus(string value); - public static VectorStoreFileBatchStatus Cancelled { get; } - public static VectorStoreFileBatchStatus Completed { get; } - public static VectorStoreFileBatchStatus Failed { get; } - public static VectorStoreFileBatchStatus InProgress { get; } - public readonly bool Equals(VectorStoreFileBatchStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right); - public static implicit operator VectorStoreFileBatchStatus(string value); - public static implicit operator VectorStoreFileBatchStatus?(string value); - public static bool operator !=(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreFileCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public VectorStoreFileStatusFilter? Filter { get; set; } - public VectorStoreFileCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual VectorStoreFileCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileCollectionOrder : IEquatable { - public VectorStoreFileCollectionOrder(string value); - public static VectorStoreFileCollectionOrder Ascending { get; } - public static VectorStoreFileCollectionOrder Descending { get; } - public readonly bool Equals(VectorStoreFileCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right); - public static implicit operator VectorStoreFileCollectionOrder(string value); - public static implicit operator VectorStoreFileCollectionOrder?(string value); - public static bool operator !=(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreFileCounts : IJsonModel, IPersistableModel { - public int Cancelled { get; } - public int Completed { get; } - public int Failed { get; } - public int InProgress { get; } - public int Total { get; } - protected virtual VectorStoreFileCounts JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileCounts PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreFileError : IJsonModel, IPersistableModel { - public VectorStoreFileErrorCode Code { get; } - public string Message { get; } - protected virtual VectorStoreFileError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileErrorCode : IEquatable { - public VectorStoreFileErrorCode(string value); - public static VectorStoreFileErrorCode InvalidFile { get; } - public static VectorStoreFileErrorCode ServerError { get; } - public static VectorStoreFileErrorCode UnsupportedFile { get; } - public readonly bool Equals(VectorStoreFileErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right); - public static implicit operator VectorStoreFileErrorCode(string value); - public static implicit operator VectorStoreFileErrorCode?(string value); - public static bool operator !=(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public enum VectorStoreFileStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreExpirationPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreExpirationPolicy(VectorStoreExpirationAnchor anchor, int days) { } + public VectorStoreExpirationAnchor Anchor { get { throw null; } set { } } + public int Days { get { throw null; } set { } } + + protected virtual VectorStoreExpirationPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreExpirationPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreExpirationPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreExpirationPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFile() { } + public System.Collections.Generic.IDictionary Attributes { get { throw null; } } + public FileChunkingStrategy ChunkingStrategy { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string FileId { get { throw null; } } + public VectorStoreFileError LastError { get { throw null; } } + public int Size { get { throw null; } } + public VectorStoreFileStatus Status { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreFile JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreFile(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreFile PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileBatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileBatch() { } + public string BatchId { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public VectorStoreFileCounts FileCounts { get { throw null; } } + public VectorStoreFileBatchStatus Status { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreFileBatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreFileBatch(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreFileBatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileBatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileBatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileBatchStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileBatchStatus(string value) { } + public static VectorStoreFileBatchStatus Cancelled { get { throw null; } } + public static VectorStoreFileBatchStatus Completed { get { throw null; } } + public static VectorStoreFileBatchStatus Failed { get { throw null; } } + public static VectorStoreFileBatchStatus InProgress { get { throw null; } } + + public readonly bool Equals(VectorStoreFileBatchStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right) { throw null; } + public static implicit operator VectorStoreFileBatchStatus(string value) { throw null; } + public static implicit operator VectorStoreFileBatchStatus?(string value) { throw null; } + public static bool operator !=(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public VectorStoreFileStatusFilter? Filter { get { throw null; } set { } } + public VectorStoreFileCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual VectorStoreFileCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileCollectionOrder(string value) { } + public static VectorStoreFileCollectionOrder Ascending { get { throw null; } } + public static VectorStoreFileCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(VectorStoreFileCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right) { throw null; } + public static implicit operator VectorStoreFileCollectionOrder(string value) { throw null; } + public static implicit operator VectorStoreFileCollectionOrder?(string value) { throw null; } + public static bool operator !=(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileCounts : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileCounts() { } + public int Cancelled { get { throw null; } } + public int Completed { get { throw null; } } + public int Failed { get { throw null; } } + public int InProgress { get { throw null; } } + public int Total { get { throw null; } } + + protected virtual VectorStoreFileCounts JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileCounts PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileCounts System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileCounts System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileError() { } + public VectorStoreFileErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual VectorStoreFileError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileErrorCode(string value) { } + public static VectorStoreFileErrorCode InvalidFile { get { throw null; } } + public static VectorStoreFileErrorCode ServerError { get { throw null; } } + public static VectorStoreFileErrorCode UnsupportedFile { get { throw null; } } + + public readonly bool Equals(VectorStoreFileErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right) { throw null; } + public static implicit operator VectorStoreFileErrorCode(string value) { throw null; } + public static implicit operator VectorStoreFileErrorCode?(string value) { throw null; } + public static bool operator !=(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum VectorStoreFileStatus + { Unknown = 0, InProgress = 1, Completed = 2, Cancelled = 3, Failed = 4 } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileStatusFilter : IEquatable { - public VectorStoreFileStatusFilter(string value); - public static VectorStoreFileStatusFilter Cancelled { get; } - public static VectorStoreFileStatusFilter Completed { get; } - public static VectorStoreFileStatusFilter Failed { get; } - public static VectorStoreFileStatusFilter InProgress { get; } - public readonly bool Equals(VectorStoreFileStatusFilter other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); - public static implicit operator VectorStoreFileStatusFilter(string value); - public static implicit operator VectorStoreFileStatusFilter?(string value); - public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreModificationOptions : IJsonModel, IPersistableModel { - public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } - public IDictionary Metadata { get; } - public string Name { get; set; } - protected virtual VectorStoreModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum VectorStoreStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileStatusFilter : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileStatusFilter(string value) { } + public static VectorStoreFileStatusFilter Cancelled { get { throw null; } } + public static VectorStoreFileStatusFilter Completed { get { throw null; } } + public static VectorStoreFileStatusFilter Failed { get { throw null; } } + public static VectorStoreFileStatusFilter InProgress { get { throw null; } } + + public readonly bool Equals(VectorStoreFileStatusFilter other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right) { throw null; } + public static implicit operator VectorStoreFileStatusFilter(string value) { throw null; } + public static implicit operator VectorStoreFileStatusFilter?(string value) { throw null; } + public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + + protected virtual VectorStoreModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum VectorStoreStatus + { Unknown = 0, InProgress = 1, Completed = 2, Expired = 3 } } -namespace OpenAI.Videos { - [Experimental("OPENAI001")] - public class VideoClient { - protected VideoClient(); - public VideoClient(ApiKeyCredential credential, OpenAIClientOptions options); - public VideoClient(ApiKeyCredential credential); - public VideoClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public VideoClient(AuthenticationPolicy authenticationPolicy); - protected internal VideoClient(ClientPipeline pipeline, OpenAIClientOptions options); - public VideoClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateVideo(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateVideoAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult CreateVideoRemix(string videoId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateVideoRemixAsync(string videoId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult DeleteVideo(string videoId, RequestOptions options = null); - public virtual Task DeleteVideoAsync(string videoId, RequestOptions options = null); - public virtual ClientResult DownloadVideo(string videoId, string variant = null, RequestOptions options = null); - public virtual Task DownloadVideoAsync(string videoId, string variant = null, RequestOptions options = null); - public virtual ClientResult GetVideo(string videoId, RequestOptions options = null); - public virtual Task GetVideoAsync(string videoId, RequestOptions options = null); - public virtual CollectionResult GetVideos(long? limit = null, string order = null, string after = null, RequestOptions options = null); - public virtual AsyncCollectionResult GetVideosAsync(long? limit = null, string order = null, string after = null, RequestOptions options = null); + +namespace OpenAI.Videos +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VideoClient + { + protected VideoClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public VideoClient(VideoClientSettings settings) { } + public VideoClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public VideoClient(System.ClientModel.ApiKeyCredential credential) { } + public VideoClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public VideoClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal VideoClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public VideoClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateVideo(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateVideoAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateVideoRemix(string videoId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateVideoRemixAsync(string videoId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVideo(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteVideoAsync(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DownloadVideo(string videoId, string variant = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DownloadVideoAsync(string videoId, string variant = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetVideo(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetVideoAsync(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVideos(long? limit = null, string order = null, string after = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVideosAsync(long? limit = null, string order = null, string after = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class VideoClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } } } \ No newline at end of file diff --git a/api/OpenAI.net8.0.cs b/api/OpenAI.net8.0.cs index 277be3bf4..9914f3d9c 100644 --- a/api/OpenAI.net8.0.cs +++ b/api/OpenAI.net8.0.cs @@ -6,899 +6,1660 @@ // the code is regenerated. // //------------------------------------------------------------------------------ -namespace OpenAI { - public class OpenAIClient { - protected OpenAIClient(); - public OpenAIClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public OpenAIClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public OpenAIClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - [Experimental("OPENAI001")] - public virtual AssistantClient GetAssistantClient(); - public virtual AudioClient GetAudioClient(string model); - [Experimental("OPENAI001")] - public virtual BatchClient GetBatchClient(); - public virtual ChatClient GetChatClient(string model); - [Experimental("OPENAI001")] - public virtual ContainerClient GetContainerClient(); - [Experimental("OPENAI001")] - public virtual ConversationClient GetConversationClient(); - public virtual EmbeddingClient GetEmbeddingClient(string model); - [Experimental("OPENAI001")] - public virtual EvaluationClient GetEvaluationClient(); - [Experimental("OPENAI001")] - public virtual FineTuningClient GetFineTuningClient(); - [Experimental("OPENAI001")] - public virtual GraderClient GetGraderClient(); - public virtual ImageClient GetImageClient(string model); - public virtual ModerationClient GetModerationClient(string model); - public virtual OpenAIFileClient GetOpenAIFileClient(); - public virtual OpenAIModelClient GetOpenAIModelClient(); - [Experimental("OPENAI002")] - public virtual RealtimeClient GetRealtimeClient(); - [Experimental("OPENAI001")] - public virtual ResponsesClient GetResponsesClient(string model); - [Experimental("OPENAI001")] - public virtual VectorStoreClient GetVectorStoreClient(); - [Experimental("OPENAI001")] - public virtual VideoClient GetVideoClient(); - } - public class OpenAIClientOptions : ClientPipelineOptions { - public Uri Endpoint { get; set; } - public string OrganizationId { get; set; } - public string ProjectId { get; set; } - public string UserAgentApplicationId { get; set; } - } - [Experimental("OPENAI001")] - public class OpenAIContext : ModelReaderWriterContext { - public static OpenAIContext Default { get; } - protected override bool TryGetTypeBuilderCore(Type type, out ModelReaderWriterTypeBuilder builder); +namespace OpenAI +{ + public partial class OpenAIClient + { + protected OpenAIClient() { } + public OpenAIClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Assistants.AssistantClient GetAssistantClient() { throw null; } + public virtual Audio.AudioClient GetAudioClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Batch.BatchClient GetBatchClient() { throw null; } + public virtual Chat.ChatClient GetChatClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Containers.ContainerClient GetContainerClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Conversations.ConversationClient GetConversationClient() { throw null; } + public virtual Embeddings.EmbeddingClient GetEmbeddingClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Evals.EvaluationClient GetEvaluationClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual FineTuning.FineTuningClient GetFineTuningClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Graders.GraderClient GetGraderClient() { throw null; } + public virtual Images.ImageClient GetImageClient(string model) { throw null; } + public virtual Moderations.ModerationClient GetModerationClient(string model) { throw null; } + public virtual Files.OpenAIFileClient GetOpenAIFileClient() { throw null; } + public virtual Models.OpenAIModelClient GetOpenAIModelClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public virtual Realtime.RealtimeClient GetRealtimeClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Responses.ResponsesClient GetResponsesClient(string model) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual VectorStores.VectorStoreClient GetVectorStoreClient() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual Videos.VideoClient GetVideoClient() { throw null; } + } + public partial class OpenAIClientOptions : System.ClientModel.Primitives.ClientPipelineOptions + { + public System.Uri Endpoint { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string ProjectId { get { throw null; } set { } } + public string UserAgentApplicationId { get { throw null; } set { } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.Assistant))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.AssistantChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantResponseFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantThread))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTokenLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranscription))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranscriptionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranslation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranslationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.AutomaticCodeInterpreterToolContainerConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Batch.BatchCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Batch.BatchJob))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatAudioOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionMessageCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionMessageListDatum))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunctionCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunctionChoice))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessageContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputAudio))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputAudioReference))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputPrediction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatResponseFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenTopLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatToolCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatToolChoice))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatWebSearchOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallImageOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallLogsOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterToolContainer))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterToolContainerConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.CodeInterpreterToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.CodeInterpreterToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallAction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallOutputResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallSafetyCheck))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ContainerFileCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerFileCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerFileResource))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerResource))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerResourceExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationFunctionTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationRateLimitDetailsItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionConfiguredUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationStatusDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerBody))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerBodyExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerFileBody))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CreateResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CustomMcpToolCallApprovalPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.DeleteContainerFileResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.DeleteContainerResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.DeveloperChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.EmbeddingGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.EmbeddingTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.FileChunkingStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.FileDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.FileFromStoreRemovalResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FilePathMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchCallResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchRankingOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchToolRankingOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.FineTuneReinforcementHyperparameters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningCheckpoint))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningCheckpointMetrics))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningEvent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningHyperparameters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningIntegration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningTrainingMethod))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionCallOutputResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.FunctionChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FunctionToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.GeneratedImage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.GeneratedImageCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.GetResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.Grader))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderLabelModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderMulti))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderPython))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderScoreModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderStringCheck))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderTextSimilarity))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.HyperparametersForDPO))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.HyperparametersForSupervised))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageEditOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationToolInputImageMask))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageVariationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioClearedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioCommittedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioSpeechFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioSpeechStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputNoiseReductionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputTranscriptionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemCreatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemDeletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemRetrievedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemTruncatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalRequestItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolDefinitionListItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolFilter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageContent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCreationAttachment))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageFailureDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.MessageResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.ModelDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationInputPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationResultCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.OpenAIEmbedding))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.OpenAIEmbeddingCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.OpenAIFile))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.OpenAIFileCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.OpenAIModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.OpenAIModelCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputAudioFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputAudioTranscriptionFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputStreamingFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputStreamingStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputTextFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RateLimitsUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretRequestExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeErrorUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeRequestSessionBase))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioInputConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioOutputConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionCreateRequestUnion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionCreateResponseUnion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningSummaryPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningSummaryTextPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReferenceResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseConversationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ResponseFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseIncompleteStatusDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItemCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItemCollectionPage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseReasoningOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ResponseStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTextFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTextOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponseMetadata))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponseMetadataErrors))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunIncompleteDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStep))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepCodeInterpreterOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepFileSearchResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepFileSearchResultContent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepToolCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepUpdateCodeInterpreterOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunTruncationStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.SpeechGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.StaticFileChunkingStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextSegmentUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatCompletionUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatFunctionCallUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatOutputAudioUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatToolCallUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCodeDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCodeDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallInterpretingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseContentPartAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseContentPartDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCreatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseErrorUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallSearchingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFunctionCallArgumentsDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFunctionCallArgumentsDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallGeneratingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallPartialImageUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseIncompleteUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallArgumentsDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallArgumentsDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputItemAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputItemDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseQueuedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryPartAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryPartDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseRefusalDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseRefusalDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseTextAnnotationAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallSearchingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.SystemChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadRun))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ToolChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolConstraint))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.TranscribedSegment))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.TranscribedWord))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TranscriptionSessionConfiguredUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TranscriptionSessionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TurnDetectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.UnknownGrader))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.UriCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.UserChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.ValidateGraderRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.ValidateGraderResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStore))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.VectorStoreCreationHelper))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreExpirationPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFile))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileBatch))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileCounts))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchPreviewTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolApproximateLocation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolFilters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolLocation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.WeightsAndBiasesIntegration))] + public partial class OpenAIContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal OpenAIContext() { } + public static OpenAIContext Default { get { throw null; } } + + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } } -namespace OpenAI.Assistants { - [Experimental("OPENAI001")] - public class Assistant : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Description { get; } - public string Id { get; } - public string Instructions { get; } - public IReadOnlyDictionary Metadata { get; } - public string Model { get; } - public string Name { get; } - public float? NucleusSamplingFactor { get; } - public AssistantResponseFormat ResponseFormat { get; } - public float? Temperature { get; } - public ToolResources ToolResources { get; } - public IReadOnlyList Tools { get; } - protected virtual Assistant JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator Assistant(ClientResult result); - protected virtual Assistant PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantClient { - protected AssistantClient(); - public AssistantClient(ApiKeyCredential credential, OpenAIClientOptions options); - public AssistantClient(ApiKeyCredential credential); - public AssistantClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public AssistantClient(AuthenticationPolicy authenticationPolicy); - protected internal AssistantClient(ClientPipeline pipeline, OpenAIClientOptions options); - public AssistantClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelRun(string threadId, string runId, RequestOptions options); - public virtual ClientResult CancelRun(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual Task CancelRunAsync(string threadId, string runId, RequestOptions options); - public virtual Task> CancelRunAsync(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual ClientResult CreateAssistant(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateAssistant(string model, AssistantCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateAssistantAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateAssistantAsync(string model, AssistantCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateMessage(string threadId, MessageRole role, IEnumerable content, MessageCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateMessage(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> CreateMessageAsync(string threadId, MessageRole role, IEnumerable content, MessageCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateMessageAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateRun(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateRun(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateRunAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> CreateRunAsync(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateRunStreaming(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateRunStreamingAsync(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateThread(ThreadCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateThread(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateThreadAndRun(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateThreadAndRun(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual Task CreateThreadAndRunAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateThreadAndRunAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateThreadAndRunStreaming(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateThreadAndRunStreamingAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual Task> CreateThreadAsync(ThreadCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateThreadAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteAssistant(string assistantId, RequestOptions options); - public virtual ClientResult DeleteAssistant(string assistantId, CancellationToken cancellationToken = default); - public virtual Task DeleteAssistantAsync(string assistantId, RequestOptions options); - public virtual Task> DeleteAssistantAsync(string assistantId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteMessage(string threadId, string messageId, RequestOptions options); - public virtual ClientResult DeleteMessage(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual Task DeleteMessageAsync(string threadId, string messageId, RequestOptions options); - public virtual Task> DeleteMessageAsync(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteThread(string threadId, RequestOptions options); - public virtual ClientResult DeleteThread(string threadId, CancellationToken cancellationToken = default); - public virtual Task DeleteThreadAsync(string threadId, RequestOptions options); - public virtual Task> DeleteThreadAsync(string threadId, CancellationToken cancellationToken = default); - public virtual ClientResult GetAssistant(string assistantId, RequestOptions options); - public virtual ClientResult GetAssistant(string assistantId, CancellationToken cancellationToken = default); - public virtual Task GetAssistantAsync(string assistantId, RequestOptions options); - public virtual Task> GetAssistantAsync(string assistantId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetAssistants(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetAssistants(int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetAssistantsAsync(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetMessage(string threadId, string messageId, RequestOptions options); - public virtual ClientResult GetMessage(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual Task GetMessageAsync(string threadId, string messageId, RequestOptions options); - public virtual Task> GetMessageAsync(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetMessages(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetMessages(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetMessagesAsync(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetMessagesAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetRun(string threadId, string runId, RequestOptions options); - public virtual ClientResult GetRun(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual Task GetRunAsync(string threadId, string runId, RequestOptions options); - public virtual Task> GetRunAsync(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRuns(string threadId, RunCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRuns(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetRunsAsync(string threadId, RunCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetRunsAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetRunStep(string threadId, string runId, string stepId, RequestOptions options); - public virtual ClientResult GetRunStep(string threadId, string runId, string stepId, CancellationToken cancellationToken = default); - public virtual Task GetRunStepAsync(string threadId, string runId, string stepId, RequestOptions options); - public virtual Task> GetRunStepAsync(string threadId, string runId, string stepId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRunSteps(string threadId, string runId, RunStepCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRunSteps(string threadId, string runId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, RunStepCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetThread(string threadId, RequestOptions options); - public virtual ClientResult GetThread(string threadId, CancellationToken cancellationToken = default); - public virtual Task GetThreadAsync(string threadId, RequestOptions options); - public virtual Task> GetThreadAsync(string threadId, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyAssistant(string assistantId, AssistantModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyAssistant(string assistantId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyAssistantAsync(string assistantId, AssistantModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyAssistantAsync(string assistantId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyMessage(string threadId, string messageId, MessageModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyMessage(string threadId, string messageId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyMessageAsync(string threadId, string messageId, MessageModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyMessageAsync(string threadId, string messageId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyRun(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual Task ModifyRunAsync(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyThread(string threadId, ThreadModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyThread(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyThreadAsync(string threadId, ThreadModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyThreadAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult SubmitToolOutputsToRun(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult SubmitToolOutputsToRun(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual Task SubmitToolOutputsToRunAsync(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual Task> SubmitToolOutputsToRunAsync(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual CollectionResult SubmitToolOutputsToRunStreaming(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult SubmitToolOutputsToRunStreamingAsync(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class AssistantCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public AssistantCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual AssistantCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct AssistantCollectionOrder : IEquatable { - public AssistantCollectionOrder(string value); - public static AssistantCollectionOrder Ascending { get; } - public static AssistantCollectionOrder Descending { get; } - public readonly bool Equals(AssistantCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AssistantCollectionOrder left, AssistantCollectionOrder right); - public static implicit operator AssistantCollectionOrder(string value); - public static implicit operator AssistantCollectionOrder?(string value); - public static bool operator !=(AssistantCollectionOrder left, AssistantCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class AssistantCreationOptions : IJsonModel, IPersistableModel { - public string Description { get; set; } - public string Instructions { get; set; } - public IDictionary Metadata { get; } - public string Name { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolResources ToolResources { get; set; } - public IList Tools { get; } - protected virtual AssistantCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantDeletionResult : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public bool Deleted { get; } - protected virtual AssistantDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AssistantDeletionResult(ClientResult result); - protected virtual AssistantDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantModificationOptions : IJsonModel, IPersistableModel { - public IList DefaultTools { get; } - public string Description { get; set; } - public string Instructions { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public string Name { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolResources ToolResources { get; set; } - protected virtual AssistantModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class AssistantResponseFormat : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public static AssistantResponseFormat Auto { get; } - public static AssistantResponseFormat JsonObject { get; } - public static AssistantResponseFormat Text { get; } - public static AssistantResponseFormat CreateAutoFormat(); - public static AssistantResponseFormat CreateJsonObjectFormat(); - public static AssistantResponseFormat CreateJsonSchemaFormat(string name, BinaryData jsonSchema, string description = null, bool? strictSchemaEnabled = null); - public static AssistantResponseFormat CreateTextFormat(); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - protected virtual AssistantResponseFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(AssistantResponseFormat first, AssistantResponseFormat second); - [EditorBrowsable(EditorBrowsableState.Never)] - public static implicit operator AssistantResponseFormat(string plainTextFormat); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(AssistantResponseFormat first, AssistantResponseFormat second); - protected virtual AssistantResponseFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - [EditorBrowsable(EditorBrowsableState.Never)] - bool IEquatable.Equals(AssistantResponseFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - bool IEquatable.Equals(string other); - public override string ToString(); - } - [Experimental("OPENAI001")] - public class AssistantThread : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public IReadOnlyDictionary Metadata { get; } - public ToolResources ToolResources { get; } - protected virtual AssistantThread JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AssistantThread(ClientResult result); - protected virtual AssistantThread PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public CodeInterpreterToolDefinition(); - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolResources : IJsonModel, IPersistableModel { - public IList FileIds { get; } - protected virtual CodeInterpreterToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FileSearchRanker : IEquatable { - public FileSearchRanker(string value); - public static FileSearchRanker Auto { get; } - public static FileSearchRanker Default20240821 { get; } - public readonly bool Equals(FileSearchRanker other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileSearchRanker left, FileSearchRanker right); - public static implicit operator FileSearchRanker(string value); - public static implicit operator FileSearchRanker?(string value); - public static bool operator !=(FileSearchRanker left, FileSearchRanker right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FileSearchRankingOptions : IJsonModel, IPersistableModel { - public FileSearchRankingOptions(float scoreThreshold); - public FileSearchRanker? Ranker { get; set; } - public float ScoreThreshold { get; set; } - protected virtual FileSearchRankingOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchRankingOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public FileSearchToolDefinition(); - public int? MaxResults { get; set; } - public FileSearchRankingOptions RankingOptions { get; set; } - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchToolResources : IJsonModel, IPersistableModel { - public IList NewVectorStores { get; } - public IList VectorStoreIds { get; } - protected virtual FileSearchToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FunctionToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public FunctionToolDefinition(); - public FunctionToolDefinition(string name); - public string Description { get; set; } - public string FunctionName { get; set; } - public BinaryData Parameters { get; set; } - public bool? StrictParameterSchemaEnabled { get; set; } - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public MessageCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual MessageCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct MessageCollectionOrder : IEquatable { - public MessageCollectionOrder(string value); - public static MessageCollectionOrder Ascending { get; } - public static MessageCollectionOrder Descending { get; } - public readonly bool Equals(MessageCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageCollectionOrder left, MessageCollectionOrder right); - public static implicit operator MessageCollectionOrder(string value); - public static implicit operator MessageCollectionOrder?(string value); - public static bool operator !=(MessageCollectionOrder left, MessageCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public abstract class MessageContent : IJsonModel, IPersistableModel { - public MessageImageDetail? ImageDetail { get; } - public string ImageFileId { get; } - public Uri ImageUri { get; } - public string Refusal { get; } - public string Text { get; } - public IReadOnlyList TextAnnotations { get; } - public static MessageContent FromImageFileId(string imageFileId, MessageImageDetail? detail = null); - public static MessageContent FromImageUri(Uri imageUri, MessageImageDetail? detail = null); - public static MessageContent FromText(string text); - protected virtual MessageContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator MessageContent(string value); - protected virtual MessageContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageContentUpdate : StreamingUpdate { - public MessageImageDetail? ImageDetail { get; } - public string ImageFileId { get; } - public string MessageId { get; } - public int MessageIndex { get; } - public string RefusalUpdate { get; } - public MessageRole? Role { get; } - public string Text { get; } - public TextAnnotationUpdate TextAnnotation { get; } - } - [Experimental("OPENAI001")] - public class MessageCreationAttachment : IJsonModel, IPersistableModel { - public MessageCreationAttachment(string fileId, IEnumerable tools); - public string FileId { get; } - public IReadOnlyList Tools { get; } - protected virtual MessageCreationAttachment JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCreationAttachment PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageCreationOptions : IJsonModel, IPersistableModel { - public IList Attachments { get; set; } - public IDictionary Metadata { get; } - protected virtual MessageCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string MessageId { get; } - protected virtual MessageDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator MessageDeletionResult(ClientResult result); - protected virtual MessageDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageFailureDetails : IJsonModel, IPersistableModel { - public MessageFailureReason Reason { get; } - protected virtual MessageFailureDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageFailureDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct MessageFailureReason : IEquatable { - public MessageFailureReason(string value); - public static MessageFailureReason ContentFilter { get; } - public static MessageFailureReason MaxTokens { get; } - public static MessageFailureReason RunCancelled { get; } - public static MessageFailureReason RunExpired { get; } - public static MessageFailureReason RunFailed { get; } - public readonly bool Equals(MessageFailureReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageFailureReason left, MessageFailureReason right); - public static implicit operator MessageFailureReason(string value); - public static implicit operator MessageFailureReason?(string value); - public static bool operator !=(MessageFailureReason left, MessageFailureReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public enum MessageImageDetail { + +namespace OpenAI.Assistants +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class Assistant : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal Assistant() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Description { get { throw null; } } + public string Id { get { throw null; } } + public string Instructions { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } } + public string Name { get { throw null; } } + public float? NucleusSamplingFactor { get { throw null; } } + public AssistantResponseFormat ResponseFormat { get { throw null; } } + public float? Temperature { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + + protected virtual Assistant JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Assistant(System.ClientModel.ClientResult result) { throw null; } + protected virtual Assistant PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Assistant System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Assistant System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantClient + { + protected AssistantClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public AssistantClient(AssistantClientSettings settings) { } + public AssistantClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public AssistantClient(System.ClientModel.ApiKeyCredential credential) { } + public AssistantClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public AssistantClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal AssistantClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public AssistantClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelRun(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelRun(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelRunAsync(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelRunAsync(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateAssistant(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateAssistant(string model, AssistantCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateAssistantAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAssistantAsync(string model, AssistantCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateMessage(string threadId, MessageRole role, System.Collections.Generic.IEnumerable content, MessageCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateMessage(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateMessageAsync(string threadId, MessageRole role, System.Collections.Generic.IEnumerable content, MessageCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateMessageAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateRun(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateRun(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateRunAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateRunAsync(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateRunStreaming(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateRunStreamingAsync(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateThread(ThreadCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateThread(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateThreadAndRun(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateThreadAndRun(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateThreadAndRunAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateThreadAndRunAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateThreadAndRunStreaming(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateThreadAndRunStreamingAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateThreadAsync(ThreadCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateThreadAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteAssistant(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteAssistant(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAssistantAsync(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAssistantAsync(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteMessage(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteMessage(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteMessageAsync(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteMessageAsync(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteThread(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteThread(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteThreadAsync(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetAssistant(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetAssistant(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetAssistantAsync(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetAssistantAsync(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetAssistants(AssistantCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetAssistants(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetAssistantsAsync(AssistantCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetMessage(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetMessage(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetMessageAsync(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetMessageAsync(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetMessages(string threadId, MessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetMessages(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetMessagesAsync(string threadId, MessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetMessagesAsync(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRun(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRun(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetRunAsync(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunAsync(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetRuns(string threadId, RunCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetRuns(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetRunsAsync(string threadId, RunCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetRunsAsync(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRunStep(string threadId, string runId, string stepId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRunStep(string threadId, string runId, string stepId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetRunStepAsync(string threadId, string runId, string stepId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunStepAsync(string threadId, string runId, string stepId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetRunSteps(string threadId, string runId, RunStepCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetRunSteps(string threadId, string runId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, RunStepCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetThread(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetThread(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetThreadAsync(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyAssistant(string assistantId, AssistantModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyAssistant(string assistantId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyAssistantAsync(string assistantId, AssistantModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyAssistantAsync(string assistantId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyMessage(string threadId, string messageId, MessageModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyMessage(string threadId, string messageId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyMessageAsync(string threadId, string messageId, MessageModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyMessageAsync(string threadId, string messageId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyRun(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ModifyRunAsync(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyThread(string threadId, ThreadModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyThread(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyThreadAsync(string threadId, ThreadModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyThreadAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult SubmitToolOutputsToRun(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult SubmitToolOutputsToRun(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task SubmitToolOutputsToRunAsync(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> SubmitToolOutputsToRunAsync(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult SubmitToolOutputsToRunStreaming(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult SubmitToolOutputsToRunStreamingAsync(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class AssistantClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public AssistantCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual AssistantCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct AssistantCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AssistantCollectionOrder(string value) { } + public static AssistantCollectionOrder Ascending { get { throw null; } } + public static AssistantCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(AssistantCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AssistantCollectionOrder left, AssistantCollectionOrder right) { throw null; } + public static implicit operator AssistantCollectionOrder(string value) { throw null; } + public static implicit operator AssistantCollectionOrder?(string value) { throw null; } + public static bool operator !=(AssistantCollectionOrder left, AssistantCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Description { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolResources ToolResources { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + + protected virtual AssistantCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantDeletionResult() { } + public string AssistantId { get { throw null; } } + public bool Deleted { get { throw null; } } + + protected virtual AssistantDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AssistantDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual AssistantDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList DefaultTools { get { throw null; } } + public string Description { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual AssistantModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantResponseFormat : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantResponseFormat() { } + public static AssistantResponseFormat Auto { get { throw null; } } + public static AssistantResponseFormat JsonObject { get { throw null; } } + public static AssistantResponseFormat Text { get { throw null; } } + + public static AssistantResponseFormat CreateAutoFormat() { throw null; } + public static AssistantResponseFormat CreateJsonObjectFormat() { throw null; } + public static AssistantResponseFormat CreateJsonSchemaFormat(string name, System.BinaryData jsonSchema, string description = null, bool? strictSchemaEnabled = null) { throw null; } + public static AssistantResponseFormat CreateTextFormat() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + protected virtual AssistantResponseFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(AssistantResponseFormat first, AssistantResponseFormat second) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static implicit operator AssistantResponseFormat(string plainTextFormat) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(AssistantResponseFormat first, AssistantResponseFormat second) { throw null; } + protected virtual AssistantResponseFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantResponseFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantResponseFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + bool System.IEquatable.Equals(AssistantResponseFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + bool System.IEquatable.Equals(string other) { throw null; } + public override string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AssistantThread : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantThread() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + + protected virtual AssistantThread JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AssistantThread(System.ClientModel.ClientResult result) { throw null; } + protected virtual AssistantThread PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantThread System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantThread System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolDefinition() { } + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList FileIds { get { throw null; } } + + protected virtual CodeInterpreterToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FileSearchRanker : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileSearchRanker(string value) { } + public static FileSearchRanker Auto { get { throw null; } } + public static FileSearchRanker Default20240821 { get { throw null; } } + + public readonly bool Equals(FileSearchRanker other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileSearchRanker left, FileSearchRanker right) { throw null; } + public static implicit operator FileSearchRanker(string value) { throw null; } + public static implicit operator FileSearchRanker?(string value) { throw null; } + public static bool operator !=(FileSearchRanker left, FileSearchRanker right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchRankingOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchRankingOptions(float scoreThreshold) { } + public FileSearchRanker? Ranker { get { throw null; } set { } } + public float ScoreThreshold { get { throw null; } set { } } + + protected virtual FileSearchRankingOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchRankingOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchRankingOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchRankingOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchToolDefinition() { } + public int? MaxResults { get { throw null; } set { } } + public FileSearchRankingOptions RankingOptions { get { throw null; } set { } } + + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList NewVectorStores { get { throw null; } } + public System.Collections.Generic.IList VectorStoreIds { get { throw null; } } + + protected virtual FileSearchToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionToolDefinition() { } + public FunctionToolDefinition(string name) { } + public string Description { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } set { } } + public bool? StrictParameterSchemaEnabled { get { throw null; } set { } } + + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public MessageCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual MessageCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct MessageCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageCollectionOrder(string value) { } + public static MessageCollectionOrder Ascending { get { throw null; } } + public static MessageCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(MessageCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageCollectionOrder left, MessageCollectionOrder right) { throw null; } + public static implicit operator MessageCollectionOrder(string value) { throw null; } + public static implicit operator MessageCollectionOrder?(string value) { throw null; } + public static bool operator !=(MessageCollectionOrder left, MessageCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class MessageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageContent() { } + public MessageImageDetail? ImageDetail { get { throw null; } } + public string ImageFileId { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TextAnnotations { get { throw null; } } + + public static MessageContent FromImageFileId(string imageFileId, MessageImageDetail? detail = null) { throw null; } + public static MessageContent FromImageUri(System.Uri imageUri, MessageImageDetail? detail = null) { throw null; } + public static MessageContent FromText(string text) { throw null; } + protected virtual MessageContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator MessageContent(string value) { throw null; } + protected virtual MessageContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageContentUpdate : StreamingUpdate + { + internal MessageContentUpdate() { } + public MessageImageDetail? ImageDetail { get { throw null; } } + public string ImageFileId { get { throw null; } } + public string MessageId { get { throw null; } } + public int MessageIndex { get { throw null; } } + public string RefusalUpdate { get { throw null; } } + public MessageRole? Role { get { throw null; } } + public string Text { get { throw null; } } + public TextAnnotationUpdate TextAnnotation { get { throw null; } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageCreationAttachment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public MessageCreationAttachment(string fileId, System.Collections.Generic.IEnumerable tools) { } + public string FileId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + + protected virtual MessageCreationAttachment JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCreationAttachment PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCreationAttachment System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCreationAttachment System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Attachments { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual MessageCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageDeletionResult() { } + public bool Deleted { get { throw null; } } + public string MessageId { get { throw null; } } + + protected virtual MessageDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator MessageDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual MessageDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageFailureDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageFailureDetails() { } + public MessageFailureReason Reason { get { throw null; } } + + protected virtual MessageFailureDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageFailureDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageFailureDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageFailureDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct MessageFailureReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageFailureReason(string value) { } + public static MessageFailureReason ContentFilter { get { throw null; } } + public static MessageFailureReason MaxTokens { get { throw null; } } + public static MessageFailureReason RunCancelled { get { throw null; } } + public static MessageFailureReason RunExpired { get { throw null; } } + public static MessageFailureReason RunFailed { get { throw null; } } + + public readonly bool Equals(MessageFailureReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageFailureReason left, MessageFailureReason right) { throw null; } + public static implicit operator MessageFailureReason(string value) { throw null; } + public static implicit operator MessageFailureReason?(string value) { throw null; } + public static bool operator !=(MessageFailureReason left, MessageFailureReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageImageDetail + { Auto = 0, Low = 1, High = 2 } - [Experimental("OPENAI001")] - public class MessageModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - protected virtual MessageModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum MessageRole { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual MessageModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageRole + { User = 0, Assistant = 1 } - [Experimental("OPENAI001")] - public readonly partial struct MessageStatus : IEquatable { - public MessageStatus(string value); - public static MessageStatus Completed { get; } - public static MessageStatus Incomplete { get; } - public static MessageStatus InProgress { get; } - public readonly bool Equals(MessageStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageStatus left, MessageStatus right); - public static implicit operator MessageStatus(string value); - public static implicit operator MessageStatus?(string value); - public static bool operator !=(MessageStatus left, MessageStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class MessageStatusUpdate : StreamingUpdate { - } - [Experimental("OPENAI001")] - public abstract class RequiredAction { - public string FunctionArguments { get; } - public string FunctionName { get; } - public string ToolCallId { get; } - } - [Experimental("OPENAI001")] - public class RequiredActionUpdate : RunUpdate { - public string FunctionArguments { get; } - public string FunctionName { get; } - public string ToolCallId { get; } - public ThreadRun GetThreadRun(); - } - [Experimental("OPENAI001")] - public class RunCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public RunCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual RunCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunCollectionOrder : IEquatable { - public RunCollectionOrder(string value); - public static RunCollectionOrder Ascending { get; } - public static RunCollectionOrder Descending { get; } - public readonly bool Equals(RunCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunCollectionOrder left, RunCollectionOrder right); - public static implicit operator RunCollectionOrder(string value); - public static implicit operator RunCollectionOrder?(string value); - public static bool operator !=(RunCollectionOrder left, RunCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunCreationOptions : IJsonModel, IPersistableModel { - public string AdditionalInstructions { get; set; } - public IList AdditionalMessages { get; } - public bool? AllowParallelToolCalls { get; set; } - public string InstructionsOverride { get; set; } - public int? MaxInputTokenCount { get; set; } - public int? MaxOutputTokenCount { get; set; } - public IDictionary Metadata { get; } - public string ModelOverride { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolConstraint ToolConstraint { get; set; } - public IList ToolsOverride { get; } - public RunTruncationStrategy TruncationStrategy { get; set; } - protected virtual RunCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunError : IJsonModel, IPersistableModel { - public RunErrorCode Code { get; } - public string Message { get; } - protected virtual RunError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunErrorCode : IEquatable { - public RunErrorCode(string value); - public static RunErrorCode InvalidPrompt { get; } - public static RunErrorCode RateLimitExceeded { get; } - public static RunErrorCode ServerError { get; } - public readonly bool Equals(RunErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunErrorCode left, RunErrorCode right); - public static implicit operator RunErrorCode(string value); - public static implicit operator RunErrorCode?(string value); - public static bool operator !=(RunErrorCode left, RunErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunIncompleteDetails : IJsonModel, IPersistableModel { - public RunIncompleteReason? Reason { get; } - protected virtual RunIncompleteDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunIncompleteDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunIncompleteReason : IEquatable { - public RunIncompleteReason(string value); - public static RunIncompleteReason MaxInputTokenCount { get; } - public static RunIncompleteReason MaxOutputTokenCount { get; } - public readonly bool Equals(RunIncompleteReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right); - public static implicit operator RunIncompleteReason(string value); - public static implicit operator RunIncompleteReason?(string value); - public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - protected virtual RunModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunStatus : IEquatable { - public RunStatus(string value); - public static RunStatus Cancelled { get; } - public static RunStatus Cancelling { get; } - public static RunStatus Completed { get; } - public static RunStatus Expired { get; } - public static RunStatus Failed { get; } - public static RunStatus Incomplete { get; } - public static RunStatus InProgress { get; } - public bool IsTerminal { get; } - public static RunStatus Queued { get; } - public static RunStatus RequiresAction { get; } - public readonly bool Equals(RunStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStatus left, RunStatus right); - public static implicit operator RunStatus(string value); - public static implicit operator RunStatus?(string value); - public static bool operator !=(RunStatus left, RunStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunStep : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CompletedAt { get; } - public DateTimeOffset CreatedAt { get; } - public RunStepDetails Details { get; } - public DateTimeOffset? ExpiredAt { get; } - public DateTimeOffset? FailedAt { get; } - public string Id { get; } - public RunStepKind Kind { get; } - public RunStepError LastError { get; } - public IReadOnlyDictionary Metadata { get; } - public string RunId { get; } - public RunStepStatus Status { get; } - public string ThreadId { get; } - public RunStepTokenUsage Usage { get; } - protected virtual RunStep JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RunStep(ClientResult result); - protected virtual RunStep PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public abstract class RunStepCodeInterpreterOutput : IJsonModel, IPersistableModel { - public string ImageFileId { get; } - public string Logs { get; } - protected virtual RunStepCodeInterpreterOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepCodeInterpreterOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public RunStepCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual RunStepCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunStepCollectionOrder : IEquatable { - public RunStepCollectionOrder(string value); - public static RunStepCollectionOrder Ascending { get; } - public static RunStepCollectionOrder Descending { get; } - public readonly bool Equals(RunStepCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepCollectionOrder left, RunStepCollectionOrder right); - public static implicit operator RunStepCollectionOrder(string value); - public static implicit operator RunStepCollectionOrder?(string value); - public static bool operator !=(RunStepCollectionOrder left, RunStepCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public abstract class RunStepDetails : IJsonModel, IPersistableModel { - public string CreatedMessageId { get; } - public IReadOnlyList ToolCalls { get; } - protected virtual RunStepDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepDetailsUpdate : StreamingUpdate { - public string CodeInterpreterInput { get; } - public IReadOnlyList CodeInterpreterOutputs { get; } - public string CreatedMessageId { get; } - public FileSearchRankingOptions FileSearchRankingOptions { get; } - public IReadOnlyList FileSearchResults { get; } - public string FunctionArguments { get; } - public string FunctionName { get; } - public string FunctionOutput { get; } - public string StepId { get; } - public string ToolCallId { get; } - public int? ToolCallIndex { get; } - } - [Experimental("OPENAI001")] - public class RunStepError : IJsonModel, IPersistableModel { - public RunStepErrorCode Code { get; } - public string Message { get; } - protected virtual RunStepError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct RunStepErrorCode : IEquatable { - public RunStepErrorCode(string value); - public static RunStepErrorCode RateLimitExceeded { get; } - public static RunStepErrorCode ServerError { get; } - public readonly bool Equals(RunStepErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepErrorCode left, RunStepErrorCode right); - public static implicit operator RunStepErrorCode(string value); - public static implicit operator RunStepErrorCode?(string value); - public static bool operator !=(RunStepErrorCode left, RunStepErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunStepFileSearchResult : IJsonModel, IPersistableModel { - public IReadOnlyList Content { get; } - public string FileId { get; } - public string FileName { get; } - public float Score { get; } - protected virtual RunStepFileSearchResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepFileSearchResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepFileSearchResultContent : IJsonModel, IPersistableModel { - public RunStepFileSearchResultContentKind Kind { get; } - public string Text { get; } - protected virtual RunStepFileSearchResultContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepFileSearchResultContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum RunStepFileSearchResultContentKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct MessageStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageStatus(string value) { } + public static MessageStatus Completed { get { throw null; } } + public static MessageStatus Incomplete { get { throw null; } } + public static MessageStatus InProgress { get { throw null; } } + + public readonly bool Equals(MessageStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageStatus left, MessageStatus right) { throw null; } + public static implicit operator MessageStatus(string value) { throw null; } + public static implicit operator MessageStatus?(string value) { throw null; } + public static bool operator !=(MessageStatus left, MessageStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageStatusUpdate : StreamingUpdate + { + internal MessageStatusUpdate() { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class RequiredAction + { + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ToolCallId { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RequiredActionUpdate : RunUpdate + { + internal RequiredActionUpdate() { } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ToolCallId { get { throw null; } } + + public ThreadRun GetThreadRun() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public RunCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual RunCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunCollectionOrder(string value) { } + public static RunCollectionOrder Ascending { get { throw null; } } + public static RunCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(RunCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunCollectionOrder left, RunCollectionOrder right) { throw null; } + public static implicit operator RunCollectionOrder(string value) { throw null; } + public static implicit operator RunCollectionOrder?(string value) { throw null; } + public static bool operator !=(RunCollectionOrder left, RunCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AdditionalInstructions { get { throw null; } set { } } + public System.Collections.Generic.IList AdditionalMessages { get { throw null; } } + public bool? AllowParallelToolCalls { get { throw null; } set { } } + public string InstructionsOverride { get { throw null; } set { } } + public int? MaxInputTokenCount { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string ModelOverride { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolConstraint ToolConstraint { get { throw null; } set { } } + public System.Collections.Generic.IList ToolsOverride { get { throw null; } } + public RunTruncationStrategy TruncationStrategy { get { throw null; } set { } } + + protected virtual RunCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunError() { } + public RunErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual RunError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunErrorCode(string value) { } + public static RunErrorCode InvalidPrompt { get { throw null; } } + public static RunErrorCode RateLimitExceeded { get { throw null; } } + public static RunErrorCode ServerError { get { throw null; } } + + public readonly bool Equals(RunErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunErrorCode left, RunErrorCode right) { throw null; } + public static implicit operator RunErrorCode(string value) { throw null; } + public static implicit operator RunErrorCode?(string value) { throw null; } + public static bool operator !=(RunErrorCode left, RunErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunIncompleteDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunIncompleteDetails() { } + public RunIncompleteReason? Reason { get { throw null; } } + + protected virtual RunIncompleteDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunIncompleteDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunIncompleteDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunIncompleteDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunIncompleteReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunIncompleteReason(string value) { } + public static RunIncompleteReason MaxInputTokenCount { get { throw null; } } + public static RunIncompleteReason MaxOutputTokenCount { get { throw null; } } + + public readonly bool Equals(RunIncompleteReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right) { throw null; } + public static implicit operator RunIncompleteReason(string value) { throw null; } + public static implicit operator RunIncompleteReason?(string value) { throw null; } + public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual RunModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStatus(string value) { } + public static RunStatus Cancelled { get { throw null; } } + public static RunStatus Cancelling { get { throw null; } } + public static RunStatus Completed { get { throw null; } } + public static RunStatus Expired { get { throw null; } } + public static RunStatus Failed { get { throw null; } } + public static RunStatus Incomplete { get { throw null; } } + public static RunStatus InProgress { get { throw null; } } + public bool IsTerminal { get { throw null; } } + public static RunStatus Queued { get { throw null; } } + public static RunStatus RequiresAction { get { throw null; } } + + public readonly bool Equals(RunStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStatus left, RunStatus right) { throw null; } + public static implicit operator RunStatus(string value) { throw null; } + public static implicit operator RunStatus?(string value) { throw null; } + public static bool operator !=(RunStatus left, RunStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStep : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStep() { } + public string AssistantId { get { throw null; } } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public RunStepDetails Details { get { throw null; } } + public System.DateTimeOffset? ExpiredAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public string Id { get { throw null; } } + public RunStepKind Kind { get { throw null; } } + public RunStepError LastError { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string RunId { get { throw null; } } + public RunStepStatus Status { get { throw null; } } + public string ThreadId { get { throw null; } } + public RunStepTokenUsage Usage { get { throw null; } } + + protected virtual RunStep JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RunStep(System.ClientModel.ClientResult result) { throw null; } + protected virtual RunStep PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStep System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStep System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class RunStepCodeInterpreterOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepCodeInterpreterOutput() { } + public string ImageFileId { get { throw null; } } + public string Logs { get { throw null; } } + + protected virtual RunStepCodeInterpreterOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepCodeInterpreterOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepCodeInterpreterOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepCodeInterpreterOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public RunStepCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual RunStepCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStepCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepCollectionOrder(string value) { } + public static RunStepCollectionOrder Ascending { get { throw null; } } + public static RunStepCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(RunStepCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepCollectionOrder left, RunStepCollectionOrder right) { throw null; } + public static implicit operator RunStepCollectionOrder(string value) { throw null; } + public static implicit operator RunStepCollectionOrder?(string value) { throw null; } + public static bool operator !=(RunStepCollectionOrder left, RunStepCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class RunStepDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepDetails() { } + public string CreatedMessageId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + + protected virtual RunStepDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepDetailsUpdate : StreamingUpdate + { + internal RunStepDetailsUpdate() { } + public string CodeInterpreterInput { get { throw null; } } + public System.Collections.Generic.IReadOnlyList CodeInterpreterOutputs { get { throw null; } } + public string CreatedMessageId { get { throw null; } } + public FileSearchRankingOptions FileSearchRankingOptions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FileSearchResults { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string FunctionOutput { get { throw null; } } + public string StepId { get { throw null; } } + public string ToolCallId { get { throw null; } } + public int? ToolCallIndex { get { throw null; } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepError() { } + public RunStepErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual RunStepError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStepErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepErrorCode(string value) { } + public static RunStepErrorCode RateLimitExceeded { get { throw null; } } + public static RunStepErrorCode ServerError { get { throw null; } } + + public readonly bool Equals(RunStepErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepErrorCode left, RunStepErrorCode right) { throw null; } + public static implicit operator RunStepErrorCode(string value) { throw null; } + public static implicit operator RunStepErrorCode?(string value) { throw null; } + public static bool operator !=(RunStepErrorCode left, RunStepErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepFileSearchResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepFileSearchResult() { } + public System.Collections.Generic.IReadOnlyList Content { get { throw null; } } + public string FileId { get { throw null; } } + public string FileName { get { throw null; } } + public float Score { get { throw null; } } + + protected virtual RunStepFileSearchResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepFileSearchResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepFileSearchResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepFileSearchResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepFileSearchResultContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepFileSearchResultContent() { } + public RunStepFileSearchResultContentKind Kind { get { throw null; } } + public string Text { get { throw null; } } + + protected virtual RunStepFileSearchResultContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepFileSearchResultContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepFileSearchResultContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepFileSearchResultContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum RunStepFileSearchResultContentKind + { Text = 0 } - [Experimental("OPENAI001")] - public enum RunStepKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum RunStepKind + { CreatedMessage = 0, ToolCall = 1 } - [Experimental("OPENAI001")] - public readonly partial struct RunStepStatus : IEquatable { - public RunStepStatus(string value); - public static RunStepStatus Cancelled { get; } - public static RunStepStatus Completed { get; } - public static RunStepStatus Expired { get; } - public static RunStepStatus Failed { get; } - public static RunStepStatus InProgress { get; } - public readonly bool Equals(RunStepStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepStatus left, RunStepStatus right); - public static implicit operator RunStepStatus(string value); - public static implicit operator RunStepStatus?(string value); - public static bool operator !=(RunStepStatus left, RunStepStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunStepTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public int OutputTokenCount { get; } - public int TotalTokenCount { get; } - protected virtual RunStepTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunStepToolCall : IJsonModel, IPersistableModel { - public string CodeInterpreterInput { get; } - public IReadOnlyList CodeInterpreterOutputs { get; } - public FileSearchRankingOptions FileSearchRankingOptions { get; } - public IReadOnlyList FileSearchResults { get; } - public string FunctionArguments { get; } - public string FunctionName { get; } - public string FunctionOutput { get; } - public string Id { get; } - public RunStepToolCallKind Kind { get; } - protected virtual RunStepToolCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepToolCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum RunStepToolCallKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct RunStepStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepStatus(string value) { } + public static RunStepStatus Cancelled { get { throw null; } } + public static RunStepStatus Completed { get { throw null; } } + public static RunStepStatus Expired { get { throw null; } } + public static RunStepStatus Failed { get { throw null; } } + public static RunStepStatus InProgress { get { throw null; } } + + public readonly bool Equals(RunStepStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepStatus left, RunStepStatus right) { throw null; } + public static implicit operator RunStepStatus(string value) { throw null; } + public static implicit operator RunStepStatus?(string value) { throw null; } + public static bool operator !=(RunStepStatus left, RunStepStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual RunStepTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepToolCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepToolCall() { } + public string CodeInterpreterInput { get { throw null; } } + public System.Collections.Generic.IReadOnlyList CodeInterpreterOutputs { get { throw null; } } + public FileSearchRankingOptions FileSearchRankingOptions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FileSearchResults { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string FunctionOutput { get { throw null; } } + public string Id { get { throw null; } } + public RunStepToolCallKind Kind { get { throw null; } } + + protected virtual RunStepToolCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepToolCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepToolCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepToolCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum RunStepToolCallKind + { CodeInterpreter = 0, FileSearch = 1, Function = 2 } - [Experimental("OPENAI001")] - public class RunStepUpdate : StreamingUpdate { - } - [Experimental("OPENAI001")] - public class RunStepUpdateCodeInterpreterOutput : IJsonModel, IPersistableModel { - public string ImageFileId { get; } - public string Logs { get; } - public int OutputIndex { get; } - protected virtual RunStepUpdateCodeInterpreterOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepUpdateCodeInterpreterOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public int OutputTokenCount { get; } - public int TotalTokenCount { get; } - protected virtual RunTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunTruncationStrategy : IJsonModel, IPersistableModel { - public static RunTruncationStrategy Auto { get; } - public int? LastMessages { get; } - public static RunTruncationStrategy CreateLastMessagesStrategy(int lastMessageCount); - protected virtual RunTruncationStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunTruncationStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunUpdate : StreamingUpdate { - } - [Experimental("OPENAI001")] - public abstract class StreamingUpdate { - public StreamingUpdateReason UpdateKind { get; } - } - [Experimental("OPENAI001")] - public enum StreamingUpdateReason { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepUpdate : StreamingUpdate + { + internal RunStepUpdate() { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunStepUpdateCodeInterpreterOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepUpdateCodeInterpreterOutput() { } + public string ImageFileId { get { throw null; } } + public string Logs { get { throw null; } } + public int OutputIndex { get { throw null; } } + + protected virtual RunStepUpdateCodeInterpreterOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepUpdateCodeInterpreterOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepUpdateCodeInterpreterOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepUpdateCodeInterpreterOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual RunTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunTruncationStrategy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunTruncationStrategy() { } + public static RunTruncationStrategy Auto { get { throw null; } } + public int? LastMessages { get { throw null; } } + + public static RunTruncationStrategy CreateLastMessagesStrategy(int lastMessageCount) { throw null; } + protected virtual RunTruncationStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunTruncationStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunTruncationStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunTruncationStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunUpdate : StreamingUpdate + { + internal RunUpdate() { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class StreamingUpdate + { + internal StreamingUpdate() { } + public StreamingUpdateReason UpdateKind { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum StreamingUpdateReason + { Unknown = 0, ThreadCreated = 1, RunCreated = 2, @@ -926,1072 +1687,1574 @@ public enum StreamingUpdateReason { Error = 24, Done = 25 } - [Experimental("OPENAI001")] - public class StreamingUpdate : StreamingUpdate where T : class { - public T Value { get; } - public static implicit operator T(StreamingUpdate update); - } - [Experimental("OPENAI001")] - public class TextAnnotation { - public int EndIndex { get; } - public string InputFileId { get; } - public string OutputFileId { get; } - public int StartIndex { get; } - public string TextToReplace { get; } - } - [Experimental("OPENAI001")] - public class TextAnnotationUpdate { - public int ContentIndex { get; } - public int? EndIndex { get; } - public string InputFileId { get; } - public string OutputFileId { get; } - public int? StartIndex { get; } - public string TextToReplace { get; } - } - [Experimental("OPENAI001")] - public class ThreadCreationOptions : IJsonModel, IPersistableModel { - public IList InitialMessages { get; } - public IDictionary Metadata { get; } - public ToolResources ToolResources { get; set; } - protected virtual ThreadCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ThreadCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string ThreadId { get; } - protected virtual ThreadDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadDeletionResult(ClientResult result); - protected virtual ThreadDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadInitializationMessage : MessageCreationOptions { - public ThreadInitializationMessage(MessageRole role, IEnumerable content); - public static implicit operator ThreadInitializationMessage(string initializationMessage); - } - [Experimental("OPENAI001")] - public class ThreadMessage : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public IReadOnlyList Attachments { get; } - public DateTimeOffset? CompletedAt { get; } - public IReadOnlyList Content { get; } - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public DateTimeOffset? IncompleteAt { get; } - public MessageFailureDetails IncompleteDetails { get; } - public IReadOnlyDictionary Metadata { get; } - public MessageRole Role { get; } - public string RunId { get; } - public MessageStatus Status { get; } - public string ThreadId { get; } - protected virtual ThreadMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadMessage(ClientResult result); - protected virtual ThreadMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - public ToolResources ToolResources { get; set; } - protected virtual ThreadModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ThreadModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadRun : IJsonModel, IPersistableModel { - public bool? AllowParallelToolCalls { get; } - public string AssistantId { get; } - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CompletedAt { get; } - public DateTimeOffset CreatedAt { get; } - public DateTimeOffset? ExpiresAt { get; } - public DateTimeOffset? FailedAt { get; } - public string Id { get; } - public RunIncompleteDetails IncompleteDetails { get; } - public string Instructions { get; } - public RunError LastError { get; } - public int? MaxInputTokenCount { get; } - public int? MaxOutputTokenCount { get; } - public IReadOnlyDictionary Metadata { get; } - public string Model { get; } - public float? NucleusSamplingFactor { get; } - public IReadOnlyList RequiredActions { get; } - public AssistantResponseFormat ResponseFormat { get; } - public DateTimeOffset? StartedAt { get; } - public RunStatus Status { get; } - public float? Temperature { get; } - public string ThreadId { get; } - public ToolConstraint ToolConstraint { get; } - public IReadOnlyList Tools { get; } - public RunTruncationStrategy TruncationStrategy { get; } - public RunTokenUsage Usage { get; } - protected virtual ThreadRun JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadRun(ClientResult result); - protected virtual ThreadRun PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ThreadUpdate : StreamingUpdate { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public IReadOnlyDictionary Metadata { get; } - public ToolResources ToolResources { get; } - } - [Experimental("OPENAI001")] - public class ToolConstraint : IJsonModel, IPersistableModel { - public ToolConstraint(ToolDefinition toolDefinition); - public static ToolConstraint Auto { get; } - public static ToolConstraint None { get; } - public static ToolConstraint Required { get; } - protected virtual ToolConstraint JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolConstraint PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ToolDefinition : IJsonModel, IPersistableModel { - public static CodeInterpreterToolDefinition CreateCodeInterpreter(); - public static FileSearchToolDefinition CreateFileSearch(int? maxResults = null); - public static FunctionToolDefinition CreateFunction(string name, string description = null, BinaryData parameters = null, bool? strictParameterSchemaEnabled = null); - protected virtual ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ToolOutput : IJsonModel, IPersistableModel { - public ToolOutput(); - public ToolOutput(string toolCallId, string output); - public string Output { get; set; } - public string ToolCallId { get; set; } - protected virtual ToolOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ToolResources : IJsonModel, IPersistableModel { - public CodeInterpreterToolResources CodeInterpreter { get; set; } - public FileSearchToolResources FileSearch { get; set; } - protected virtual ToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreCreationHelper : IJsonModel, IPersistableModel { - public VectorStoreCreationHelper(); - public VectorStoreCreationHelper(IEnumerable files); - public VectorStoreCreationHelper(IEnumerable fileIds); - public FileChunkingStrategy ChunkingStrategy { get; set; } - public IList FileIds { get; } - public IDictionary Metadata { get; } - protected virtual VectorStoreCreationHelper JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCreationHelper PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingUpdate : StreamingUpdate where T : class + { + internal StreamingUpdate() { } + public T Value { get { throw null; } } + + public static implicit operator T(StreamingUpdate update) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class TextAnnotation + { + internal TextAnnotation() { } + public int EndIndex { get { throw null; } } + public string InputFileId { get { throw null; } } + public string OutputFileId { get { throw null; } } + public int StartIndex { get { throw null; } } + public string TextToReplace { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class TextAnnotationUpdate + { + internal TextAnnotationUpdate() { } + public int ContentIndex { get { throw null; } } + public int? EndIndex { get { throw null; } } + public string InputFileId { get { throw null; } } + public string OutputFileId { get { throw null; } } + public int? StartIndex { get { throw null; } } + public string TextToReplace { get { throw null; } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList InitialMessages { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual ThreadCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ThreadCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadDeletionResult() { } + public bool Deleted { get { throw null; } } + public string ThreadId { get { throw null; } } + + protected virtual ThreadDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadInitializationMessage : MessageCreationOptions + { + public ThreadInitializationMessage(MessageRole role, System.Collections.Generic.IEnumerable content) { } + public static implicit operator ThreadInitializationMessage(string initializationMessage) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadMessage() { } + public string AssistantId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Attachments { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Content { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? IncompleteAt { get { throw null; } } + public MessageFailureDetails IncompleteDetails { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public MessageRole Role { get { throw null; } } + public string RunId { get { throw null; } } + public MessageStatus Status { get { throw null; } } + public string ThreadId { get { throw null; } } + + protected virtual ThreadMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadMessage(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual ThreadModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ThreadModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadRun : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadRun() { } + public bool? AllowParallelToolCalls { get { throw null; } } + public string AssistantId { get { throw null; } } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public string Id { get { throw null; } } + public RunIncompleteDetails IncompleteDetails { get { throw null; } } + public string Instructions { get { throw null; } } + public RunError LastError { get { throw null; } } + public int? MaxInputTokenCount { get { throw null; } } + public int? MaxOutputTokenCount { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } } + public float? NucleusSamplingFactor { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredActions { get { throw null; } } + public AssistantResponseFormat ResponseFormat { get { throw null; } } + public System.DateTimeOffset? StartedAt { get { throw null; } } + public RunStatus Status { get { throw null; } } + public float? Temperature { get { throw null; } } + public string ThreadId { get { throw null; } } + public ToolConstraint ToolConstraint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public RunTruncationStrategy TruncationStrategy { get { throw null; } } + public RunTokenUsage Usage { get { throw null; } } + + protected virtual ThreadRun JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadRun(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadRun PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadRun System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadRun System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ThreadUpdate : StreamingUpdate + { + internal ThreadUpdate() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolConstraint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolConstraint(ToolDefinition toolDefinition) { } + public static ToolConstraint Auto { get { throw null; } } + public static ToolConstraint None { get { throw null; } } + public static ToolConstraint Required { get { throw null; } } + + protected virtual ToolConstraint JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolConstraint PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolConstraint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolConstraint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ToolDefinition() { } + public static CodeInterpreterToolDefinition CreateCodeInterpreter() { throw null; } + public static FileSearchToolDefinition CreateFileSearch(int? maxResults = null) { throw null; } + public static FunctionToolDefinition CreateFunction(string name, string description = null, System.BinaryData parameters = null, bool? strictParameterSchemaEnabled = null) { throw null; } + protected virtual ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolOutput() { } + public ToolOutput(string toolCallId, string output) { } + public string Output { get { throw null; } set { } } + public string ToolCallId { get { throw null; } set { } } + + protected virtual ToolOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolResources CodeInterpreter { get { throw null; } set { } } + public FileSearchToolResources FileSearch { get { throw null; } set { } } + + protected virtual ToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreCreationHelper : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreCreationHelper() { } + public VectorStoreCreationHelper(System.Collections.Generic.IEnumerable files) { } + public VectorStoreCreationHelper(System.Collections.Generic.IEnumerable fileIds) { } + public VectorStores.FileChunkingStrategy ChunkingStrategy { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual VectorStoreCreationHelper JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCreationHelper PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCreationHelper System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCreationHelper System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Audio { - public class AudioClient { - protected AudioClient(); - protected internal AudioClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public AudioClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public AudioClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public AudioClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public AudioClient(string model, AuthenticationPolicy authenticationPolicy); - public AudioClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateSpeech(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateSpeech(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateSpeechAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateSpeechAsync(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranscribeAudio(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult TranscribeAudio(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranscribeAudio(string audioFilePath, AudioTranscriptionOptions options = null); - public virtual Task TranscribeAudioAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> TranscribeAudioAsync(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> TranscribeAudioAsync(string audioFilePath, AudioTranscriptionOptions options = null); - [Experimental("OPENAI001")] - public virtual CollectionResult TranscribeAudioStreaming(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult TranscribeAudioStreaming(string audioFilePath, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult TranscribeAudioStreamingAsync(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult TranscribeAudioStreamingAsync(string audioFilePath, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranslateAudio(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult TranslateAudio(Stream audio, string audioFilename, AudioTranslationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranslateAudio(string audioFilePath, AudioTranslationOptions options = null); - public virtual Task TranslateAudioAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> TranslateAudioAsync(Stream audio, string audioFilename, AudioTranslationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> TranslateAudioAsync(string audioFilePath, AudioTranslationOptions options = null); - } - [Flags] - public enum AudioTimestampGranularities { + +namespace OpenAI.Audio +{ + public partial class AudioClient + { + protected AudioClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public AudioClient(AudioClientSettings settings) { } + protected internal AudioClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public AudioClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public AudioClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AudioClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AudioClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public AudioClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateSpeech(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateSpeech(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateSpeechAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateSpeechAsync(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(string audioFilePath, AudioTranscriptionOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task TranscribeAudioAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> TranscribeAudioAsync(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> TranscribeAudioAsync(string audioFilePath, AudioTranscriptionOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult TranscribeAudioStreaming(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult TranscribeAudioStreaming(string audioFilePath, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult TranscribeAudioStreamingAsync(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult TranscribeAudioStreamingAsync(string audioFilePath, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(System.IO.Stream audio, string audioFilename, AudioTranslationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(string audioFilePath, AudioTranslationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task TranslateAudioAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> TranslateAudioAsync(System.IO.Stream audio, string audioFilename, AudioTranslationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> TranslateAudioAsync(string audioFilePath, AudioTranslationOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class AudioClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Flags] + public enum AudioTimestampGranularities + { Default = 0, Word = 1, Segment = 2 } - [Experimental("OPENAI001")] - public class AudioTokenLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - public string Token { get; } - public ReadOnlyMemory Utf8Bytes { get; } - protected virtual AudioTokenLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AudioTokenLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AudioTranscription : IJsonModel, IPersistableModel { - public TimeSpan? Duration { get; } - public string Language { get; } - public IReadOnlyList Segments { get; } - public string Text { get; } - [Experimental("OPENAI001")] - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - public IReadOnlyList Words { get; } - [Experimental("OPENAI001")] - protected virtual AudioTranscription JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator AudioTranscription(ClientResult result); - [Experimental("OPENAI001")] - protected virtual AudioTranscription PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct AudioTranscriptionFormat : IEquatable { - public AudioTranscriptionFormat(string value); - public static AudioTranscriptionFormat Simple { get; } - public static AudioTranscriptionFormat Srt { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranscriptionFormat Text { get; } - public static AudioTranscriptionFormat Verbose { get; } - public static AudioTranscriptionFormat Vtt { get; } - public readonly bool Equals(AudioTranscriptionFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right); - public static implicit operator AudioTranscriptionFormat(string value); - public static implicit operator AudioTranscriptionFormat?(string value); - public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - [Flags] - public enum AudioTranscriptionIncludes { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AudioTokenLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTokenLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + public string Token { get { throw null; } } + public System.ReadOnlyMemory Utf8Bytes { get { throw null; } } + + protected virtual AudioTokenLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AudioTokenLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTokenLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTokenLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AudioTranscription : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTranscription() { } + public System.TimeSpan? Duration { get { throw null; } } + public string Language { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Segments { get { throw null; } } + public string Text { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Words { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscription JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator AudioTranscription(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscription PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranscription System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranscription System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct AudioTranscriptionFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AudioTranscriptionFormat(string value) { } + public static AudioTranscriptionFormat Simple { get { throw null; } } + public static AudioTranscriptionFormat Srt { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranscriptionFormat Text { get { throw null; } } + public static AudioTranscriptionFormat Verbose { get { throw null; } } + public static AudioTranscriptionFormat Vtt { get { throw null; } } + + public readonly bool Equals(AudioTranscriptionFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right) { throw null; } + public static implicit operator AudioTranscriptionFormat(string value) { throw null; } + public static implicit operator AudioTranscriptionFormat?(string value) { throw null; } + public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.Flags] + public enum AudioTranscriptionIncludes + { Default = 0, Logprobs = 1 } - public class AudioTranscriptionOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public AudioTranscriptionIncludes Includes { get; set; } - public string Language { get; set; } - public string Prompt { get; set; } - public AudioTranscriptionFormat? ResponseFormat { get; set; } - public float? Temperature { get; set; } - public AudioTimestampGranularities TimestampGranularities { get; set; } - [Experimental("OPENAI001")] - protected virtual AudioTranscriptionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual AudioTranscriptionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AudioTranslation : IJsonModel, IPersistableModel { - public TimeSpan? Duration { get; } - public string Language { get; } - public IReadOnlyList Segments { get; } - public string Text { get; } - [Experimental("OPENAI001")] - protected virtual AudioTranslation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator AudioTranslation(ClientResult result); - [Experimental("OPENAI001")] - protected virtual AudioTranslation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct AudioTranslationFormat : IEquatable { - public AudioTranslationFormat(string value); - public static AudioTranslationFormat Simple { get; } - public static AudioTranslationFormat Srt { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranslationFormat Text { get; } - public static AudioTranslationFormat Verbose { get; } - public static AudioTranslationFormat Vtt { get; } - public readonly bool Equals(AudioTranslationFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right); - public static implicit operator AudioTranslationFormat(string value); - public static implicit operator AudioTranslationFormat?(string value); - public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right); - public override readonly string ToString(); - } - public class AudioTranslationOptions : IJsonModel, IPersistableModel { - public string Prompt { get; set; } - public AudioTranslationFormat? ResponseFormat { get; set; } - public float? Temperature { get; set; } - [Experimental("OPENAI001")] - protected virtual AudioTranslationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual AudioTranslationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GeneratedSpeechFormat : IEquatable { - public GeneratedSpeechFormat(string value); - public static GeneratedSpeechFormat Aac { get; } - public static GeneratedSpeechFormat Flac { get; } - public static GeneratedSpeechFormat Mp3 { get; } - public static GeneratedSpeechFormat Opus { get; } - public static GeneratedSpeechFormat Pcm { get; } - public static GeneratedSpeechFormat Wav { get; } - public readonly bool Equals(GeneratedSpeechFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right); - public static implicit operator GeneratedSpeechFormat(string value); - public static implicit operator GeneratedSpeechFormat?(string value); - public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedSpeechVoice : IEquatable { - public GeneratedSpeechVoice(string value); - public static GeneratedSpeechVoice Alloy { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Ash { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Ballad { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Coral { get; } - public static GeneratedSpeechVoice Echo { get; } - public static GeneratedSpeechVoice Fable { get; } - public static GeneratedSpeechVoice Nova { get; } - public static GeneratedSpeechVoice Onyx { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Sage { get; } - public static GeneratedSpeechVoice Shimmer { get; } - [Experimental("OPENAI001")] - public static GeneratedSpeechVoice Verse { get; } - public readonly bool Equals(GeneratedSpeechVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right); - public static implicit operator GeneratedSpeechVoice(string value); - public static implicit operator GeneratedSpeechVoice?(string value); - public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right); - public override readonly string ToString(); - } - public static class OpenAIAudioModelFactory { - [Experimental("OPENAI001")] - public static AudioTranscription AudioTranscription(string language = null, TimeSpan? duration = null, string text = null, IEnumerable words = null, IEnumerable segments = null, IEnumerable transcriptionTokenLogProbabilities = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranscription AudioTranscription(string language, TimeSpan? duration, string text, IEnumerable words, IEnumerable segments); - public static AudioTranslation AudioTranslation(string language = null, TimeSpan? duration = null, string text = null, IEnumerable segments = null); - public static TranscribedSegment TranscribedSegment(int id = 0, int seekOffset = 0, TimeSpan startTime = default, TimeSpan endTime = default, string text = null, ReadOnlyMemory tokenIds = default, float temperature = 0, float averageLogProbability = 0, float compressionRatio = 0, float noSpeechProbability = 0); - public static TranscribedWord TranscribedWord(string word = null, TimeSpan startTime = default, TimeSpan endTime = default); - } - public class SpeechGenerationOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public string Instructions { get; set; } - public GeneratedSpeechFormat? ResponseFormat { get; set; } - public float? SpeedRatio { get; set; } - [Experimental("OPENAI001")] - protected virtual SpeechGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual SpeechGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public string Delta { get; } - public string SegmentId { get; } - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public string Text { get; } - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionTextSegmentUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public TimeSpan EndTime { get; } - public string SegmentId { get; } - public string SpeakerLabel { get; } - public TimeSpan StartTime { get; } - public string Text { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingAudioTranscriptionUpdate : IJsonModel, IPersistableModel { - protected virtual StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct StreamingAudioTranscriptionUpdateKind : IEquatable { - public StreamingAudioTranscriptionUpdateKind(string value); - public static StreamingAudioTranscriptionUpdateKind TranscriptTextDelta { get; } - public static StreamingAudioTranscriptionUpdateKind TranscriptTextDone { get; } - public static StreamingAudioTranscriptionUpdateKind TranscriptTextSegment { get; } - public readonly bool Equals(StreamingAudioTranscriptionUpdateKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right); - public static implicit operator StreamingAudioTranscriptionUpdateKind(string value); - public static implicit operator StreamingAudioTranscriptionUpdateKind?(string value); - public static bool operator !=(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right); - public override readonly string ToString(); - } - public readonly partial struct TranscribedSegment : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public float AverageLogProbability { get; } - public float CompressionRatio { get; } - public TimeSpan EndTime { get; } - public int Id { get; } - public float NoSpeechProbability { get; } - public int SeekOffset { get; } - public TimeSpan StartTime { get; } - public float Temperature { get; } - public string Text { get; } - public ReadOnlyMemory TokenIds { get; } - } - public readonly partial struct TranscribedWord : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public TimeSpan EndTime { get; } - public TimeSpan StartTime { get; } - public string Word { get; } + + public partial class AudioTranscriptionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AudioTranscriptionIncludes Includes { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Prompt { get { throw null; } set { } } + public AudioTranscriptionFormat? ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public AudioTimestampGranularities TimestampGranularities { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscriptionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranscriptionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranscriptionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranscriptionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AudioTranslation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTranslation() { } + public System.TimeSpan? Duration { get { throw null; } } + public string Language { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Segments { get { throw null; } } + public string Text { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator AudioTranslation(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranslation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranslation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct AudioTranslationFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AudioTranslationFormat(string value) { } + public static AudioTranslationFormat Simple { get { throw null; } } + public static AudioTranslationFormat Srt { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranslationFormat Text { get { throw null; } } + public static AudioTranslationFormat Verbose { get { throw null; } } + public static AudioTranslationFormat Vtt { get { throw null; } } + + public readonly bool Equals(AudioTranslationFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right) { throw null; } + public static implicit operator AudioTranslationFormat(string value) { throw null; } + public static implicit operator AudioTranslationFormat?(string value) { throw null; } + public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class AudioTranslationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Prompt { get { throw null; } set { } } + public AudioTranslationFormat? ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual AudioTranslationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranslationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranslationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GeneratedSpeechFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedSpeechFormat(string value) { } + public static GeneratedSpeechFormat Aac { get { throw null; } } + public static GeneratedSpeechFormat Flac { get { throw null; } } + public static GeneratedSpeechFormat Mp3 { get { throw null; } } + public static GeneratedSpeechFormat Opus { get { throw null; } } + public static GeneratedSpeechFormat Pcm { get { throw null; } } + public static GeneratedSpeechFormat Wav { get { throw null; } } + + public readonly bool Equals(GeneratedSpeechFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right) { throw null; } + public static implicit operator GeneratedSpeechFormat(string value) { throw null; } + public static implicit operator GeneratedSpeechFormat?(string value) { throw null; } + public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedSpeechVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedSpeechVoice(string value) { } + public static GeneratedSpeechVoice Alloy { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Ash { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Ballad { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Coral { get { throw null; } } + public static GeneratedSpeechVoice Echo { get { throw null; } } + public static GeneratedSpeechVoice Fable { get { throw null; } } + public static GeneratedSpeechVoice Nova { get { throw null; } } + public static GeneratedSpeechVoice Onyx { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Sage { get { throw null; } } + public static GeneratedSpeechVoice Shimmer { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedSpeechVoice Verse { get { throw null; } } + + public readonly bool Equals(GeneratedSpeechVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right) { throw null; } + public static implicit operator GeneratedSpeechVoice(string value) { throw null; } + public static implicit operator GeneratedSpeechVoice?(string value) { throw null; } + public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public static partial class OpenAIAudioModelFactory + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static AudioTranscription AudioTranscription(string language = null, System.TimeSpan? duration = null, string text = null, System.Collections.Generic.IEnumerable words = null, System.Collections.Generic.IEnumerable segments = null, System.Collections.Generic.IEnumerable transcriptionTokenLogProbabilities = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranscription AudioTranscription(string language, System.TimeSpan? duration, string text, System.Collections.Generic.IEnumerable words, System.Collections.Generic.IEnumerable segments) { throw null; } + public static AudioTranslation AudioTranslation(string language = null, System.TimeSpan? duration = null, string text = null, System.Collections.Generic.IEnumerable segments = null) { throw null; } + public static TranscribedSegment TranscribedSegment(int id = 0, int seekOffset = 0, System.TimeSpan startTime = default, System.TimeSpan endTime = default, string text = null, System.ReadOnlyMemory tokenIds = default, float temperature = 0, float averageLogProbability = 0, float compressionRatio = 0, float noSpeechProbability = 0) { throw null; } + public static TranscribedWord TranscribedWord(string word = null, System.TimeSpan startTime = default, System.TimeSpan endTime = default) { throw null; } + } + public partial class SpeechGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Instructions { get { throw null; } set { } } + public GeneratedSpeechFormat? ResponseFormat { get { throw null; } set { } } + public float? SpeedRatio { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual SpeechGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual SpeechGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + SpeechGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + SpeechGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextDeltaUpdate() { } + public string Delta { get { throw null; } } + public string SegmentId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextDoneUpdate() { } + public string Text { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionTextSegmentUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextSegmentUpdate() { } + public System.TimeSpan EndTime { get { throw null; } } + public string SegmentId { get { throw null; } } + public string SpeakerLabel { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public string Text { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextSegmentUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextSegmentUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingAudioTranscriptionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionUpdate() { } + protected virtual StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct StreamingAudioTranscriptionUpdateKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StreamingAudioTranscriptionUpdateKind(string value) { } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextDelta { get { throw null; } } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextDone { get { throw null; } } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextSegment { get { throw null; } } + + public readonly bool Equals(StreamingAudioTranscriptionUpdateKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right) { throw null; } + public static implicit operator StreamingAudioTranscriptionUpdateKind(string value) { throw null; } + public static implicit operator StreamingAudioTranscriptionUpdateKind?(string value) { throw null; } + public static bool operator !=(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct TranscribedSegment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public float AverageLogProbability { get { throw null; } } + public float CompressionRatio { get { throw null; } } + public System.TimeSpan EndTime { get { throw null; } } + public int Id { get { throw null; } } + public float NoSpeechProbability { get { throw null; } } + public int SeekOffset { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public float Temperature { get { throw null; } } + public string Text { get { throw null; } } + public System.ReadOnlyMemory TokenIds { get { throw null; } } + + readonly TranscribedSegment System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly TranscribedSegment System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct TranscribedWord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.TimeSpan EndTime { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public string Word { get { throw null; } } + + readonly TranscribedWord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly TranscribedWord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Batch { - [Experimental("OPENAI001")] - public class BatchClient { - protected BatchClient(); - public BatchClient(ApiKeyCredential credential, OpenAIClientOptions options); - public BatchClient(ApiKeyCredential credential); - public BatchClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public BatchClient(AuthenticationPolicy authenticationPolicy); - protected internal BatchClient(ClientPipeline pipeline, OpenAIClientOptions options); - public BatchClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual CreateBatchOperation CreateBatch(BinaryContent content, bool waitUntilCompleted, RequestOptions options = null); - public virtual Task CreateBatchAsync(BinaryContent content, bool waitUntilCompleted, RequestOptions options = null); - public virtual ClientResult GetBatch(string batchId, RequestOptions options); - public virtual Task GetBatchAsync(string batchId, RequestOptions options); - public virtual CollectionResult GetBatches(BatchCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetBatches(string after, int? limit, RequestOptions options); - public virtual AsyncCollectionResult GetBatchesAsync(BatchCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetBatchesAsync(string after, int? limit, RequestOptions options); - } - [Experimental("OPENAI001")] - public class BatchCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual BatchCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual BatchCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class BatchJob : IJsonModel, IPersistableModel { - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CancellingAt { get; } - public DateTimeOffset? CompletedAt { get; } - public string CompletionWindow { get; } - public DateTimeOffset CreatedAt { get; } - public string Endpoint { get; } - public string ErrorFileId { get; } - public DateTimeOffset? ExpiredAt { get; } - public DateTimeOffset? ExpiresAt { get; } - public DateTimeOffset? FailedAt { get; } - public DateTimeOffset? FinalizingAt { get; } - public string Id { get; } - public DateTimeOffset? InProgressAt { get; } - public string InputFileId { get; } - public IDictionary Metadata { get; } - public string Object { get; } - public string OutputFileId { get; } - protected virtual BatchJob JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator BatchJob(ClientResult result); - protected virtual BatchJob PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateBatchOperation : OperationResult { - public string BatchId { get; } - public override ContinuationToken? RehydrationToken { get; protected set; } - public virtual ClientResult Cancel(RequestOptions? options); - public virtual Task CancelAsync(RequestOptions? options); - public virtual ClientResult GetBatch(RequestOptions? options); - public virtual Task GetBatchAsync(RequestOptions? options); - public static CreateBatchOperation Rehydrate(BatchClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static CreateBatchOperation Rehydrate(BatchClient client, string batchId, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(BatchClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(BatchClient client, string batchId, CancellationToken cancellationToken = default); - public override ClientResult UpdateStatus(RequestOptions? options = null); - public override ValueTask UpdateStatusAsync(RequestOptions? options = null); + +namespace OpenAI.Batch +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class BatchClient + { + protected BatchClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public BatchClient(BatchClientSettings settings) { } + public BatchClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public BatchClient(System.ClientModel.ApiKeyCredential credential) { } + public BatchClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public BatchClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal BatchClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public BatchClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual CreateBatchOperation CreateBatch(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateBatchAsync(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetBatch(string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetBatchAsync(string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetBatches(BatchCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetBatches(string after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetBatchesAsync(BatchCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetBatchesAsync(string after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class BatchClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class BatchCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual BatchCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual BatchCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + BatchCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + BatchCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class BatchJob : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal BatchJob() { } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CancellingAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public string CompletionWindow { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Endpoint { get { throw null; } } + public string ErrorFileId { get { throw null; } } + public System.DateTimeOffset? ExpiredAt { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public System.DateTimeOffset? FinalizingAt { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? InProgressAt { get { throw null; } } + public string InputFileId { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Object { get { throw null; } } + public string OutputFileId { get { throw null; } } + + protected virtual BatchJob JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator BatchJob(System.ClientModel.ClientResult result) { throw null; } + protected virtual BatchJob PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + BatchJob System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + BatchJob System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateBatchOperation : System.ClientModel.Primitives.OperationResult + { + internal CreateBatchOperation() : base(default!) { } + public string BatchId { get { throw null; } } + public override System.ClientModel.ContinuationToken? RehydrationToken { get { throw null; } protected set { } } + + public virtual System.ClientModel.ClientResult Cancel(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.Threading.Tasks.Task CancelAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.ClientResult GetBatch(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.Threading.Tasks.Task GetBatchAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public static CreateBatchOperation Rehydrate(BatchClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static CreateBatchOperation Rehydrate(BatchClient client, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(BatchClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(BatchClient client, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.ClientModel.ClientResult UpdateStatus(System.ClientModel.Primitives.RequestOptions? options = null) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.ClientModel.Primitives.RequestOptions? options = null) { throw null; } } } -namespace OpenAI.Chat { - public class AssistantChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public AssistantChatMessage(ChatCompletion chatCompletion); - [Obsolete("This constructor is obsolete. Please use the constructor that takes an IEnumerable parameter instead.")] - public AssistantChatMessage(ChatFunctionCall functionCall); - public AssistantChatMessage(params ChatMessageContentPart[] contentParts); - [Experimental("OPENAI001")] - public AssistantChatMessage(ChatOutputAudioReference outputAudioReference); - public AssistantChatMessage(IEnumerable contentParts); - public AssistantChatMessage(IEnumerable toolCalls); - public AssistantChatMessage(string content); - [Obsolete("This property is obsolete. Please use ToolCalls instead.")] - public ChatFunctionCall FunctionCall { get; set; } - [Experimental("OPENAI001")] - public ChatOutputAudioReference OutputAudioReference { get; set; } - public string ParticipantName { get; set; } - public string Refusal { get; set; } - public IList ToolCalls { get; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatAudioOptions : IJsonModel, IPersistableModel { - public ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat); - public ChatOutputAudioFormat OutputAudioFormat { get; } - public ChatOutputAudioVoice OutputAudioVoice { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatAudioOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatAudioOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatClient { - protected ChatClient(); - protected internal ChatClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ChatClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ChatClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public ChatClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public ChatClient(string model, AuthenticationPolicy authenticationPolicy); - public ChatClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CompleteChat(params ChatMessage[] messages); - public virtual ClientResult CompleteChat(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CompleteChat(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> CompleteChatAsync(params ChatMessage[] messages); - public virtual Task CompleteChatAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CompleteChatAsync(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CompleteChatStreaming(params ChatMessage[] messages); - public virtual CollectionResult CompleteChatStreaming(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CompleteChatStreamingAsync(params ChatMessage[] messages); - public virtual AsyncCollectionResult CompleteChatStreamingAsync(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual ClientResult DeleteChatCompletion(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult DeleteChatCompletion(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task DeleteChatCompletionAsync(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual Task> DeleteChatCompletionAsync(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual ClientResult GetChatCompletion(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult GetChatCompletion(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task GetChatCompletionAsync(string completionId, RequestOptions options); - [Experimental("OPENAI001")] - public virtual Task> GetChatCompletionAsync(string completionId, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletionMessages(string completionId, string after, int? limit, string order, RequestOptions options); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, string after, int? limit, string order, RequestOptions options); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletions(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual CollectionResult GetChatCompletions(string after, int? limit, string order, IDictionary metadata, string model, RequestOptions options); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionsAsync(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual AsyncCollectionResult GetChatCompletionsAsync(string after, int? limit, string order, IDictionary metadata, string model, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult UpdateChatCompletion(string completionId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult UpdateChatCompletion(string completionId, IDictionary metadata, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task UpdateChatCompletionAsync(string completionId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task> UpdateChatCompletionAsync(string completionId, IDictionary metadata, CancellationToken cancellationToken = default); - } - public class ChatCompletion : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public IReadOnlyList Annotations { get; } - public ChatMessageContent Content { get; } - public IReadOnlyList ContentTokenLogProbabilities { get; } - public DateTimeOffset CreatedAt { get; } - public ChatFinishReason FinishReason { get; } - [Obsolete("This property is obsolete. Please use ToolCalls instead.")] - public ChatFunctionCall FunctionCall { get; } - public string Id { get; } - public string Model { get; } - [Experimental("OPENAI001")] - public ChatOutputAudio OutputAudio { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public IReadOnlyList RefusalTokenLogProbabilities { get; } - public ChatMessageRole Role { get; } - [Experimental("OPENAI001")] - public ChatServiceTier? ServiceTier { get; } - public string SystemFingerprint { get; } - public IReadOnlyList ToolCalls { get; } - public ChatTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual ChatCompletion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator ChatCompletion(ClientResult result); - [Experimental("OPENAI001")] - protected virtual ChatCompletion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatCompletionCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public ChatCompletionCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatCompletionCollectionOrder : IEquatable { - public ChatCompletionCollectionOrder(string value); - public static ChatCompletionCollectionOrder Ascending { get; } - public static ChatCompletionCollectionOrder Descending { get; } - public readonly bool Equals(ChatCompletionCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right); - public static implicit operator ChatCompletionCollectionOrder(string value); - public static implicit operator ChatCompletionCollectionOrder?(string value); - public static bool operator !=(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatCompletionDeletionResult : IJsonModel, IPersistableModel { - public string ChatCompletionId { get; } - public bool Deleted { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ChatCompletionDeletionResult(ClientResult result); - protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatCompletionMessageCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ChatCompletionMessageCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatCompletionMessageCollectionOrder : IEquatable { - public ChatCompletionMessageCollectionOrder(string value); - public static ChatCompletionMessageCollectionOrder Ascending { get; } - public static ChatCompletionMessageCollectionOrder Descending { get; } - public readonly bool Equals(ChatCompletionMessageCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right); - public static implicit operator ChatCompletionMessageCollectionOrder(string value); - public static implicit operator ChatCompletionMessageCollectionOrder?(string value); - public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatCompletionMessageListDatum : IJsonModel, IPersistableModel { - public IReadOnlyList Annotations { get; } - public string Content { get; } - public IList ContentParts { get; } - public string Id { get; } - public ChatOutputAudio OutputAudio { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public IReadOnlyList ToolCalls { get; } - protected virtual ChatCompletionMessageListDatum JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionMessageListDatum PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatCompletionOptions : IJsonModel, IPersistableModel { - public bool? AllowParallelToolCalls { get; set; } - [Experimental("OPENAI001")] - public ChatAudioOptions AudioOptions { get; set; } - public string EndUserId { get; set; } - public float? FrequencyPenalty { get; set; } - [Obsolete("This property is obsolete. Please use ToolChoice instead.")] - public ChatFunctionChoice FunctionChoice { get; set; } - [Obsolete("This property is obsolete. Please use Tools instead.")] - public IList Functions { get; } - public bool? IncludeLogProbabilities { get; set; } - public IDictionary LogitBiases { get; } - public int? MaxOutputTokenCount { get; set; } - public IDictionary Metadata { get; } - [Experimental("OPENAI001")] - public ChatOutputPrediction OutputPrediction { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public float? PresencePenalty { get; set; } - [Experimental("OPENAI001")] - public ChatReasoningEffortLevel? ReasoningEffortLevel { get; set; } - public ChatResponseFormat ResponseFormat { get; set; } - [Experimental("OPENAI001")] - public ChatResponseModalities ResponseModalities { get; set; } - [Experimental("OPENAI001")] - public string SafetyIdentifier { get; set; } - [Experimental("OPENAI001")] - public long? Seed { get; set; } - [Experimental("OPENAI001")] - public ChatServiceTier? ServiceTier { get; set; } - public IList StopSequences { get; } - public bool? StoredOutputEnabled { get; set; } - public float? Temperature { get; set; } - public ChatToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - [Experimental("OPENAI001")] - public ChatWebSearchOptions WebSearchOptions { get; set; } - [Experimental("OPENAI001")] - protected virtual ChatCompletionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatCompletionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatFinishReason { + +namespace OpenAI.Chat +{ + public partial class AssistantChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AssistantChatMessage(ChatCompletion chatCompletion) { } + [System.Obsolete("This constructor is obsolete. Please use the constructor that takes an IEnumerable parameter instead.")] + public AssistantChatMessage(ChatFunctionCall functionCall) { } + public AssistantChatMessage(params ChatMessageContentPart[] contentParts) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public AssistantChatMessage(ChatOutputAudioReference outputAudioReference) { } + public AssistantChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public AssistantChatMessage(System.Collections.Generic.IEnumerable toolCalls) { } + public AssistantChatMessage(string content) { } + [System.Obsolete("This property is obsolete. Please use ToolCalls instead.")] + public ChatFunctionCall FunctionCall { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatOutputAudioReference OutputAudioReference { get { throw null; } set { } } + public string ParticipantName { get { throw null; } set { } } + public string Refusal { get { throw null; } set { } } + public System.Collections.Generic.IList ToolCalls { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatAudioOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat) { } + public ChatOutputAudioFormat OutputAudioFormat { get { throw null; } } + public ChatOutputAudioVoice OutputAudioVoice { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatAudioOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatAudioOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatAudioOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatAudioOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatClient + { + protected ChatClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ChatClient(ChatClientSettings settings) { } + protected internal ChatClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ChatClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ChatClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ChatClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CompleteChat(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.ClientResult CompleteChat(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CompleteChat(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CompleteChatAsync(params ChatMessage[] messages) { throw null; } + public virtual System.Threading.Tasks.Task CompleteChatAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CompleteChatAsync(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CompleteChatStreaming(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.CollectionResult CompleteChatStreaming(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CompleteChatStreamingAsync(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CompleteChatStreamingAsync(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult DeleteChatCompletion(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult DeleteChatCompletion(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task DeleteChatCompletionAsync(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> DeleteChatCompletionAsync(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult GetChatCompletion(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult GetChatCompletion(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task GetChatCompletionAsync(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> GetChatCompletionAsync(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.CollectionResult GetChatCompletionMessages(string completionId, string after, int? limit, string order, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, string after, int? limit, string order, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.CollectionResult GetChatCompletions(ChatCompletionCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.CollectionResult GetChatCompletions(string after, int? limit, string order, System.Collections.Generic.IDictionary metadata, string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.AsyncCollectionResult GetChatCompletionsAsync(ChatCompletionCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetChatCompletionsAsync(string after, int? limit, string order, System.Collections.Generic.IDictionary metadata, string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult UpdateChatCompletion(string completionId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult UpdateChatCompletion(string completionId, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task UpdateChatCompletionAsync(string completionId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> UpdateChatCompletionAsync(string completionId, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ChatClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ChatCompletion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletion() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Collections.Generic.IReadOnlyList Annotations { get { throw null; } } + public ChatMessageContent Content { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ContentTokenLogProbabilities { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ChatFinishReason FinishReason { get { throw null; } } + + [System.Obsolete("This property is obsolete. Please use ToolCalls instead.")] + public ChatFunctionCall FunctionCall { get { throw null; } } + public string Id { get { throw null; } } + public string Model { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatOutputAudio OutputAudio { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RefusalTokenLogProbabilities { get { throw null; } } + public ChatMessageRole Role { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatServiceTier? ServiceTier { get { throw null; } } + public string SystemFingerprint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + public ChatTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator ChatCompletion(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public ChatCompletionCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatCompletionCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatCompletionCollectionOrder(string value) { } + public static ChatCompletionCollectionOrder Ascending { get { throw null; } } + public static ChatCompletionCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ChatCompletionCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right) { throw null; } + public static implicit operator ChatCompletionCollectionOrder(string value) { throw null; } + public static implicit operator ChatCompletionCollectionOrder?(string value) { throw null; } + public static bool operator !=(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletionDeletionResult() { } + public string ChatCompletionId { get { throw null; } } + public bool Deleted { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ChatCompletionDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionMessageCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ChatCompletionMessageCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionMessageCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionMessageCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatCompletionMessageCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatCompletionMessageCollectionOrder(string value) { } + public static ChatCompletionMessageCollectionOrder Ascending { get { throw null; } } + public static ChatCompletionMessageCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ChatCompletionMessageCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right) { throw null; } + public static implicit operator ChatCompletionMessageCollectionOrder(string value) { throw null; } + public static implicit operator ChatCompletionMessageCollectionOrder?(string value) { throw null; } + public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatCompletionMessageListDatum : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletionMessageListDatum() { } + public System.Collections.Generic.IReadOnlyList Annotations { get { throw null; } } + public string Content { get { throw null; } } + public System.Collections.Generic.IList ContentParts { get { throw null; } } + public string Id { get { throw null; } } + public ChatOutputAudio OutputAudio { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + + protected virtual ChatCompletionMessageListDatum JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionMessageListDatum PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionMessageListDatum System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionMessageListDatum System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatCompletionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? AllowParallelToolCalls { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatAudioOptions AudioOptions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public float? FrequencyPenalty { get { throw null; } set { } } + + [System.Obsolete("This property is obsolete. Please use ToolChoice instead.")] + public ChatFunctionChoice FunctionChoice { get { throw null; } set { } } + + [System.Obsolete("This property is obsolete. Please use Tools instead.")] + public System.Collections.Generic.IList Functions { get { throw null; } } + public bool? IncludeLogProbabilities { get { throw null; } set { } } + public System.Collections.Generic.IDictionary LogitBiases { get { throw null; } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatOutputPrediction OutputPrediction { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public float? PresencePenalty { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatReasoningEffortLevel? ReasoningEffortLevel { get { throw null; } set { } } + public ChatResponseFormat ResponseFormat { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatResponseModalities ResponseModalities { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string SafetyIdentifier { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public long? Seed { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatServiceTier? ServiceTier { get { throw null; } set { } } + public System.Collections.Generic.IList StopSequences { get { throw null; } } + public bool? StoredOutputEnabled { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ChatToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatWebSearchOptions WebSearchOptions { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatCompletionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatFinishReason + { Stop = 0, Length = 1, ContentFilter = 2, ToolCalls = 3, FunctionCall = 4 } - [Obsolete("This class is obsolete. Please use ChatTool instead.")] - public class ChatFunction : IJsonModel, IPersistableModel { - public ChatFunction(string functionName); - public string FunctionDescription { get; set; } - public string FunctionName { get; } - public BinaryData FunctionParameters { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual ChatFunction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatFunction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ChatToolCall instead.")] - public class ChatFunctionCall : IJsonModel, IPersistableModel { - public ChatFunctionCall(string functionName, BinaryData functionArguments); - public BinaryData FunctionArguments { get; } - public string FunctionName { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual ChatFunctionCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatFunctionCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ChatToolChoice instead.")] - public class ChatFunctionChoice : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatFunctionChoice CreateAutoChoice(); - public static ChatFunctionChoice CreateNamedChoice(string functionName); - public static ChatFunctionChoice CreateNoneChoice(); - [Experimental("OPENAI001")] - protected virtual ChatFunctionChoice JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatFunctionChoice PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatImageDetailLevel : IEquatable { - public ChatImageDetailLevel(string value); - public static ChatImageDetailLevel Auto { get; } - public static ChatImageDetailLevel High { get; } - public static ChatImageDetailLevel Low { get; } - public readonly bool Equals(ChatImageDetailLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right); - public static implicit operator ChatImageDetailLevel(string value); - public static implicit operator ChatImageDetailLevel?(string value); - public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatInputAudioFormat : IEquatable { - public ChatInputAudioFormat(string value); - public static ChatInputAudioFormat Mp3 { get; } - public static ChatInputAudioFormat Wav { get; } - public readonly bool Equals(ChatInputAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right); - public static implicit operator ChatInputAudioFormat(string value); - public static implicit operator ChatInputAudioFormat?(string value); - public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right); - public override readonly string ToString(); - } - public class ChatInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int CachedTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual ChatInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatMessage : IJsonModel, IPersistableModel { - public ChatMessageContent Content { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static AssistantChatMessage CreateAssistantMessage(ChatCompletion chatCompletion); - public static AssistantChatMessage CreateAssistantMessage(ChatFunctionCall functionCall); - public static AssistantChatMessage CreateAssistantMessage(params ChatMessageContentPart[] contentParts); - [Experimental("OPENAI001")] - public static AssistantChatMessage CreateAssistantMessage(ChatOutputAudioReference outputAudioReference); - public static AssistantChatMessage CreateAssistantMessage(IEnumerable contentParts); - public static AssistantChatMessage CreateAssistantMessage(IEnumerable toolCalls); - public static AssistantChatMessage CreateAssistantMessage(string content); - [Experimental("OPENAI001")] - public static DeveloperChatMessage CreateDeveloperMessage(params ChatMessageContentPart[] contentParts); - [Experimental("OPENAI001")] - public static DeveloperChatMessage CreateDeveloperMessage(IEnumerable contentParts); - [Experimental("OPENAI001")] - public static DeveloperChatMessage CreateDeveloperMessage(string content); - [Obsolete("This method is obsolete. Please use CreateToolMessage instead.")] - public static FunctionChatMessage CreateFunctionMessage(string functionName, string content); - public static SystemChatMessage CreateSystemMessage(params ChatMessageContentPart[] contentParts); - public static SystemChatMessage CreateSystemMessage(IEnumerable contentParts); - public static SystemChatMessage CreateSystemMessage(string content); - public static ToolChatMessage CreateToolMessage(string toolCallId, params ChatMessageContentPart[] contentParts); - public static ToolChatMessage CreateToolMessage(string toolCallId, IEnumerable contentParts); - public static ToolChatMessage CreateToolMessage(string toolCallId, string content); - public static UserChatMessage CreateUserMessage(params ChatMessageContentPart[] contentParts); - public static UserChatMessage CreateUserMessage(IEnumerable contentParts); - public static UserChatMessage CreateUserMessage(string content); - [Experimental("OPENAI001")] - protected virtual ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ChatMessage(string content); - [Experimental("OPENAI001")] - protected virtual ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ChatMessageAnnotation : IJsonModel, IPersistableModel { - public int EndIndex { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int StartIndex { get; } - public string WebResourceTitle { get; } - public Uri WebResourceUri { get; } - protected virtual ChatMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatMessageContent : ObjectModel.Collection { - public ChatMessageContent(); - public ChatMessageContent(params ChatMessageContentPart[] contentParts); - public ChatMessageContent(IEnumerable contentParts); - public ChatMessageContent(string content); - } - public class ChatMessageContentPart : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public BinaryData FileBytes { get; } - [Experimental("OPENAI001")] - public string FileBytesMediaType { get; } - [Experimental("OPENAI001")] - public string FileId { get; } - [Experimental("OPENAI001")] - public string Filename { get; } - public BinaryData ImageBytes { get; } - public string ImageBytesMediaType { get; } - public ChatImageDetailLevel? ImageDetailLevel { get; } - public Uri ImageUri { get; } - [Experimental("OPENAI001")] - public BinaryData InputAudioBytes { get; } - [Experimental("OPENAI001")] - public ChatInputAudioFormat? InputAudioFormat { get; } - public ChatMessageContentPartKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public string Text { get; } - [Experimental("OPENAI001")] - public static ChatMessageContentPart CreateFilePart(BinaryData fileBytes, string fileBytesMediaType, string filename); - [Experimental("OPENAI001")] - public static ChatMessageContentPart CreateFilePart(string fileId); - public static ChatMessageContentPart CreateImagePart(BinaryData imageBytes, string imageBytesMediaType, ChatImageDetailLevel? imageDetailLevel = null); - public static ChatMessageContentPart CreateImagePart(Uri imageUri, ChatImageDetailLevel? imageDetailLevel = null); - [Experimental("OPENAI001")] - public static ChatMessageContentPart CreateInputAudioPart(BinaryData inputAudioBytes, ChatInputAudioFormat inputAudioFormat); - public static ChatMessageContentPart CreateRefusalPart(string refusal); - public static ChatMessageContentPart CreateTextPart(string text); - [Experimental("OPENAI001")] - protected virtual ChatMessageContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ChatMessageContentPart(string text); - [Experimental("OPENAI001")] - protected virtual ChatMessageContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatMessageContentPartKind { + + [System.Obsolete("This class is obsolete. Please use ChatTool instead.")] + public partial class ChatFunction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatFunction(string functionName) { } + public string FunctionDescription { get { throw null; } set { } } + public string FunctionName { get { throw null; } } + public System.BinaryData FunctionParameters { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ChatToolCall instead.")] + public partial class ChatFunctionCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatFunctionCall(string functionName, System.BinaryData functionArguments) { } + public System.BinaryData FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunctionCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunctionCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ChatToolChoice instead.")] + public partial class ChatFunctionChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatFunctionChoice() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatFunctionChoice CreateAutoChoice() { throw null; } + public static ChatFunctionChoice CreateNamedChoice(string functionName) { throw null; } + public static ChatFunctionChoice CreateNoneChoice() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionChoice JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatFunctionChoice PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunctionChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunctionChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatImageDetailLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatImageDetailLevel(string value) { } + public static ChatImageDetailLevel Auto { get { throw null; } } + public static ChatImageDetailLevel High { get { throw null; } } + public static ChatImageDetailLevel Low { get { throw null; } } + + public readonly bool Equals(ChatImageDetailLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right) { throw null; } + public static implicit operator ChatImageDetailLevel(string value) { throw null; } + public static implicit operator ChatImageDetailLevel?(string value) { throw null; } + public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatInputAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatInputAudioFormat(string value) { } + public static ChatInputAudioFormat Mp3 { get { throw null; } } + public static ChatInputAudioFormat Wav { get { throw null; } } + + public readonly bool Equals(ChatInputAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right) { throw null; } + public static implicit operator ChatInputAudioFormat(string value) { throw null; } + public static implicit operator ChatInputAudioFormat?(string value) { throw null; } + public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatInputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int CachedTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessage() { } + public ChatMessageContent Content { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static AssistantChatMessage CreateAssistantMessage(ChatCompletion chatCompletion) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(ChatFunctionCall functionCall) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(params ChatMessageContentPart[] contentParts) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static AssistantChatMessage CreateAssistantMessage(ChatOutputAudioReference outputAudioReference) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(System.Collections.Generic.IEnumerable toolCalls) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(string content) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static DeveloperChatMessage CreateDeveloperMessage(params ChatMessageContentPart[] contentParts) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static DeveloperChatMessage CreateDeveloperMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static DeveloperChatMessage CreateDeveloperMessage(string content) { throw null; } + [System.Obsolete("This method is obsolete. Please use CreateToolMessage instead.")] + public static FunctionChatMessage CreateFunctionMessage(string functionName, string content) { throw null; } + public static SystemChatMessage CreateSystemMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static SystemChatMessage CreateSystemMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static SystemChatMessage CreateSystemMessage(string content) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, params ChatMessageContentPart[] contentParts) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, string content) { throw null; } + public static UserChatMessage CreateUserMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static UserChatMessage CreateUserMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static UserChatMessage CreateUserMessage(string content) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ChatMessage(string content) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatMessageAnnotation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessageAnnotation() { } + public int EndIndex { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int StartIndex { get { throw null; } } + public string WebResourceTitle { get { throw null; } } + public System.Uri WebResourceUri { get { throw null; } } + + protected virtual ChatMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatMessageContent : System.Collections.ObjectModel.Collection + { + public ChatMessageContent() { } + public ChatMessageContent(params ChatMessageContentPart[] contentParts) { } + public ChatMessageContent(System.Collections.Generic.IEnumerable contentParts) { } + public ChatMessageContent(string content) { } + } + + public partial class ChatMessageContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessageContentPart() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.BinaryData FileBytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string FileBytesMediaType { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string FileId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Filename { get { throw null; } } + public System.BinaryData ImageBytes { get { throw null; } } + public string ImageBytesMediaType { get { throw null; } } + public ChatImageDetailLevel? ImageDetailLevel { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.BinaryData InputAudioBytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatInputAudioFormat? InputAudioFormat { get { throw null; } } + public ChatMessageContentPartKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageContentPart CreateFilePart(System.BinaryData fileBytes, string fileBytesMediaType, string filename) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageContentPart CreateFilePart(string fileId) { throw null; } + public static ChatMessageContentPart CreateImagePart(System.BinaryData imageBytes, string imageBytesMediaType, ChatImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ChatMessageContentPart CreateImagePart(System.Uri imageUri, ChatImageDetailLevel? imageDetailLevel = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageContentPart CreateInputAudioPart(System.BinaryData inputAudioBytes, ChatInputAudioFormat inputAudioFormat) { throw null; } + public static ChatMessageContentPart CreateRefusalPart(string refusal) { throw null; } + public static ChatMessageContentPart CreateTextPart(string text) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessageContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ChatMessageContentPart(string text) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatMessageContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessageContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessageContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatMessageContentPartKind + { Text = 0, Refusal = 1, Image = 2, InputAudio = 3, File = 4 } - public enum ChatMessageRole { + + public enum ChatMessageRole + { System = 0, User = 1, Assistant = 2, @@ -1999,865 +3262,1336 @@ public enum ChatMessageRole { Function = 4, Developer = 5 } - [Experimental("OPENAI001")] - public class ChatOutputAudio : IJsonModel, IPersistableModel { - public BinaryData AudioBytes { get; } - public DateTimeOffset ExpiresAt { get; } - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Transcript { get; } - protected virtual ChatOutputAudio JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputAudio PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatOutputAudioFormat : IEquatable { - public ChatOutputAudioFormat(string value); - public static ChatOutputAudioFormat Aac { get; } - public static ChatOutputAudioFormat Flac { get; } - public static ChatOutputAudioFormat Mp3 { get; } - public static ChatOutputAudioFormat Opus { get; } - public static ChatOutputAudioFormat Pcm16 { get; } - public static ChatOutputAudioFormat Wav { get; } - public readonly bool Equals(ChatOutputAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatOutputAudioFormat left, ChatOutputAudioFormat right); - public static implicit operator ChatOutputAudioFormat(string value); - public static implicit operator ChatOutputAudioFormat?(string value); - public static bool operator !=(ChatOutputAudioFormat left, ChatOutputAudioFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatOutputAudioReference : IJsonModel, IPersistableModel { - public ChatOutputAudioReference(string id); - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatOutputAudioReference JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputAudioReference PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatOutputAudioVoice : IEquatable { - public ChatOutputAudioVoice(string value); - public static ChatOutputAudioVoice Alloy { get; } - public static ChatOutputAudioVoice Ash { get; } - public static ChatOutputAudioVoice Ballad { get; } - public static ChatOutputAudioVoice Coral { get; } - public static ChatOutputAudioVoice Echo { get; } - public static ChatOutputAudioVoice Fable { get; } - public static ChatOutputAudioVoice Nova { get; } - public static ChatOutputAudioVoice Onyx { get; } - public static ChatOutputAudioVoice Sage { get; } - public static ChatOutputAudioVoice Shimmer { get; } - public static ChatOutputAudioVoice Verse { get; } - public readonly bool Equals(ChatOutputAudioVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right); - public static implicit operator ChatOutputAudioVoice(string value); - public static implicit operator ChatOutputAudioVoice?(string value); - public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ChatOutputPrediction : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatOutputPrediction CreateStaticContentPrediction(IEnumerable staticContentParts); - public static ChatOutputPrediction CreateStaticContentPrediction(string staticContent); - protected virtual ChatOutputPrediction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputPrediction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatOutputTokenUsageDetails : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public int AcceptedPredictionTokenCount { get; } - public int AudioTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int ReasoningTokenCount { get; } - [Experimental("OPENAI001")] - public int RejectedPredictionTokenCount { get; } - [Experimental("OPENAI001")] - protected virtual ChatOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ChatReasoningEffortLevel : IEquatable { - public ChatReasoningEffortLevel(string value); - public static ChatReasoningEffortLevel High { get; } - public static ChatReasoningEffortLevel Low { get; } - public static ChatReasoningEffortLevel Medium { get; } - public static ChatReasoningEffortLevel Minimal { get; } - public static ChatReasoningEffortLevel None { get; } - public readonly bool Equals(ChatReasoningEffortLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right); - public static implicit operator ChatReasoningEffortLevel(string value); - public static implicit operator ChatReasoningEffortLevel?(string value); - public static bool operator !=(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right); - public override readonly string ToString(); - } - public class ChatResponseFormat : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatResponseFormat CreateJsonObjectFormat(); - public static ChatResponseFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null); - public static ChatResponseFormat CreateTextFormat(); - [Experimental("OPENAI001")] - protected virtual ChatResponseFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatResponseFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - [Flags] - public enum ChatResponseModalities { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatOutputAudio : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputAudio() { } + public System.BinaryData AudioBytes { get { throw null; } } + public System.DateTimeOffset ExpiresAt { get { throw null; } } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Transcript { get { throw null; } } + + protected virtual ChatOutputAudio JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputAudio PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputAudio System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputAudio System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatOutputAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatOutputAudioFormat(string value) { } + public static ChatOutputAudioFormat Aac { get { throw null; } } + public static ChatOutputAudioFormat Flac { get { throw null; } } + public static ChatOutputAudioFormat Mp3 { get { throw null; } } + public static ChatOutputAudioFormat Opus { get { throw null; } } + public static ChatOutputAudioFormat Pcm16 { get { throw null; } } + public static ChatOutputAudioFormat Wav { get { throw null; } } + + public readonly bool Equals(ChatOutputAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatOutputAudioFormat left, ChatOutputAudioFormat right) { throw null; } + public static implicit operator ChatOutputAudioFormat(string value) { throw null; } + public static implicit operator ChatOutputAudioFormat?(string value) { throw null; } + public static bool operator !=(ChatOutputAudioFormat left, ChatOutputAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatOutputAudioReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatOutputAudioReference(string id) { } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatOutputAudioReference JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputAudioReference PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputAudioReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputAudioReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatOutputAudioVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatOutputAudioVoice(string value) { } + public static ChatOutputAudioVoice Alloy { get { throw null; } } + public static ChatOutputAudioVoice Ash { get { throw null; } } + public static ChatOutputAudioVoice Ballad { get { throw null; } } + public static ChatOutputAudioVoice Coral { get { throw null; } } + public static ChatOutputAudioVoice Echo { get { throw null; } } + public static ChatOutputAudioVoice Fable { get { throw null; } } + public static ChatOutputAudioVoice Nova { get { throw null; } } + public static ChatOutputAudioVoice Onyx { get { throw null; } } + public static ChatOutputAudioVoice Sage { get { throw null; } } + public static ChatOutputAudioVoice Shimmer { get { throw null; } } + public static ChatOutputAudioVoice Verse { get { throw null; } } + + public readonly bool Equals(ChatOutputAudioVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right) { throw null; } + public static implicit operator ChatOutputAudioVoice(string value) { throw null; } + public static implicit operator ChatOutputAudioVoice?(string value) { throw null; } + public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatOutputPrediction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputPrediction() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatOutputPrediction CreateStaticContentPrediction(System.Collections.Generic.IEnumerable staticContentParts) { throw null; } + public static ChatOutputPrediction CreateStaticContentPrediction(string staticContent) { throw null; } + protected virtual ChatOutputPrediction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputPrediction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputPrediction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputPrediction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputTokenUsageDetails() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int AcceptedPredictionTokenCount { get { throw null; } } + public int AudioTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int ReasoningTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int RejectedPredictionTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatReasoningEffortLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatReasoningEffortLevel(string value) { } + public static ChatReasoningEffortLevel High { get { throw null; } } + public static ChatReasoningEffortLevel Low { get { throw null; } } + public static ChatReasoningEffortLevel Medium { get { throw null; } } + public static ChatReasoningEffortLevel Minimal { get { throw null; } } + public static ChatReasoningEffortLevel None { get { throw null; } } + + public readonly bool Equals(ChatReasoningEffortLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right) { throw null; } + public static implicit operator ChatReasoningEffortLevel(string value) { throw null; } + public static implicit operator ChatReasoningEffortLevel?(string value) { throw null; } + public static bool operator !=(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatResponseFormat : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatResponseFormat() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatResponseFormat CreateJsonObjectFormat() { throw null; } + public static ChatResponseFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, System.BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null) { throw null; } + public static ChatResponseFormat CreateTextFormat() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatResponseFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatResponseFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatResponseFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatResponseFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.Flags] + public enum ChatResponseModalities + { Default = 0, Text = 1, Audio = 2 } - [Experimental("OPENAI001")] - public readonly partial struct ChatServiceTier : IEquatable { - public ChatServiceTier(string value); - public static ChatServiceTier Auto { get; } - public static ChatServiceTier Default { get; } - public static ChatServiceTier Flex { get; } - public static ChatServiceTier Scale { get; } - public readonly bool Equals(ChatServiceTier other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatServiceTier left, ChatServiceTier right); - public static implicit operator ChatServiceTier(string value); - public static implicit operator ChatServiceTier?(string value); - public static bool operator !=(ChatServiceTier left, ChatServiceTier right); - public override readonly string ToString(); - } - public class ChatTokenLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Token { get; } - public IReadOnlyList TopLogProbabilities { get; } - public ReadOnlyMemory? Utf8Bytes { get; } - [Experimental("OPENAI001")] - protected virtual ChatTokenLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTokenLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTokenTopLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Token { get; } - public ReadOnlyMemory? Utf8Bytes { get; } - [Experimental("OPENAI001")] - protected virtual ChatTokenTopLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTokenTopLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public ChatInputTokenUsageDetails InputTokenDetails { get; } - public int OutputTokenCount { get; } - public ChatOutputTokenUsageDetails OutputTokenDetails { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; } - [Experimental("OPENAI001")] - protected virtual ChatTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTool : IJsonModel, IPersistableModel { - public string FunctionDescription { get; } - public string FunctionName { get; } - public BinaryData FunctionParameters { get; } - public bool? FunctionSchemaIsStrict { get; } - public ChatToolKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatTool CreateFunctionTool(string functionName, string functionDescription = null, BinaryData functionParameters = null, bool? functionSchemaIsStrict = null); - [Experimental("OPENAI001")] - protected virtual ChatTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatToolCall : IJsonModel, IPersistableModel { - public BinaryData FunctionArguments { get; } - public string FunctionName { get; } - public string Id { get; set; } - public ChatToolCallKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatToolCall CreateFunctionToolCall(string id, string functionName, BinaryData functionArguments); - [Experimental("OPENAI001")] - protected virtual ChatToolCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatToolCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatToolCallKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ChatServiceTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatServiceTier(string value) { } + public static ChatServiceTier Auto { get { throw null; } } + public static ChatServiceTier Default { get { throw null; } } + public static ChatServiceTier Flex { get { throw null; } } + public static ChatServiceTier Scale { get { throw null; } } + + public readonly bool Equals(ChatServiceTier other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatServiceTier left, ChatServiceTier right) { throw null; } + public static implicit operator ChatServiceTier(string value) { throw null; } + public static implicit operator ChatServiceTier?(string value) { throw null; } + public static bool operator !=(ChatServiceTier left, ChatServiceTier right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatTokenLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Token { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TopLogProbabilities { get { throw null; } } + public System.ReadOnlyMemory? Utf8Bytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTokenTopLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenTopLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Token { get { throw null; } } + public System.ReadOnlyMemory? Utf8Bytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenTopLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenTopLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenTopLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenTopLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public ChatInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public ChatOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTool() { } + public string FunctionDescription { get { throw null; } } + public string FunctionName { get { throw null; } } + public System.BinaryData FunctionParameters { get { throw null; } } + public bool? FunctionSchemaIsStrict { get { throw null; } } + public ChatToolKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatTool CreateFunctionTool(string functionName, string functionDescription = null, System.BinaryData functionParameters = null, bool? functionSchemaIsStrict = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatToolCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatToolCall() { } + public System.BinaryData FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string Id { get { throw null; } set { } } + public ChatToolCallKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatToolCall CreateFunctionToolCall(string id, string functionName, System.BinaryData functionArguments) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatToolCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatToolCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatToolCallKind + { Function = 0 } - public class ChatToolChoice : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ChatToolChoice CreateAutoChoice(); - public static ChatToolChoice CreateFunctionChoice(string functionName); - public static ChatToolChoice CreateNoneChoice(); - public static ChatToolChoice CreateRequiredChoice(); - [Experimental("OPENAI001")] - protected virtual ChatToolChoice JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ChatToolChoice PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatToolKind { + + public partial class ChatToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatToolChoice() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatToolChoice CreateAutoChoice() { throw null; } + public static ChatToolChoice CreateFunctionChoice(string functionName) { throw null; } + public static ChatToolChoice CreateNoneChoice() { throw null; } + public static ChatToolChoice CreateRequiredChoice() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolChoice JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ChatToolChoice PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatToolKind + { Function = 0 } - [Experimental("OPENAI001")] - public class ChatWebSearchOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ChatWebSearchOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatWebSearchOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class DeveloperChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public DeveloperChatMessage(params ChatMessageContentPart[] contentParts); - public DeveloperChatMessage(IEnumerable contentParts); - public DeveloperChatMessage(string content); - public string ParticipantName { get; set; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ToolChatMessage instead.")] - public class FunctionChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public FunctionChatMessage(string functionName, string content); - public string FunctionName { get; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIChatModelFactory { - [Experimental("OPENAI001")] - public static ChatCompletion ChatCompletion(string id = null, ChatFinishReason finishReason = ChatFinishReason.Stop, ChatMessageContent content = null, string refusal = null, IEnumerable toolCalls = null, ChatMessageRole role = ChatMessageRole.System, ChatFunctionCall functionCall = null, IEnumerable contentTokenLogProbabilities = null, IEnumerable refusalTokenLogProbabilities = null, DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, ChatOutputAudio outputAudio = null, IEnumerable messageAnnotations = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatCompletion ChatCompletion(string id, ChatFinishReason finishReason, ChatMessageContent content, string refusal, IEnumerable toolCalls, ChatMessageRole role, ChatFunctionCall functionCall, IEnumerable contentTokenLogProbabilities, IEnumerable refusalTokenLogProbabilities, DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage); - [Experimental("OPENAI001")] - public static ChatCompletionMessageListDatum ChatCompletionMessageListDatum(string id, string content, string refusal, ChatMessageRole role, IList contentParts = null, IList toolCalls = null, IList annotations = null, string functionName = null, string functionArguments = null, ChatOutputAudio outputAudio = null); - public static ChatInputTokenUsageDetails ChatInputTokenUsageDetails(int audioTokenCount = 0, int cachedTokenCount = 0); - [Experimental("OPENAI001")] - public static ChatMessageAnnotation ChatMessageAnnotation(int startIndex = 0, int endIndex = 0, Uri webResourceUri = null, string webResourceTitle = null); - [Experimental("OPENAI001")] - public static ChatOutputAudio ChatOutputAudio(BinaryData audioBytes, string id = null, string transcript = null, DateTimeOffset expiresAt = default); - [Experimental("OPENAI001")] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount = 0, int audioTokenCount = 0, int acceptedPredictionTokenCount = 0, int rejectedPredictionTokenCount = 0); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount, int audioTokenCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount); - public static ChatTokenLogProbabilityDetails ChatTokenLogProbabilityDetails(string token = null, float logProbability = 0, ReadOnlyMemory? utf8Bytes = null, IEnumerable topLogProbabilities = null); - public static ChatTokenTopLogProbabilityDetails ChatTokenTopLogProbabilityDetails(string token = null, float logProbability = 0, ReadOnlyMemory? utf8Bytes = null); - public static ChatTokenUsage ChatTokenUsage(int outputTokenCount = 0, int inputTokenCount = 0, int totalTokenCount = 0, ChatOutputTokenUsageDetails outputTokenDetails = null, ChatInputTokenUsageDetails inputTokenDetails = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatTokenUsage ChatTokenUsage(int outputTokenCount, int inputTokenCount, int totalTokenCount, ChatOutputTokenUsageDetails outputTokenDetails); - [Experimental("OPENAI001")] - public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId = null, ChatMessageContent contentUpdate = null, StreamingChatFunctionCallUpdate functionCallUpdate = null, IEnumerable toolCallUpdates = null, ChatMessageRole? role = null, string refusalUpdate = null, IEnumerable contentTokenLogProbabilities = null, IEnumerable refusalTokenLogProbabilities = null, ChatFinishReason? finishReason = null, DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, StreamingChatOutputAudioUpdate outputAudioUpdate = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId, ChatMessageContent contentUpdate, StreamingChatFunctionCallUpdate functionCallUpdate, IEnumerable toolCallUpdates, ChatMessageRole? role, string refusalUpdate, IEnumerable contentTokenLogProbabilities, IEnumerable refusalTokenLogProbabilities, ChatFinishReason? finishReason, DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage); - [Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] - public static StreamingChatFunctionCallUpdate StreamingChatFunctionCallUpdate(string functionName = null, BinaryData functionArgumentsUpdate = null); - [Experimental("OPENAI001")] - public static StreamingChatOutputAudioUpdate StreamingChatOutputAudioUpdate(string id = null, DateTimeOffset? expiresAt = null, string transcriptUpdate = null, BinaryData audioBytesUpdate = null); - public static StreamingChatToolCallUpdate StreamingChatToolCallUpdate(int index = 0, string toolCallId = null, ChatToolCallKind kind = ChatToolCallKind.Function, string functionName = null, BinaryData functionArgumentsUpdate = null); - } - public class StreamingChatCompletionUpdate : IJsonModel, IPersistableModel { - public string CompletionId { get; } - public IReadOnlyList ContentTokenLogProbabilities { get; } - public ChatMessageContent ContentUpdate { get; } - public DateTimeOffset CreatedAt { get; } - public ChatFinishReason? FinishReason { get; } - [Obsolete("This property is obsolete. Please use ToolCallUpdates instead.")] - public StreamingChatFunctionCallUpdate FunctionCallUpdate { get; } - public string Model { get; } - [Experimental("OPENAI001")] - public StreamingChatOutputAudioUpdate OutputAudioUpdate { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public IReadOnlyList RefusalTokenLogProbabilities { get; } - public string RefusalUpdate { get; } - public ChatMessageRole? Role { get; } - [Experimental("OPENAI001")] - public ChatServiceTier? ServiceTier { get; } - public string SystemFingerprint { get; } - public IReadOnlyList ToolCallUpdates { get; } - public ChatTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual StreamingChatCompletionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual StreamingChatCompletionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] - public class StreamingChatFunctionCallUpdate : IJsonModel, IPersistableModel { - public BinaryData FunctionArgumentsUpdate { get; } - public string FunctionName { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual StreamingChatFunctionCallUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual StreamingChatFunctionCallUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingChatOutputAudioUpdate : IJsonModel, IPersistableModel { - public BinaryData AudioBytesUpdate { get; } - public DateTimeOffset? ExpiresAt { get; } - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string TranscriptUpdate { get; } - protected virtual StreamingChatOutputAudioUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingChatOutputAudioUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingChatToolCallUpdate : IJsonModel, IPersistableModel { - public BinaryData FunctionArgumentsUpdate { get; } - public string FunctionName { get; } - public int Index { get; } - public ChatToolCallKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string ToolCallId { get; } - [Experimental("OPENAI001")] - protected virtual StreamingChatToolCallUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual StreamingChatToolCallUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class SystemChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public SystemChatMessage(params ChatMessageContentPart[] contentParts); - public SystemChatMessage(IEnumerable contentParts); - public SystemChatMessage(string content); - public string ParticipantName { get; set; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ToolChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] contentParts); - public ToolChatMessage(string toolCallId, IEnumerable contentParts); - public ToolChatMessage(string toolCallId, string content); - public string ToolCallId { get; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class UserChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public UserChatMessage(params ChatMessageContentPart[] contentParts); - public UserChatMessage(IEnumerable contentParts); - public UserChatMessage(string content); - public string ParticipantName { get; set; } - [Experimental("OPENAI001")] - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ChatWebSearchOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatWebSearchOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatWebSearchOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatWebSearchOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatWebSearchOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class DeveloperChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DeveloperChatMessage(params ChatMessageContentPart[] contentParts) { } + public DeveloperChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public DeveloperChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeveloperChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeveloperChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ToolChatMessage instead.")] + public partial class FunctionChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionChatMessage(string functionName, string content) { } + public string FunctionName { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIChatModelFactory + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatCompletion ChatCompletion(string id = null, ChatFinishReason finishReason = ChatFinishReason.Stop, ChatMessageContent content = null, string refusal = null, System.Collections.Generic.IEnumerable toolCalls = null, ChatMessageRole role = ChatMessageRole.System, ChatFunctionCall functionCall = null, System.Collections.Generic.IEnumerable contentTokenLogProbabilities = null, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities = null, System.DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, ChatOutputAudio outputAudio = null, System.Collections.Generic.IEnumerable messageAnnotations = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatCompletion ChatCompletion(string id, ChatFinishReason finishReason, ChatMessageContent content, string refusal, System.Collections.Generic.IEnumerable toolCalls, ChatMessageRole role, ChatFunctionCall functionCall, System.Collections.Generic.IEnumerable contentTokenLogProbabilities, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities, System.DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatCompletionMessageListDatum ChatCompletionMessageListDatum(string id, string content, string refusal, ChatMessageRole role, System.Collections.Generic.IList contentParts = null, System.Collections.Generic.IList toolCalls = null, System.Collections.Generic.IList annotations = null, string functionName = null, string functionArguments = null, ChatOutputAudio outputAudio = null) { throw null; } + public static ChatInputTokenUsageDetails ChatInputTokenUsageDetails(int audioTokenCount = 0, int cachedTokenCount = 0) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatMessageAnnotation ChatMessageAnnotation(int startIndex = 0, int endIndex = 0, System.Uri webResourceUri = null, string webResourceTitle = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatOutputAudio ChatOutputAudio(System.BinaryData audioBytes, string id = null, string transcript = null, System.DateTimeOffset expiresAt = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount = 0, int audioTokenCount = 0, int acceptedPredictionTokenCount = 0, int rejectedPredictionTokenCount = 0) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount, int audioTokenCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount) { throw null; } + public static ChatTokenLogProbabilityDetails ChatTokenLogProbabilityDetails(string token = null, float logProbability = 0, System.ReadOnlyMemory? utf8Bytes = null, System.Collections.Generic.IEnumerable topLogProbabilities = null) { throw null; } + public static ChatTokenTopLogProbabilityDetails ChatTokenTopLogProbabilityDetails(string token = null, float logProbability = 0, System.ReadOnlyMemory? utf8Bytes = null) { throw null; } + public static ChatTokenUsage ChatTokenUsage(int outputTokenCount = 0, int inputTokenCount = 0, int totalTokenCount = 0, ChatOutputTokenUsageDetails outputTokenDetails = null, ChatInputTokenUsageDetails inputTokenDetails = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatTokenUsage ChatTokenUsage(int outputTokenCount, int inputTokenCount, int totalTokenCount, ChatOutputTokenUsageDetails outputTokenDetails) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId = null, ChatMessageContent contentUpdate = null, StreamingChatFunctionCallUpdate functionCallUpdate = null, System.Collections.Generic.IEnumerable toolCallUpdates = null, ChatMessageRole? role = null, string refusalUpdate = null, System.Collections.Generic.IEnumerable contentTokenLogProbabilities = null, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities = null, ChatFinishReason? finishReason = null, System.DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, StreamingChatOutputAudioUpdate outputAudioUpdate = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId, ChatMessageContent contentUpdate, StreamingChatFunctionCallUpdate functionCallUpdate, System.Collections.Generic.IEnumerable toolCallUpdates, ChatMessageRole? role, string refusalUpdate, System.Collections.Generic.IEnumerable contentTokenLogProbabilities, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities, ChatFinishReason? finishReason, System.DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage) { throw null; } + [System.Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] + public static StreamingChatFunctionCallUpdate StreamingChatFunctionCallUpdate(string functionName = null, System.BinaryData functionArgumentsUpdate = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static StreamingChatOutputAudioUpdate StreamingChatOutputAudioUpdate(string id = null, System.DateTimeOffset? expiresAt = null, string transcriptUpdate = null, System.BinaryData audioBytesUpdate = null) { throw null; } + public static StreamingChatToolCallUpdate StreamingChatToolCallUpdate(int index = 0, string toolCallId = null, ChatToolCallKind kind = ChatToolCallKind.Function, string functionName = null, System.BinaryData functionArgumentsUpdate = null) { throw null; } + } + public partial class StreamingChatCompletionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatCompletionUpdate() { } + public string CompletionId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ContentTokenLogProbabilities { get { throw null; } } + public ChatMessageContent ContentUpdate { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ChatFinishReason? FinishReason { get { throw null; } } + + [System.Obsolete("This property is obsolete. Please use ToolCallUpdates instead.")] + public StreamingChatFunctionCallUpdate FunctionCallUpdate { get { throw null; } } + public string Model { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public StreamingChatOutputAudioUpdate OutputAudioUpdate { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RefusalTokenLogProbabilities { get { throw null; } } + public string RefusalUpdate { get { throw null; } } + public ChatMessageRole? Role { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ChatServiceTier? ServiceTier { get { throw null; } } + public string SystemFingerprint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCallUpdates { get { throw null; } } + public ChatTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatCompletionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatCompletionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatCompletionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatCompletionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] + public partial class StreamingChatFunctionCallUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatFunctionCallUpdate() { } + public System.BinaryData FunctionArgumentsUpdate { get { throw null; } } + public string FunctionName { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatFunctionCallUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatFunctionCallUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatFunctionCallUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatFunctionCallUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingChatOutputAudioUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatOutputAudioUpdate() { } + public System.BinaryData AudioBytesUpdate { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string TranscriptUpdate { get { throw null; } } + + protected virtual StreamingChatOutputAudioUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingChatOutputAudioUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatOutputAudioUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatOutputAudioUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingChatToolCallUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatToolCallUpdate() { } + public System.BinaryData FunctionArgumentsUpdate { get { throw null; } } + public string FunctionName { get { throw null; } } + public int Index { get { throw null; } } + public ChatToolCallKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ToolCallId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatToolCallUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual StreamingChatToolCallUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatToolCallUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatToolCallUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class SystemChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SystemChatMessage(params ChatMessageContentPart[] contentParts) { } + public SystemChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public SystemChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + SystemChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + SystemChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ToolChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] contentParts) { } + public ToolChatMessage(string toolCallId, System.Collections.Generic.IEnumerable contentParts) { } + public ToolChatMessage(string toolCallId, string content) { } + public string ToolCallId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class UserChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UserChatMessage(params ChatMessageContentPart[] contentParts) { } + public UserChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public UserChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + UserChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + UserChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} + +namespace OpenAI.Containers +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerClient + { + protected ContainerClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ContainerClient(ContainerClientSettings settings) { } + public ContainerClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ContainerClient(System.ClientModel.ApiKeyCredential credential) { } + public ContainerClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ContainerClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal ContainerClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public ContainerClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateContainer(CreateContainerBody body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateContainer(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateContainerAsync(CreateContainerBody body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateContainerAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateContainerFile(string containerId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateContainerFileAsync(string containerId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainer(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainer(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteContainerAsync(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteContainerAsync(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DownloadContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DownloadContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DownloadContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetContainer(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetContainer(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetContainerAsync(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerAsync(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetContainerFiles(string containerId, ContainerFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetContainerFiles(string containerId, int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetContainerFilesAsync(string containerId, ContainerFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetContainerFilesAsync(string containerId, int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetContainers(ContainerCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetContainers(int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetContainersAsync(ContainerCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetContainersAsync(int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ContainerClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ContainerCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual ContainerCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ContainerCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerCollectionOrder(string value) { } + public static ContainerCollectionOrder Ascending { get { throw null; } } + public static ContainerCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ContainerCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ContainerCollectionOrder left, ContainerCollectionOrder right) { throw null; } + public static implicit operator ContainerCollectionOrder(string value) { throw null; } + public static implicit operator ContainerCollectionOrder?(string value) { throw null; } + public static bool operator !=(ContainerCollectionOrder left, ContainerCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerFileCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ContainerCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual ContainerFileCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerFileCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerFileResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerFileResource() { } + public int Bytes { get { throw null; } } + public string ContainerId { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + public string Path { get { throw null; } } + public string Source { get { throw null; } } + + protected virtual ContainerFileResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ContainerFileResource(System.ClientModel.ClientResult result) { throw null; } + protected virtual ContainerFileResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerResource() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ContainerResourceExpiresAfter ExpiresAfter { get { throw null; } } + public string Id { get { throw null; } } + public string Name { get { throw null; } } + public string Object { get { throw null; } } + public string Status { get { throw null; } } + + protected virtual ContainerResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ContainerResource(System.ClientModel.ClientResult result) { throw null; } + protected virtual ContainerResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerResourceExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerResourceExpiresAfter() { } + public string Anchor { get { throw null; } } + public int? Minutes { get { throw null; } } + + protected virtual ContainerResourceExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerResourceExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerResourceExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerResourceExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateContainerBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateContainerBody(string name) { } + public CreateContainerBodyExpiresAfter ExpiresAfter { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public string Name { get { throw null; } } + + protected virtual CreateContainerBody JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(CreateContainerBody createContainerBody) { throw null; } + protected virtual CreateContainerBody PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerBody System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerBody System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateContainerBodyExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateContainerBodyExpiresAfter(int minutes) { } + public string Anchor { get { throw null; } } + public int Minutes { get { throw null; } } + + protected virtual CreateContainerBodyExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CreateContainerBodyExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerBodyExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerBodyExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateContainerFileBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.BinaryData File { get { throw null; } set { } } + public string FileId { get { throw null; } set { } } + + protected virtual CreateContainerFileBody JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CreateContainerFileBody PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerFileBody System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerFileBody System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class DeleteContainerFileResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DeleteContainerFileResponse() { } + public bool Deleted { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + + protected virtual DeleteContainerFileResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator DeleteContainerFileResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual DeleteContainerFileResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeleteContainerFileResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeleteContainerFileResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class DeleteContainerResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DeleteContainerResponse() { } + public bool Deleted { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + + protected virtual DeleteContainerResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator DeleteContainerResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual DeleteContainerResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeleteContainerResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeleteContainerResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Containers { - [Experimental("OPENAI001")] - public class ContainerClient { - protected ContainerClient(); - public ContainerClient(ApiKeyCredential credential, OpenAIClientOptions options); - public ContainerClient(ApiKeyCredential credential); - public ContainerClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ContainerClient(AuthenticationPolicy authenticationPolicy); - protected internal ContainerClient(ClientPipeline pipeline, OpenAIClientOptions options); - public ContainerClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateContainer(CreateContainerBody body, CancellationToken cancellationToken = default); - public virtual ClientResult CreateContainer(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateContainerAsync(CreateContainerBody body, CancellationToken cancellationToken = default); - public virtual Task CreateContainerAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateContainerFile(string containerId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateContainerFileAsync(string containerId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult DeleteContainer(string containerId, RequestOptions options); - public virtual ClientResult DeleteContainer(string containerId, CancellationToken cancellationToken = default); - public virtual Task DeleteContainerAsync(string containerId, RequestOptions options); - public virtual Task> DeleteContainerAsync(string containerId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult DeleteContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task DeleteContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> DeleteContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult DownloadContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult DownloadContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task DownloadContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> DownloadContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetContainer(string containerId, RequestOptions options); - public virtual ClientResult GetContainer(string containerId, CancellationToken cancellationToken = default); - public virtual Task GetContainerAsync(string containerId, RequestOptions options); - public virtual Task> GetContainerAsync(string containerId, CancellationToken cancellationToken = default); - public virtual ClientResult GetContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult GetContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task GetContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> GetContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainerFiles(string containerId, ContainerFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainerFiles(string containerId, int? limit, string order, string after, RequestOptions options); - public virtual AsyncCollectionResult GetContainerFilesAsync(string containerId, ContainerFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetContainerFilesAsync(string containerId, int? limit, string order, string after, RequestOptions options); - public virtual CollectionResult GetContainers(ContainerCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainers(int? limit, string order, string after, RequestOptions options); - public virtual AsyncCollectionResult GetContainersAsync(ContainerCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetContainersAsync(int? limit, string order, string after, RequestOptions options); - } - [Experimental("OPENAI001")] - public class ContainerCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ContainerCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual ContainerCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ContainerCollectionOrder : IEquatable { - public ContainerCollectionOrder(string value); - public static ContainerCollectionOrder Ascending { get; } - public static ContainerCollectionOrder Descending { get; } - public readonly bool Equals(ContainerCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ContainerCollectionOrder left, ContainerCollectionOrder right); - public static implicit operator ContainerCollectionOrder(string value); - public static implicit operator ContainerCollectionOrder?(string value); - public static bool operator !=(ContainerCollectionOrder left, ContainerCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ContainerFileCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ContainerCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual ContainerFileCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerFileCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ContainerFileResource : IJsonModel, IPersistableModel { - public int Bytes { get; } - public string ContainerId { get; } - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string Object { get; } - public string Path { get; } - public string Source { get; } - protected virtual ContainerFileResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ContainerFileResource(ClientResult result); - protected virtual ContainerFileResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ContainerResource : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public ContainerResourceExpiresAfter ExpiresAfter { get; } - public string Id { get; } - public string Name { get; } - public string Object { get; } - public string Status { get; } - protected virtual ContainerResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ContainerResource(ClientResult result); - protected virtual ContainerResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ContainerResourceExpiresAfter : IJsonModel, IPersistableModel { - public string Anchor { get; } - public int? Minutes { get; } - protected virtual ContainerResourceExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerResourceExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateContainerBody : IJsonModel, IPersistableModel { - public CreateContainerBody(string name); - public CreateContainerBodyExpiresAfter ExpiresAfter { get; set; } - public IList FileIds { get; } - public string Name { get; } - protected virtual CreateContainerBody JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(CreateContainerBody createContainerBody); - protected virtual CreateContainerBody PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateContainerBodyExpiresAfter : IJsonModel, IPersistableModel { - public CreateContainerBodyExpiresAfter(int minutes); - public string Anchor { get; } - public int Minutes { get; } - protected virtual CreateContainerBodyExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CreateContainerBodyExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateContainerFileBody : IJsonModel, IPersistableModel { - public BinaryData File { get; set; } - public string FileId { get; set; } - protected virtual CreateContainerFileBody JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CreateContainerFileBody PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class DeleteContainerFileResponse : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string Id { get; } - public string Object { get; } - protected virtual DeleteContainerFileResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator DeleteContainerFileResponse(ClientResult result); - protected virtual DeleteContainerFileResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class DeleteContainerResponse : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string Id { get; } - public string Object { get; } - protected virtual DeleteContainerResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator DeleteContainerResponse(ClientResult result); - protected virtual DeleteContainerResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + +namespace OpenAI.Conversations +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ConversationClient + { + protected ConversationClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ConversationClient(ConversationClientSettings settings) { } + public ConversationClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ConversationClient(System.ClientModel.ApiKeyCredential credential) { } + public ConversationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ConversationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal ConversationClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public ConversationClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateConversation(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateConversationAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateConversationItems(string conversationId, System.ClientModel.BinaryContent content, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateConversationItemsAsync(string conversationId, System.ClientModel.BinaryContent content, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteConversation(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConversationAsync(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteConversationItem(string conversationId, string itemId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConversationItemAsync(string conversationId, string itemId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetConversation(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConversationAsync(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetConversationItem(string conversationId, string itemId, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConversationItemAsync(string conversationId, string itemId, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetConversationItems(string conversationId, long? limit = null, string order = null, string after = null, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConversationItemsAsync(string conversationId, long? limit = null, string order = null, string after = null, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateConversation(string conversationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateConversationAsync(string conversationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ConversationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct IncludedConversationItemProperty : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IncludedConversationItemProperty(string value) { } + public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get { throw null; } } + public static IncludedConversationItemProperty ComputerCallOutputImageUri { get { throw null; } } + public static IncludedConversationItemProperty FileSearchCallResults { get { throw null; } } + public static IncludedConversationItemProperty MessageInputImageUri { get { throw null; } } + public static IncludedConversationItemProperty MessageOutputTextLogprobs { get { throw null; } } + public static IncludedConversationItemProperty ReasoningEncryptedContent { get { throw null; } } + public static IncludedConversationItemProperty WebSearchCallActionSources { get { throw null; } } + public static IncludedConversationItemProperty WebSearchCallResults { get { throw null; } } + + public readonly bool Equals(IncludedConversationItemProperty other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right) { throw null; } + public static implicit operator IncludedConversationItemProperty(string value) { throw null; } + public static implicit operator IncludedConversationItemProperty?(string value) { throw null; } + public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right) { throw null; } + public override readonly string ToString() { throw null; } } } -namespace OpenAI.Conversations { - [Experimental("OPENAI001")] - public class ConversationClient { - protected ConversationClient(); - public ConversationClient(ApiKeyCredential credential, OpenAIClientOptions options); - public ConversationClient(ApiKeyCredential credential); - public ConversationClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ConversationClient(AuthenticationPolicy authenticationPolicy); - protected internal ConversationClient(ClientPipeline pipeline, OpenAIClientOptions options); - public ConversationClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateConversation(BinaryContent content, RequestOptions options = null); - public virtual Task CreateConversationAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateConversationItems(string conversationId, BinaryContent content, IEnumerable include = null, RequestOptions options = null); - public virtual Task CreateConversationItemsAsync(string conversationId, BinaryContent content, IEnumerable include = null, RequestOptions options = null); - public virtual ClientResult DeleteConversation(string conversationId, RequestOptions options = null); - public virtual Task DeleteConversationAsync(string conversationId, RequestOptions options = null); - public virtual ClientResult DeleteConversationItem(string conversationId, string itemId, RequestOptions options = null); - public virtual Task DeleteConversationItemAsync(string conversationId, string itemId, RequestOptions options = null); - public virtual ClientResult GetConversation(string conversationId, RequestOptions options = null); - public virtual Task GetConversationAsync(string conversationId, RequestOptions options = null); - public virtual ClientResult GetConversationItem(string conversationId, string itemId, IEnumerable include = null, RequestOptions options = null); - public virtual Task GetConversationItemAsync(string conversationId, string itemId, IEnumerable include = null, RequestOptions options = null); - public virtual CollectionResult GetConversationItems(string conversationId, long? limit = null, string order = null, string after = null, IEnumerable include = null, RequestOptions options = null); - public virtual AsyncCollectionResult GetConversationItemsAsync(string conversationId, long? limit = null, string order = null, string after = null, IEnumerable include = null, RequestOptions options = null); - public virtual ClientResult UpdateConversation(string conversationId, BinaryContent content, RequestOptions options = null); - public virtual Task UpdateConversationAsync(string conversationId, BinaryContent content, RequestOptions options = null); - } - [Experimental("OPENAI001")] - public readonly partial struct IncludedConversationItemProperty : IEquatable { - public IncludedConversationItemProperty(string value); - public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get; } - public static IncludedConversationItemProperty ComputerCallOutputImageUri { get; } - public static IncludedConversationItemProperty FileSearchCallResults { get; } - public static IncludedConversationItemProperty MessageInputImageUri { get; } - public static IncludedConversationItemProperty MessageOutputTextLogprobs { get; } - public static IncludedConversationItemProperty ReasoningEncryptedContent { get; } - public static IncludedConversationItemProperty WebSearchCallActionSources { get; } - public static IncludedConversationItemProperty WebSearchCallResults { get; } - public readonly bool Equals(IncludedConversationItemProperty other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right); - public static implicit operator IncludedConversationItemProperty(string value); - public static implicit operator IncludedConversationItemProperty?(string value); - public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right); - public override readonly string ToString(); + +namespace OpenAI.DependencyInjection +{ + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public static partial class OpenAIHostBuilderExtensions + { + public static System.ClientModel.Primitives.IClientBuilder AddAssistantClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddAudioClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddBatchClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddChatClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddContainerClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddConversationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddEmbeddingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddEvaluationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddFineTuningClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddGraderClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddImageClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedAssistantClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedAudioClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedBatchClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedChatClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedContainerClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedConversationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedEmbeddingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedEvaluationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedFineTuningClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedGraderClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedImageClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedModerationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedOpenAIFileClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedOpenAIModelClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedRealtimeClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedVectorStoreClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedVideoClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddModerationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddOpenAIFileClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddOpenAIModelClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddRealtimeClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddVectorStoreClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddVideoClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } } } -namespace OpenAI.Embeddings { - public class EmbeddingClient { - protected EmbeddingClient(); - protected internal EmbeddingClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public EmbeddingClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public EmbeddingClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public EmbeddingClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public EmbeddingClient(string model, AuthenticationPolicy authenticationPolicy); - public EmbeddingClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateEmbedding(string input, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateEmbeddingAsync(string input, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateEmbeddings(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateEmbeddings(IEnumerable> inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateEmbeddings(IEnumerable inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateEmbeddingsAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateEmbeddingsAsync(IEnumerable> inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateEmbeddingsAsync(IEnumerable inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - } - public class EmbeddingGenerationOptions : IJsonModel, IPersistableModel { - public int? Dimensions { get; set; } - public string EndUserId { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual EmbeddingGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual EmbeddingGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class EmbeddingTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; } - [Experimental("OPENAI001")] - protected virtual EmbeddingTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual EmbeddingTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIEmbedding : IJsonModel, IPersistableModel { - public int Index { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIEmbedding JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual OpenAIEmbedding PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - public ReadOnlyMemory ToFloats(); - } - public class OpenAIEmbeddingCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - public string Model { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public EmbeddingTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIEmbeddingCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIEmbeddingCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIEmbeddingsModelFactory { - public static EmbeddingTokenUsage EmbeddingTokenUsage(int inputTokenCount = 0, int totalTokenCount = 0); - public static OpenAIEmbedding OpenAIEmbedding(int index = 0, IEnumerable vector = null); - public static OpenAIEmbeddingCollection OpenAIEmbeddingCollection(IEnumerable items = null, string model = null, EmbeddingTokenUsage usage = null); + +namespace OpenAI.Embeddings +{ + public partial class EmbeddingClient + { + protected EmbeddingClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public EmbeddingClient(EmbeddingClientSettings settings) { } + protected internal EmbeddingClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public EmbeddingClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public EmbeddingClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public EmbeddingClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public EmbeddingClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public EmbeddingClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateEmbedding(string input, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingAsync(string input, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.Collections.Generic.IEnumerable> inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.Collections.Generic.IEnumerable inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateEmbeddingsAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingsAsync(System.Collections.Generic.IEnumerable> inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingsAsync(System.Collections.Generic.IEnumerable inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class EmbeddingClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class EmbeddingGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int? Dimensions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + EmbeddingGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + EmbeddingGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class EmbeddingTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal EmbeddingTokenUsage() { } + public int InputTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual EmbeddingTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + EmbeddingTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + EmbeddingTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIEmbedding : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIEmbedding() { } + public int Index { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbedding JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbedding PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIEmbedding System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIEmbedding System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public System.ReadOnlyMemory ToFloats() { throw null; } + } + + public partial class OpenAIEmbeddingCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIEmbeddingCollection() : base(default!) { } + public string Model { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public EmbeddingTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbeddingCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIEmbeddingCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIEmbeddingCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIEmbeddingCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIEmbeddingsModelFactory + { + public static EmbeddingTokenUsage EmbeddingTokenUsage(int inputTokenCount = 0, int totalTokenCount = 0) { throw null; } + public static OpenAIEmbedding OpenAIEmbedding(int index = 0, System.Collections.Generic.IEnumerable vector = null) { throw null; } + public static OpenAIEmbeddingCollection OpenAIEmbeddingCollection(System.Collections.Generic.IEnumerable items = null, string model = null, EmbeddingTokenUsage usage = null) { throw null; } } } -namespace OpenAI.Evals { - [Experimental("OPENAI001")] - public class EvaluationClient { - protected EvaluationClient(); - public EvaluationClient(ApiKeyCredential credential, OpenAIClientOptions options); - public EvaluationClient(ApiKeyCredential credential); - public EvaluationClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public EvaluationClient(AuthenticationPolicy authenticationPolicy); - protected internal EvaluationClient(ClientPipeline pipeline, OpenAIClientOptions options); - public EvaluationClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task CancelEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult CreateEvaluation(BinaryContent content, RequestOptions options = null); - public virtual Task CreateEvaluationAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateEvaluationRun(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual Task CreateEvaluationRunAsync(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteEvaluation(string evaluationId, RequestOptions options); - public virtual Task DeleteEvaluationAsync(string evaluationId, RequestOptions options); - public virtual ClientResult DeleteEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task DeleteEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult GetEvaluation(string evaluationId, RequestOptions options); - public virtual Task GetEvaluationAsync(string evaluationId, RequestOptions options); - public virtual ClientResult GetEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task GetEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult GetEvaluationRunOutputItem(string evaluationId, string evaluationRunId, string outputItemId, RequestOptions options); - public virtual Task GetEvaluationRunOutputItemAsync(string evaluationId, string evaluationRunId, string outputItemId, RequestOptions options); - public virtual ClientResult GetEvaluationRunOutputItems(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, RequestOptions options); - public virtual Task GetEvaluationRunOutputItemsAsync(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, RequestOptions options); - public virtual ClientResult GetEvaluationRuns(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, RequestOptions options); - public virtual Task GetEvaluationRunsAsync(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, RequestOptions options); - public virtual ClientResult GetEvaluations(int? limit, string orderBy, string order, string after, RequestOptions options); - public virtual Task GetEvaluationsAsync(int? limit, string orderBy, string order, string after, RequestOptions options); - public virtual ClientResult UpdateEvaluation(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual Task UpdateEvaluationAsync(string evaluationId, BinaryContent content, RequestOptions options = null); + +namespace OpenAI.Evals +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class EvaluationClient + { + protected EvaluationClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public EvaluationClient(EvaluationClientSettings settings) { } + public EvaluationClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public EvaluationClient(System.ClientModel.ApiKeyCredential credential) { } + public EvaluationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public EvaluationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal EvaluationClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public EvaluationClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task CancelEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CreateEvaluation(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateEvaluationAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateEvaluationRun(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateEvaluationRunAsync(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteEvaluation(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteEvaluationAsync(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluation(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationAsync(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRunOutputItem(string evaluationId, string evaluationRunId, string outputItemId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunOutputItemAsync(string evaluationId, string evaluationRunId, string outputItemId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRunOutputItems(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunOutputItemsAsync(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRuns(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunsAsync(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluations(int? limit, string orderBy, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationsAsync(int? limit, string orderBy, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult UpdateEvaluation(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateEvaluationAsync(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class EvaluationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } } } -namespace OpenAI.Files { - public class FileDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string FileId { get; } - [Experimental("OPENAI001")] - protected virtual FileDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator FileDeletionResult(ClientResult result); - [Experimental("OPENAI001")] - protected virtual FileDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum FilePurpose { + +namespace OpenAI.Files +{ + public partial class FileDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileDeletionResult() { } + public bool Deleted { get { throw null; } } + public string FileId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual FileDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator FileDeletionResult(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual FileDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum FilePurpose + { Assistants = 0, AssistantsOutput = 1, Batch = 2, @@ -2868,2113 +4602,3207 @@ public enum FilePurpose { UserData = 7, Evaluations = 8 } - [Obsolete("This struct is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] - public enum FileStatus { + + [System.Obsolete("This struct is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] + public enum FileStatus + { Uploaded = 0, Processed = 1, Error = 2 } - public readonly partial struct FileUploadPurpose : IEquatable { - public FileUploadPurpose(string value); - public static FileUploadPurpose Assistants { get; } - public static FileUploadPurpose Batch { get; } - [Experimental("OPENAI001")] - public static FileUploadPurpose Evaluations { get; } - public static FileUploadPurpose FineTune { get; } - [Experimental("OPENAI001")] - public static FileUploadPurpose UserData { get; } - public static FileUploadPurpose Vision { get; } - public readonly bool Equals(FileUploadPurpose other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileUploadPurpose left, FileUploadPurpose right); - public static implicit operator FileUploadPurpose(string value); - public static implicit operator FileUploadPurpose?(string value); - public static bool operator !=(FileUploadPurpose left, FileUploadPurpose right); - public override readonly string ToString(); - } - public class OpenAIFile : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - [Experimental("OPENAI001")] - public DateTimeOffset? ExpiresAt { get; } - public string Filename { get; } - public string Id { get; } - public FilePurpose Purpose { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public int? SizeInBytes { get; } - [Experimental("OPENAI001")] - public long? SizeInBytesLong { get; } - [Obsolete("This property is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] - public FileStatus Status { get; } - [Obsolete("This property is obsolete. For details on why a fine-tuning training file failed validation, see the `error` field on the fine-tuning job.")] - public string StatusDetails { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIFile JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIFile(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIFile PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIFileClient { - protected OpenAIFileClient(); - public OpenAIFileClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIFileClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public OpenAIFileClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public OpenAIFileClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIFileClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIFileClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - [Experimental("OPENAI001")] - public virtual ClientResult AddUploadPart(string uploadId, BinaryContent content, string contentType, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task AddUploadPartAsync(string uploadId, BinaryContent content, string contentType, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult CancelUpload(string uploadId, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task CancelUploadAsync(string uploadId, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult CompleteUpload(string uploadId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task CompleteUploadAsync(string uploadId, BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult CreateUpload(BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task CreateUploadAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteFile(string fileId, RequestOptions options); - public virtual ClientResult DeleteFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task DeleteFileAsync(string fileId, RequestOptions options); - public virtual Task> DeleteFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult DownloadFile(string fileId, RequestOptions options); - public virtual ClientResult DownloadFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task DownloadFileAsync(string fileId, RequestOptions options); - public virtual Task> DownloadFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetFile(string fileId, RequestOptions options); - public virtual ClientResult GetFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task GetFileAsync(string fileId, RequestOptions options); - public virtual Task> GetFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetFiles(FilePurpose purpose, CancellationToken cancellationToken = default); - public virtual ClientResult GetFiles(string purpose, RequestOptions options); - [Experimental("OPENAI001")] - public virtual ClientResult GetFiles(string purpose, long? limit, string order, string after, RequestOptions options); - public virtual ClientResult GetFiles(CancellationToken cancellationToken = default); - public virtual Task> GetFilesAsync(FilePurpose purpose, CancellationToken cancellationToken = default); - public virtual Task GetFilesAsync(string purpose, RequestOptions options); - [Experimental("OPENAI001")] - public virtual Task GetFilesAsync(string purpose, long? limit, string order, string after, RequestOptions options); - public virtual Task> GetFilesAsync(CancellationToken cancellationToken = default); - public virtual ClientResult UploadFile(BinaryData file, string filename, FileUploadPurpose purpose); - public virtual ClientResult UploadFile(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult UploadFile(Stream file, string filename, FileUploadPurpose purpose, CancellationToken cancellationToken = default); - public virtual ClientResult UploadFile(string filePath, FileUploadPurpose purpose); - public virtual Task> UploadFileAsync(BinaryData file, string filename, FileUploadPurpose purpose); - public virtual Task UploadFileAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> UploadFileAsync(Stream file, string filename, FileUploadPurpose purpose, CancellationToken cancellationToken = default); - public virtual Task> UploadFileAsync(string filePath, FileUploadPurpose purpose); - } - public class OpenAIFileCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - protected virtual OpenAIFileCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIFileCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIFileCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIFilesModelFactory { - public static FileDeletionResult FileDeletionResult(string fileId = null, bool deleted = false); - public static OpenAIFileCollection OpenAIFileCollection(IEnumerable items = null); - [Experimental("OPENAI001")] - public static OpenAIFile OpenAIFileInfo(string id = null, int? sizeInBytes = null, DateTimeOffset createdAt = default, string filename = null, FilePurpose purpose = FilePurpose.Assistants, FileStatus status = FileStatus.Uploaded, string statusDetails = null, DateTimeOffset? expiresAt = null, long? sizeInBytesLong = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static OpenAIFile OpenAIFileInfo(string id, int? sizeInBytes, DateTimeOffset createdAt, string filename, FilePurpose purpose, FileStatus status, string statusDetails); + + public readonly partial struct FileUploadPurpose : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileUploadPurpose(string value) { } + public static FileUploadPurpose Assistants { get { throw null; } } + public static FileUploadPurpose Batch { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static FileUploadPurpose Evaluations { get { throw null; } } + public static FileUploadPurpose FineTune { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static FileUploadPurpose UserData { get { throw null; } } + public static FileUploadPurpose Vision { get { throw null; } } + + public readonly bool Equals(FileUploadPurpose other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileUploadPurpose left, FileUploadPurpose right) { throw null; } + public static implicit operator FileUploadPurpose(string value) { throw null; } + public static implicit operator FileUploadPurpose?(string value) { throw null; } + public static bool operator !=(FileUploadPurpose left, FileUploadPurpose right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class OpenAIFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIFile() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public string Filename { get { throw null; } } + public string Id { get { throw null; } } + public FilePurpose Purpose { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int? SizeInBytes { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public long? SizeInBytesLong { get { throw null; } } + + [System.Obsolete("This property is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] + public FileStatus Status { get { throw null; } } + + [System.Obsolete("This property is obsolete. For details on why a fine-tuning training file failed validation, see the `error` field on the fine-tuning job.")] + public string StatusDetails { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFile JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIFile(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFile PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIFileClient + { + protected OpenAIFileClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public OpenAIFileClient(OpenAIFileClientSettings settings) { } + public OpenAIFileClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIFileClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIFileClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIFileClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIFileClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIFileClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult AddUploadPart(string uploadId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task AddUploadPartAsync(string uploadId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult CancelUpload(string uploadId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task CancelUploadAsync(string uploadId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult CompleteUpload(string uploadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task CompleteUploadAsync(string uploadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult CreateUpload(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task CreateUploadAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DownloadFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DownloadFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DownloadFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(FilePurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(string purpose, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult GetFiles(string purpose, long? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GetFilesAsync(FilePurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetFilesAsync(string purpose, System.ClientModel.Primitives.RequestOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task GetFilesAsync(string purpose, long? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetFilesAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.BinaryData file, string filename, FileUploadPurpose purpose) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.IO.Stream file, string filename, FileUploadPurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(string filePath, FileUploadPurpose purpose) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(System.BinaryData file, string filename, FileUploadPurpose purpose) { throw null; } + public virtual System.Threading.Tasks.Task UploadFileAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(System.IO.Stream file, string filename, FileUploadPurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(string filePath, FileUploadPurpose purpose) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class OpenAIFileClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class OpenAIFileCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIFileCollection() : base(default!) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFileCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIFileCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIFileCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIFileCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIFileCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIFilesModelFactory + { + public static FileDeletionResult FileDeletionResult(string fileId = null, bool deleted = false) { throw null; } + public static OpenAIFileCollection OpenAIFileCollection(System.Collections.Generic.IEnumerable items = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static OpenAIFile OpenAIFileInfo(string id = null, int? sizeInBytes = null, System.DateTimeOffset createdAt = default, string filename = null, FilePurpose purpose = FilePurpose.Assistants, FileStatus status = FileStatus.Uploaded, string statusDetails = null, System.DateTimeOffset? expiresAt = null, long? sizeInBytesLong = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static OpenAIFile OpenAIFileInfo(string id, int? sizeInBytes, System.DateTimeOffset createdAt, string filename, FilePurpose purpose, FileStatus status, string statusDetails) { throw null; } } } -namespace OpenAI.FineTuning { - [Experimental("OPENAI001")] - public class FineTuningCheckpoint : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string JobId { get; } - public FineTuningCheckpointMetrics Metrics { get; } - public string ModelId { get; } - public int StepNumber { get; } - protected virtual FineTuningCheckpoint JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningCheckpoint PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - public override string ToString(); - } - [Experimental("OPENAI001")] - public class FineTuningCheckpointMetrics : IJsonModel, IPersistableModel { - public float? FullValidLoss { get; } - public float? FullValidMeanTokenAccuracy { get; } - public int StepNumber { get; } - public float? TrainLoss { get; } - public float? TrainMeanTokenAccuracy { get; } - public float? ValidLoss { get; } - public float? ValidMeanTokenAccuracy { get; } - protected virtual FineTuningCheckpointMetrics JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningCheckpointMetrics PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningClient { - protected FineTuningClient(); - public FineTuningClient(ApiKeyCredential credential, OpenAIClientOptions options); - public FineTuningClient(ApiKeyCredential credential); - public FineTuningClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public FineTuningClient(AuthenticationPolicy authenticationPolicy); - protected internal FineTuningClient(ClientPipeline pipeline, OpenAIClientOptions options); - protected internal FineTuningClient(ClientPipeline pipeline, Uri endpoint); - public FineTuningClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateFineTuningCheckpointPermission(string fineTunedModelCheckpoint, BinaryContent content, RequestOptions options = null); - public virtual Task CreateFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteFineTuningCheckpointPermission(string fineTunedModelCheckpoint, string permissionId, RequestOptions options); - public virtual Task DeleteFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, string permissionId, RequestOptions options); - public virtual FineTuningJob FineTune(BinaryContent content, bool waitUntilCompleted, RequestOptions options); - public virtual FineTuningJob FineTune(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, CancellationToken cancellationToken = default); - public virtual Task FineTuneAsync(BinaryContent content, bool waitUntilCompleted, RequestOptions options); - public virtual Task FineTuneAsync(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GetFineTuningCheckpointPermissions(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, RequestOptions options); - public virtual Task GetFineTuningCheckpointPermissionsAsync(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, RequestOptions options); - public virtual FineTuningJob GetJob(string jobId, CancellationToken cancellationToken = default); - public virtual Task GetJobAsync(string jobId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetJobs(FineTuningJobCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetJobsAsync(FineTuningJobCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult PauseFineTuningJob(string fineTuningJobId, RequestOptions options); - public virtual Task PauseFineTuningJobAsync(string fineTuningJobId, RequestOptions options); - public virtual ClientResult ResumeFineTuningJob(string fineTuningJobId, RequestOptions options); - public virtual Task ResumeFineTuningJobAsync(string fineTuningJobId, RequestOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningError : IJsonModel, IPersistableModel { - public string Code { get; } - public string InvalidParameter { get; } - public string Message { get; } - protected virtual FineTuningError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningEvent : IJsonModel, IPersistableModel { + +namespace OpenAI.FineTuning +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningCheckpoint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningCheckpoint() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string JobId { get { throw null; } } + public FineTuningCheckpointMetrics Metrics { get { throw null; } } + public string ModelId { get { throw null; } } + public int StepNumber { get { throw null; } } + + protected virtual FineTuningCheckpoint JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningCheckpoint PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningCheckpoint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningCheckpoint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public override string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningCheckpointMetrics : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningCheckpointMetrics() { } + public float? FullValidLoss { get { throw null; } } + public float? FullValidMeanTokenAccuracy { get { throw null; } } + public int StepNumber { get { throw null; } } + public float? TrainLoss { get { throw null; } } + public float? TrainMeanTokenAccuracy { get { throw null; } } + public float? ValidLoss { get { throw null; } } + public float? ValidMeanTokenAccuracy { get { throw null; } } + + protected virtual FineTuningCheckpointMetrics JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningCheckpointMetrics PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningCheckpointMetrics System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningCheckpointMetrics System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningClient + { + protected FineTuningClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public FineTuningClient(FineTuningClientSettings settings) { } + public FineTuningClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public FineTuningClient(System.ClientModel.ApiKeyCredential credential) { } + public FineTuningClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public FineTuningClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal FineTuningClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + protected internal FineTuningClient(System.ClientModel.Primitives.ClientPipeline pipeline, System.Uri endpoint) { } + public FineTuningClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateFineTuningCheckpointPermission(string fineTunedModelCheckpoint, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFineTuningCheckpointPermission(string fineTunedModelCheckpoint, string permissionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, string permissionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob FineTune(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob FineTune(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task FineTuneAsync(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task FineTuneAsync(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFineTuningCheckpointPermissions(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetFineTuningCheckpointPermissionsAsync(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob GetJob(string jobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetJobAsync(string jobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetJobs(FineTuningJobCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetJobsAsync(FineTuningJobCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult PauseFineTuningJob(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task PauseFineTuningJobAsync(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult ResumeFineTuningJob(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task ResumeFineTuningJobAsync(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class FineTuningClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningError() { } + public string Code { get { throw null; } } + public string InvalidParameter { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual FineTuningError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningEvent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningEvent() { } public string Level; - public DateTimeOffset CreatedAt { get; } - public BinaryData Data { get; } - public string Id { get; } - public FineTuningJobEventKind? Kind { get; } - public string Message { get; } - protected virtual FineTuningEvent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningEvent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FineTuningHyperparameters : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - } - [Experimental("OPENAI001")] - public class FineTuningIntegration : IJsonModel, IPersistableModel { - protected virtual FineTuningIntegration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningIntegration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FineTuningJob : OperationResult { + public System.DateTimeOffset CreatedAt { get { throw null; } } + public System.BinaryData Data { get { throw null; } } + public string Id { get { throw null; } } + public FineTuningJobEventKind? Kind { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual FineTuningEvent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningEvent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningEvent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningEvent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FineTuningHyperparameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public int BatchSize { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + readonly FineTuningHyperparameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly FineTuningHyperparameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningIntegration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningIntegration() { } + protected virtual FineTuningIntegration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningIntegration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningIntegration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningIntegration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningJob : System.ClientModel.Primitives.OperationResult + { + internal FineTuningJob() : base(default!) { } public string? Value; - public string BaseModel { get; } - public int BillableTrainedTokenCount { get; } - public DateTimeOffset? EstimatedFinishAt { get; } - [Obsolete("This property is deprecated. Use the MethodHyperparameters property instead.")] - public FineTuningHyperparameters Hyperparameters { get; } - public IReadOnlyList Integrations { get; } - public string JobId { get; } - public IDictionary Metadata { get; } - public MethodHyperparameters? MethodHyperparameters { get; } - public override ContinuationToken? RehydrationToken { get; protected set; } - public IReadOnlyList ResultFileIds { get; } - public int? Seed { get; } - public FineTuningStatus Status { get; } - public string TrainingFileId { get; } - public FineTuningTrainingMethod? TrainingMethod { get; } - public string? UserProvidedSuffix { get; } - public string ValidationFileId { get; } - public virtual ClientResult Cancel(RequestOptions options); - public virtual ClientResult CancelAndUpdate(CancellationToken cancellationToken = default); - public virtual Task CancelAndUpdateAsync(CancellationToken cancellationToken = default); - public virtual Task CancelAsync(RequestOptions options); - public virtual CollectionResult GetCheckpoints(GetCheckpointsOptions? options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetCheckpoints(string? after, int? limit, RequestOptions? options); - public virtual AsyncCollectionResult GetCheckpointsAsync(GetCheckpointsOptions? options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetCheckpointsAsync(string? after, int? limit, RequestOptions? options); - public virtual CollectionResult GetEvents(GetEventsOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetEvents(string? after, int? limit, RequestOptions options); - public virtual AsyncCollectionResult GetEventsAsync(GetEventsOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetEventsAsync(string? after, int? limit, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, ContinuationToken rehydrationToken, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(FineTuningClient client, ContinuationToken rehydrationToken, RequestOptions options); - public static Task RehydrateAsync(FineTuningClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(FineTuningClient client, string JobId, RequestOptions options); - public static Task RehydrateAsync(FineTuningClient client, string JobId, CancellationToken cancellationToken = default); - public override ClientResult UpdateStatus(RequestOptions? options); - public ClientResult UpdateStatus(CancellationToken cancellationToken = default); - public override ValueTask UpdateStatusAsync(RequestOptions? options); - public ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default); - public override void WaitForCompletion(CancellationToken cancellationToken = default); - public override ValueTask WaitForCompletionAsync(CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class FineTuningJobCollectionOptions { - public string AfterJobId { get; set; } - public int? PageSize { get; set; } - } - [Experimental("OPENAI001")] - public readonly partial struct FineTuningJobEventKind : IEquatable { - public FineTuningJobEventKind(string value); - public static FineTuningJobEventKind Message { get; } - public static FineTuningJobEventKind Metrics { get; } - public readonly bool Equals(FineTuningJobEventKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FineTuningJobEventKind left, FineTuningJobEventKind right); - public static implicit operator FineTuningJobEventKind(string value); - public static implicit operator FineTuningJobEventKind?(string value); - public static bool operator !=(FineTuningJobEventKind left, FineTuningJobEventKind right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FineTuningOptions : IJsonModel, IPersistableModel { - public IList Integrations { get; } - public IDictionary Metadata { get; } - public int? Seed { get; set; } - public string Suffix { get; set; } - public FineTuningTrainingMethod TrainingMethod { get; set; } - public string ValidationFile { get; set; } - protected virtual FineTuningOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FineTuningStatus : IEquatable, IEquatable { - public FineTuningStatus(string value); - public static FineTuningStatus Cancelled { get; } - public static FineTuningStatus Failed { get; } - public bool InProgress { get; } - public static FineTuningStatus Queued { get; } - public static FineTuningStatus Running { get; } - public static FineTuningStatus Succeeded { get; } - public static FineTuningStatus ValidatingFiles { get; } - public readonly bool Equals(FineTuningStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - public readonly bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FineTuningStatus left, FineTuningStatus right); - public static implicit operator FineTuningStatus(string value); - public static implicit operator FineTuningStatus?(string value); - public static bool operator !=(FineTuningStatus left, FineTuningStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FineTuningTrainingMethod : IJsonModel, IPersistableModel { - public static FineTuningTrainingMethod CreateDirectPreferenceOptimization(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null, HyperparameterBetaFactor betaFactor = null); - public static FineTuningTrainingMethod CreateSupervised(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null); - protected virtual FineTuningTrainingMethod JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningTrainingMethod PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GetCheckpointsOptions { - public string AfterCheckpointId { get; set; } - public int? PageSize { get; set; } - } - [Experimental("OPENAI001")] - public class GetEventsOptions { - public string AfterEventId { get; set; } - public int? PageSize { get; set; } - } - [Experimental("OPENAI001")] - public class HyperparameterBatchSize : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterBatchSize(int batchSize); - public static HyperparameterBatchSize CreateAuto(); - public static HyperparameterBatchSize CreateSize(int batchSize); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterBatchSize first, HyperparameterBatchSize second); - public static implicit operator HyperparameterBatchSize(int batchSize); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterBatchSize first, HyperparameterBatchSize second); - } - [Experimental("OPENAI001")] - public class HyperparameterBetaFactor : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterBetaFactor(int beta); - public static HyperparameterBetaFactor CreateAuto(); - public static HyperparameterBetaFactor CreateBeta(int beta); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterBetaFactor first, HyperparameterBetaFactor second); - public static implicit operator HyperparameterBetaFactor(int beta); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterBetaFactor first, HyperparameterBetaFactor second); - } - [Experimental("OPENAI001")] - public class HyperparameterEpochCount : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterEpochCount(int epochCount); - public static HyperparameterEpochCount CreateAuto(); - public static HyperparameterEpochCount CreateEpochCount(int epochCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterEpochCount first, HyperparameterEpochCount second); - public static implicit operator HyperparameterEpochCount(int epochCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterEpochCount first, HyperparameterEpochCount second); - } - [Experimental("OPENAI001")] - public class HyperparameterLearningRate : IEquatable, IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterLearningRate(double learningRateMultiplier); - public static HyperparameterLearningRate CreateAuto(); - public static HyperparameterLearningRate CreateMultiplier(double learningRateMultiplier); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(double other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterLearningRate first, HyperparameterLearningRate second); - public static implicit operator HyperparameterLearningRate(double learningRateMultiplier); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterLearningRate first, HyperparameterLearningRate second); - } - [Experimental("OPENAI001")] - public class HyperparametersForDPO : MethodHyperparameters, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public float Beta { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - protected virtual HyperparametersForDPO JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual HyperparametersForDPO PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class HyperparametersForSupervised : MethodHyperparameters, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - protected virtual HyperparametersForSupervised JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual HyperparametersForSupervised PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MethodHyperparameters { - } - [Experimental("OPENAI001")] - public class WeightsAndBiasesIntegration : FineTuningIntegration, IJsonModel, IPersistableModel { - public WeightsAndBiasesIntegration(string projectName); - public string DisplayName { get; set; } - public string EntityName { get; set; } - public string ProjectName { get; set; } - public IList Tags { get; } - protected override FineTuningIntegration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override FineTuningIntegration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + public string BaseModel { get { throw null; } } + public int BillableTrainedTokenCount { get { throw null; } } + public System.DateTimeOffset? EstimatedFinishAt { get { throw null; } } + + [System.Obsolete("This property is deprecated. Use the MethodHyperparameters property instead.")] + public FineTuningHyperparameters Hyperparameters { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Integrations { get { throw null; } } + public string JobId { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public MethodHyperparameters? MethodHyperparameters { get { throw null; } } + public override System.ClientModel.ContinuationToken? RehydrationToken { get { throw null; } protected set { } } + public System.Collections.Generic.IReadOnlyList ResultFileIds { get { throw null; } } + public int? Seed { get { throw null; } } + public FineTuningStatus Status { get { throw null; } } + public string TrainingFileId { get { throw null; } } + public FineTuningTrainingMethod? TrainingMethod { get { throw null; } } + public string? UserProvidedSuffix { get { throw null; } } + public string ValidationFileId { get { throw null; } } + + public virtual System.ClientModel.ClientResult Cancel(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelAndUpdate(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelAndUpdateAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetCheckpoints(GetCheckpointsOptions? options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetCheckpoints(string? after, int? limit, System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetCheckpointsAsync(GetCheckpointsOptions? options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetCheckpointsAsync(string? after, int? limit, System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.CollectionResult GetEvents(GetEventsOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetEvents(string? after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetEventsAsync(GetEventsOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetEventsAsync(string? after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, string JobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, string JobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.ClientModel.ClientResult UpdateStatus(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public System.ClientModel.ClientResult UpdateStatus(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override void WaitForCompletion(System.Threading.CancellationToken cancellationToken = default) { } + public override System.Threading.Tasks.ValueTask WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningJobCollectionOptions + { + public string AfterJobId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FineTuningJobEventKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FineTuningJobEventKind(string value) { } + public static FineTuningJobEventKind Message { get { throw null; } } + public static FineTuningJobEventKind Metrics { get { throw null; } } + + public readonly bool Equals(FineTuningJobEventKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FineTuningJobEventKind left, FineTuningJobEventKind right) { throw null; } + public static implicit operator FineTuningJobEventKind(string value) { throw null; } + public static implicit operator FineTuningJobEventKind?(string value) { throw null; } + public static bool operator !=(FineTuningJobEventKind left, FineTuningJobEventKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Integrations { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public int? Seed { get { throw null; } set { } } + public string Suffix { get { throw null; } set { } } + public FineTuningTrainingMethod TrainingMethod { get { throw null; } set { } } + public string ValidationFile { get { throw null; } set { } } + + protected virtual FineTuningOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FineTuningStatus : System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FineTuningStatus(string value) { } + public static FineTuningStatus Cancelled { get { throw null; } } + public static FineTuningStatus Failed { get { throw null; } } + public bool InProgress { get { throw null; } } + public static FineTuningStatus Queued { get { throw null; } } + public static FineTuningStatus Running { get { throw null; } } + public static FineTuningStatus Succeeded { get { throw null; } } + public static FineTuningStatus ValidatingFiles { get { throw null; } } + + public readonly bool Equals(FineTuningStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + public readonly bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FineTuningStatus left, FineTuningStatus right) { throw null; } + public static implicit operator FineTuningStatus(string value) { throw null; } + public static implicit operator FineTuningStatus?(string value) { throw null; } + public static bool operator !=(FineTuningStatus left, FineTuningStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuningTrainingMethod : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningTrainingMethod() { } + public static FineTuningTrainingMethod CreateDirectPreferenceOptimization(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null, HyperparameterBetaFactor betaFactor = null) { throw null; } + public static FineTuningTrainingMethod CreateSupervised(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null) { throw null; } + protected virtual FineTuningTrainingMethod JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningTrainingMethod PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningTrainingMethod System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningTrainingMethod System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GetCheckpointsOptions + { + public string AfterCheckpointId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GetEventsOptions + { + public string AfterEventId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterBatchSize : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterBatchSize(int batchSize) { } + public static HyperparameterBatchSize CreateAuto() { throw null; } + public static HyperparameterBatchSize CreateSize(int batchSize) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterBatchSize first, HyperparameterBatchSize second) { throw null; } + public static implicit operator HyperparameterBatchSize(int batchSize) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterBatchSize first, HyperparameterBatchSize second) { throw null; } + HyperparameterBatchSize System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterBatchSize System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterBetaFactor : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterBetaFactor(int beta) { } + public static HyperparameterBetaFactor CreateAuto() { throw null; } + public static HyperparameterBetaFactor CreateBeta(int beta) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterBetaFactor first, HyperparameterBetaFactor second) { throw null; } + public static implicit operator HyperparameterBetaFactor(int beta) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterBetaFactor first, HyperparameterBetaFactor second) { throw null; } + HyperparameterBetaFactor System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterBetaFactor System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterEpochCount : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterEpochCount(int epochCount) { } + public static HyperparameterEpochCount CreateAuto() { throw null; } + public static HyperparameterEpochCount CreateEpochCount(int epochCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterEpochCount first, HyperparameterEpochCount second) { throw null; } + public static implicit operator HyperparameterEpochCount(int epochCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterEpochCount first, HyperparameterEpochCount second) { throw null; } + HyperparameterEpochCount System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterEpochCount System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparameterLearningRate : System.IEquatable, System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterLearningRate(double learningRateMultiplier) { } + public static HyperparameterLearningRate CreateAuto() { throw null; } + public static HyperparameterLearningRate CreateMultiplier(double learningRateMultiplier) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(double other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterLearningRate first, HyperparameterLearningRate second) { throw null; } + public static implicit operator HyperparameterLearningRate(double learningRateMultiplier) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterLearningRate first, HyperparameterLearningRate second) { throw null; } + HyperparameterLearningRate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterLearningRate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparametersForDPO : MethodHyperparameters, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int BatchSize { get { throw null; } } + public float Beta { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + protected virtual HyperparametersForDPO JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual HyperparametersForDPO PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + HyperparametersForDPO System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparametersForDPO System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class HyperparametersForSupervised : MethodHyperparameters, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int BatchSize { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + protected virtual HyperparametersForSupervised JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual HyperparametersForSupervised PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + HyperparametersForSupervised System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparametersForSupervised System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MethodHyperparameters + { + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WeightsAndBiasesIntegration : FineTuningIntegration, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WeightsAndBiasesIntegration(string projectName) { } + public string DisplayName { get { throw null; } set { } } + public string EntityName { get { throw null; } set { } } + public string ProjectName { get { throw null; } set { } } + public System.Collections.Generic.IList Tags { get { throw null; } } + + protected override FineTuningIntegration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override FineTuningIntegration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WeightsAndBiasesIntegration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WeightsAndBiasesIntegration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Graders { - [Experimental("OPENAI001")] - public class FineTuneReinforcementHyperparameters : IJsonModel, IPersistableModel { - public BinaryData BatchSize { get; set; } - public BinaryData ComputeMultiplier { get; set; } - public BinaryData EvalInterval { get; set; } - public BinaryData EvalSamples { get; set; } - public BinaryData LearningRateMultiplier { get; set; } - public BinaryData NEpochs { get; set; } - protected virtual FineTuneReinforcementHyperparameters JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuneReinforcementHyperparameters PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - [PersistableModelProxy(typeof(UnknownGrader))] - public class Grader : IJsonModel, IPersistableModel { - protected virtual Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderClient { - protected GraderClient(); - public GraderClient(ApiKeyCredential credential, OpenAIClientOptions options); - public GraderClient(ApiKeyCredential credential); - public GraderClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public GraderClient(AuthenticationPolicy authenticationPolicy); - protected internal GraderClient(ClientPipeline pipeline, OpenAIClientOptions options); - public GraderClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult RunGrader(BinaryContent content, RequestOptions options = null); - public virtual Task RunGraderAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult ValidateGrader(BinaryContent content, RequestOptions options = null); - public virtual Task ValidateGraderAsync(BinaryContent content, RequestOptions options = null); - } - [Experimental("OPENAI001")] - public class GraderLabelModel : Grader, IJsonModel, IPersistableModel { - public IList Labels { get; } - public string Model { get; set; } - public string Name { get; set; } - public IList PassingLabels { get; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderMulti : Grader, IJsonModel, IPersistableModel { - public GraderMulti(string name, BinaryData graders, string calculateOutput); - public string CalculateOutput { get; set; } - public BinaryData Graders { get; set; } - public string Name { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderPython : Grader, IJsonModel, IPersistableModel { - public GraderPython(string name, string source); - public string ImageTag { get; set; } - public string Name { get; set; } - public string Source { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderScoreModel : Grader, IJsonModel, IPersistableModel { - public string Model { get; set; } - public string Name { get; set; } - public IList Range { get; } - public BinaryData SamplingParams { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GraderStringCheck : Grader, IJsonModel, IPersistableModel { - public GraderStringCheck(string name, string input, string reference, GraderStringCheckOperation operation); - public string Input { get; set; } - public string Name { get; set; } - public GraderStringCheckOperation Operation { get; set; } - public string Reference { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GraderStringCheckOperation : IEquatable { - public GraderStringCheckOperation(string value); - public static GraderStringCheckOperation Eq { get; } - public static GraderStringCheckOperation Ilike { get; } - public static GraderStringCheckOperation Like { get; } - public static GraderStringCheckOperation Ne { get; } - public readonly bool Equals(GraderStringCheckOperation other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right); - public static implicit operator GraderStringCheckOperation(string value); - public static implicit operator GraderStringCheckOperation?(string value); - public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class GraderTextSimilarity : Grader, IJsonModel, IPersistableModel { - public GraderTextSimilarity(string name, string input, string reference, GraderTextSimilarityEvaluationMetric evaluationMetric); - public GraderTextSimilarityEvaluationMetric EvaluationMetric { get; set; } - public string Input { get; set; } - public string Name { get; set; } - public string Reference { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GraderTextSimilarityEvaluationMetric : IEquatable { - public GraderTextSimilarityEvaluationMetric(string value); - public static GraderTextSimilarityEvaluationMetric Bleu { get; } - public static GraderTextSimilarityEvaluationMetric FuzzyMatch { get; } - public static GraderTextSimilarityEvaluationMetric Gleu { get; } - public static GraderTextSimilarityEvaluationMetric Meteor { get; } - public static GraderTextSimilarityEvaluationMetric Rouge1 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge2 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge3 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge4 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge5 { get; } - public static GraderTextSimilarityEvaluationMetric RougeL { get; } - public readonly bool Equals(GraderTextSimilarityEvaluationMetric other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); - public static implicit operator GraderTextSimilarityEvaluationMetric(string value); - public static implicit operator GraderTextSimilarityEvaluationMetric?(string value); - public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct GraderType : IEquatable { - public GraderType(string value); - public static GraderType LabelModel { get; } - public static GraderType Multi { get; } - public static GraderType Python { get; } - public static GraderType ScoreModel { get; } - public static GraderType StringCheck { get; } - public static GraderType TextSimilarity { get; } - public readonly bool Equals(GraderType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderType left, GraderType right); - public static implicit operator GraderType(string value); - public static implicit operator GraderType?(string value); - public static bool operator !=(GraderType left, GraderType right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class RunGraderRequest : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - public BinaryData Item { get; } - public string ModelSample { get; } - protected virtual RunGraderRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunGraderResponse : IJsonModel, IPersistableModel { - public RunGraderResponseMetadata Metadata { get; } - public BinaryData ModelGraderTokenUsagePerModel { get; } - public float Reward { get; } - public BinaryData SubRewards { get; } - protected virtual RunGraderResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RunGraderResponse(ClientResult result); - protected virtual RunGraderResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunGraderResponseMetadata : IJsonModel, IPersistableModel { - public RunGraderResponseMetadataErrors Errors { get; } - public float ExecutionTime { get; } - public string Kind { get; } - public string Name { get; } - public string SampledModelName { get; } - public BinaryData Scores { get; } - public int? TokenUsage { get; } - protected virtual RunGraderResponseMetadata JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderResponseMetadata PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class RunGraderResponseMetadataErrors : IJsonModel, IPersistableModel { - public bool FormulaParseError { get; } - public bool InvalidVariableError { get; } - public bool ModelGraderParseError { get; } - public bool ModelGraderRefusalError { get; } - public bool ModelGraderServerError { get; } - public string ModelGraderServerErrorDetails { get; } - public bool OtherError { get; } - public bool PythonGraderRuntimeError { get; } - public string PythonGraderRuntimeErrorDetails { get; } - public bool PythonGraderServerError { get; } - public string PythonGraderServerErrorType { get; } - public bool SampleParseError { get; } - public bool TruncatedObservationError { get; } - public bool UnresponsiveRewardError { get; } - protected virtual RunGraderResponseMetadataErrors JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderResponseMetadataErrors PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class UnknownGrader : Grader, IJsonModel, IPersistableModel { - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ValidateGraderRequest : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - protected virtual ValidateGraderRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ValidateGraderRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ValidateGraderResponse : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - protected virtual ValidateGraderResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ValidateGraderResponse(ClientResult result); - protected virtual ValidateGraderResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + +namespace OpenAI.Graders +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FineTuneReinforcementHyperparameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.BinaryData BatchSize { get { throw null; } set { } } + public System.BinaryData ComputeMultiplier { get { throw null; } set { } } + public System.BinaryData EvalInterval { get { throw null; } set { } } + public System.BinaryData EvalSamples { get { throw null; } set { } } + public System.BinaryData LearningRateMultiplier { get { throw null; } set { } } + public System.BinaryData NEpochs { get { throw null; } set { } } + + protected virtual FineTuneReinforcementHyperparameters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuneReinforcementHyperparameters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuneReinforcementHyperparameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuneReinforcementHyperparameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.ClientModel.Primitives.PersistableModelProxy(typeof(UnknownGrader))] + public partial class Grader : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal Grader() { } + protected virtual Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Grader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Grader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderClient + { + protected GraderClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public GraderClient(GraderClientSettings settings) { } + public GraderClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public GraderClient(System.ClientModel.ApiKeyCredential credential) { } + public GraderClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public GraderClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal GraderClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public GraderClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult RunGrader(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RunGraderAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ValidateGrader(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ValidateGraderAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class GraderClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderLabelModel : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GraderLabelModel() { } + public System.Collections.Generic.IList Labels { get { throw null; } } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList PassingLabels { get { throw null; } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderLabelModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderLabelModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderMulti : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderMulti(string name, System.BinaryData graders, string calculateOutput) { } + public string CalculateOutput { get { throw null; } set { } } + public System.BinaryData Graders { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderMulti System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderMulti System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderPython : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderPython(string name, string source) { } + public string ImageTag { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Source { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderPython System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderPython System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderScoreModel : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GraderScoreModel() { } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Range { get { throw null; } } + public System.BinaryData SamplingParams { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderScoreModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderScoreModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderStringCheck : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderStringCheck(string name, string input, string reference, GraderStringCheckOperation operation) { } + public string Input { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public GraderStringCheckOperation Operation { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderStringCheck System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderStringCheck System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GraderStringCheckOperation : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderStringCheckOperation(string value) { } + public static GraderStringCheckOperation Eq { get { throw null; } } + public static GraderStringCheckOperation Ilike { get { throw null; } } + public static GraderStringCheckOperation Like { get { throw null; } } + public static GraderStringCheckOperation Ne { get { throw null; } } + + public readonly bool Equals(GraderStringCheckOperation other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right) { throw null; } + public static implicit operator GraderStringCheckOperation(string value) { throw null; } + public static implicit operator GraderStringCheckOperation?(string value) { throw null; } + public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GraderTextSimilarity : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderTextSimilarity(string name, string input, string reference, GraderTextSimilarityEvaluationMetric evaluationMetric) { } + public GraderTextSimilarityEvaluationMetric EvaluationMetric { get { throw null; } set { } } + public string Input { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderTextSimilarity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderTextSimilarity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GraderTextSimilarityEvaluationMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderTextSimilarityEvaluationMetric(string value) { } + public static GraderTextSimilarityEvaluationMetric Bleu { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric FuzzyMatch { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Gleu { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Meteor { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge1 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge2 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge3 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge4 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge5 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric RougeL { get { throw null; } } + + public readonly bool Equals(GraderTextSimilarityEvaluationMetric other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right) { throw null; } + public static implicit operator GraderTextSimilarityEvaluationMetric(string value) { throw null; } + public static implicit operator GraderTextSimilarityEvaluationMetric?(string value) { throw null; } + public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GraderType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderType(string value) { } + public static GraderType LabelModel { get { throw null; } } + public static GraderType Multi { get { throw null; } } + public static GraderType Python { get { throw null; } } + public static GraderType ScoreModel { get { throw null; } } + public static GraderType StringCheck { get { throw null; } } + public static GraderType TextSimilarity { get { throw null; } } + + public readonly bool Equals(GraderType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderType left, GraderType right) { throw null; } + public static implicit operator GraderType(string value) { throw null; } + public static implicit operator GraderType?(string value) { throw null; } + public static bool operator !=(GraderType left, GraderType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderRequest() { } + public System.BinaryData Grader { get { throw null; } } + public System.BinaryData Item { get { throw null; } } + public string ModelSample { get { throw null; } } + + protected virtual RunGraderRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponse() { } + public RunGraderResponseMetadata Metadata { get { throw null; } } + public System.BinaryData ModelGraderTokenUsagePerModel { get { throw null; } } + public float Reward { get { throw null; } } + public System.BinaryData SubRewards { get { throw null; } } + + protected virtual RunGraderResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RunGraderResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual RunGraderResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderResponseMetadata : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponseMetadata() { } + public RunGraderResponseMetadataErrors Errors { get { throw null; } } + public float ExecutionTime { get { throw null; } } + public string Kind { get { throw null; } } + public string Name { get { throw null; } } + public string SampledModelName { get { throw null; } } + public System.BinaryData Scores { get { throw null; } } + public int? TokenUsage { get { throw null; } } + + protected virtual RunGraderResponseMetadata JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderResponseMetadata PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponseMetadata System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponseMetadata System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class RunGraderResponseMetadataErrors : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponseMetadataErrors() { } + public bool FormulaParseError { get { throw null; } } + public bool InvalidVariableError { get { throw null; } } + public bool ModelGraderParseError { get { throw null; } } + public bool ModelGraderRefusalError { get { throw null; } } + public bool ModelGraderServerError { get { throw null; } } + public string ModelGraderServerErrorDetails { get { throw null; } } + public bool OtherError { get { throw null; } } + public bool PythonGraderRuntimeError { get { throw null; } } + public string PythonGraderRuntimeErrorDetails { get { throw null; } } + public bool PythonGraderServerError { get { throw null; } } + public string PythonGraderServerErrorType { get { throw null; } } + public bool SampleParseError { get { throw null; } } + public bool TruncatedObservationError { get { throw null; } } + public bool UnresponsiveRewardError { get { throw null; } } + + protected virtual RunGraderResponseMetadataErrors JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderResponseMetadataErrors PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponseMetadataErrors System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponseMetadataErrors System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class UnknownGrader : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal UnknownGrader() { } + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Grader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Grader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ValidateGraderRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidateGraderRequest() { } + public System.BinaryData Grader { get { throw null; } } + + protected virtual ValidateGraderRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ValidateGraderRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ValidateGraderRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ValidateGraderRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ValidateGraderResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidateGraderResponse() { } + public System.BinaryData Grader { get { throw null; } } + + protected virtual ValidateGraderResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ValidateGraderResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual ValidateGraderResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ValidateGraderResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ValidateGraderResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Images { - public class GeneratedImage : IJsonModel, IPersistableModel { - public BinaryData ImageBytes { get; } - public Uri ImageUri { get; } - public string RevisedPrompt { get; } - [Experimental("OPENAI001")] - protected virtual GeneratedImage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual GeneratedImage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageBackground : IEquatable { - public GeneratedImageBackground(string value); - public static GeneratedImageBackground Auto { get; } - public static GeneratedImageBackground Opaque { get; } - public static GeneratedImageBackground Transparent { get; } - public readonly bool Equals(GeneratedImageBackground other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageBackground left, GeneratedImageBackground right); - public static implicit operator GeneratedImageBackground(string value); - public static implicit operator GeneratedImageBackground?(string value); - public static bool operator !=(GeneratedImageBackground left, GeneratedImageBackground right); - public override readonly string ToString(); - } - public class GeneratedImageCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public GeneratedImageBackground? Background { get; } - public DateTimeOffset CreatedAt { get; } - [Experimental("OPENAI001")] - public GeneratedImageFileFormat? OutputFileFormat { get; } - [Experimental("OPENAI001")] - public GeneratedImageQuality? Quality { get; } - [Experimental("OPENAI001")] - public GeneratedImageSize? Size { get; } - [Experimental("OPENAI001")] - public ImageTokenUsage Usage { get; } - [Experimental("OPENAI001")] - protected virtual GeneratedImageCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator GeneratedImageCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual GeneratedImageCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageFileFormat : IEquatable { - public GeneratedImageFileFormat(string value); - public static GeneratedImageFileFormat Jpeg { get; } - public static GeneratedImageFileFormat Png { get; } - public static GeneratedImageFileFormat Webp { get; } - public readonly bool Equals(GeneratedImageFileFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageFileFormat left, GeneratedImageFileFormat right); - public static implicit operator GeneratedImageFileFormat(string value); - public static implicit operator GeneratedImageFileFormat?(string value); - public static bool operator !=(GeneratedImageFileFormat left, GeneratedImageFileFormat right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageFormat : IEquatable { - public GeneratedImageFormat(string value); - public static GeneratedImageFormat Bytes { get; } - public static GeneratedImageFormat Uri { get; } - public readonly bool Equals(GeneratedImageFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageFormat left, GeneratedImageFormat right); - public static implicit operator GeneratedImageFormat(string value); - public static implicit operator GeneratedImageFormat?(string value); - public static bool operator !=(GeneratedImageFormat left, GeneratedImageFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageModerationLevel : IEquatable { - public GeneratedImageModerationLevel(string value); - public static GeneratedImageModerationLevel Auto { get; } - public static GeneratedImageModerationLevel Low { get; } - public readonly bool Equals(GeneratedImageModerationLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right); - public static implicit operator GeneratedImageModerationLevel(string value); - public static implicit operator GeneratedImageModerationLevel?(string value); - public static bool operator !=(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageQuality : IEquatable { - public GeneratedImageQuality(string value); - [Experimental("OPENAI001")] - public static GeneratedImageQuality Auto { get; } - [Experimental("OPENAI001")] - public static GeneratedImageQuality HD { get; } - public static GeneratedImageQuality High { get; } - [Experimental("OPENAI001")] - public static GeneratedImageQuality Low { get; } - [Experimental("OPENAI001")] - public static GeneratedImageQuality Medium { get; } - public static GeneratedImageQuality Standard { get; } - public readonly bool Equals(GeneratedImageQuality other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageQuality left, GeneratedImageQuality right); - public static implicit operator GeneratedImageQuality(string value); - public static implicit operator GeneratedImageQuality?(string value); - public static bool operator !=(GeneratedImageQuality left, GeneratedImageQuality right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageSize : IEquatable { + +namespace OpenAI.Images +{ + public partial class GeneratedImage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GeneratedImage() { } + public System.BinaryData ImageBytes { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + public string RevisedPrompt { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GeneratedImage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GeneratedImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GeneratedImageBackground : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageBackground(string value) { } + public static GeneratedImageBackground Auto { get { throw null; } } + public static GeneratedImageBackground Opaque { get { throw null; } } + public static GeneratedImageBackground Transparent { get { throw null; } } + + public readonly bool Equals(GeneratedImageBackground other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageBackground left, GeneratedImageBackground right) { throw null; } + public static implicit operator GeneratedImageBackground(string value) { throw null; } + public static implicit operator GeneratedImageBackground?(string value) { throw null; } + public static bool operator !=(GeneratedImageBackground left, GeneratedImageBackground right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class GeneratedImageCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GeneratedImageCollection() : base(default!) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageBackground? Background { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageQuality? Quality { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageSize? Size { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageTokenUsage Usage { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImageCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator GeneratedImageCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual GeneratedImageCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GeneratedImageCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GeneratedImageCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GeneratedImageFileFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageFileFormat(string value) { } + public static GeneratedImageFileFormat Jpeg { get { throw null; } } + public static GeneratedImageFileFormat Png { get { throw null; } } + public static GeneratedImageFileFormat Webp { get { throw null; } } + + public readonly bool Equals(GeneratedImageFileFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageFileFormat left, GeneratedImageFileFormat right) { throw null; } + public static implicit operator GeneratedImageFileFormat(string value) { throw null; } + public static implicit operator GeneratedImageFileFormat?(string value) { throw null; } + public static bool operator !=(GeneratedImageFileFormat left, GeneratedImageFileFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageFormat(string value) { } + public static GeneratedImageFormat Bytes { get { throw null; } } + public static GeneratedImageFormat Uri { get { throw null; } } + + public readonly bool Equals(GeneratedImageFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageFormat left, GeneratedImageFormat right) { throw null; } + public static implicit operator GeneratedImageFormat(string value) { throw null; } + public static implicit operator GeneratedImageFormat?(string value) { throw null; } + public static bool operator !=(GeneratedImageFormat left, GeneratedImageFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GeneratedImageModerationLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageModerationLevel(string value) { } + public static GeneratedImageModerationLevel Auto { get { throw null; } } + public static GeneratedImageModerationLevel Low { get { throw null; } } + + public readonly bool Equals(GeneratedImageModerationLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right) { throw null; } + public static implicit operator GeneratedImageModerationLevel(string value) { throw null; } + public static implicit operator GeneratedImageModerationLevel?(string value) { throw null; } + public static bool operator !=(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageQuality : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageQuality(string value) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality Auto { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality HD { get { throw null; } } + public static GeneratedImageQuality High { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality Low { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageQuality Medium { get { throw null; } } + public static GeneratedImageQuality Standard { get { throw null; } } + + public readonly bool Equals(GeneratedImageQuality other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageQuality left, GeneratedImageQuality right) { throw null; } + public static implicit operator GeneratedImageQuality(string value) { throw null; } + public static implicit operator GeneratedImageQuality?(string value) { throw null; } + public static bool operator !=(GeneratedImageQuality left, GeneratedImageQuality right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; public static readonly GeneratedImageSize W1024xH1024; - [Experimental("OPENAI001")] + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] public static readonly GeneratedImageSize W1024xH1536; public static readonly GeneratedImageSize W1024xH1792; - [Experimental("OPENAI001")] + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] public static readonly GeneratedImageSize W1536xH1024; public static readonly GeneratedImageSize W1792xH1024; public static readonly GeneratedImageSize W256xH256; public static readonly GeneratedImageSize W512xH512; - public GeneratedImageSize(int width, int height); - [Experimental("OPENAI001")] - public static GeneratedImageSize Auto { get; } - public readonly bool Equals(GeneratedImageSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageSize left, GeneratedImageSize right); - public static bool operator !=(GeneratedImageSize left, GeneratedImageSize right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageStyle : IEquatable { - public GeneratedImageStyle(string value); - public static GeneratedImageStyle Natural { get; } - public static GeneratedImageStyle Vivid { get; } - public readonly bool Equals(GeneratedImageStyle other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageStyle left, GeneratedImageStyle right); - public static implicit operator GeneratedImageStyle(string value); - public static implicit operator GeneratedImageStyle?(string value); - public static bool operator !=(GeneratedImageStyle left, GeneratedImageStyle right); - public override readonly string ToString(); - } - public class ImageClient { - protected ImageClient(); - protected internal ImageClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ImageClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ImageClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public ImageClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public ImageClient(string model, AuthenticationPolicy authenticationPolicy); - public ImageClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateImage(string prompt, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageAsync(string prompt, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(Stream image, string imageFilename, string prompt, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(string imageFilePath, string prompt, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdit(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null); - public virtual Task> GenerateImageEditAsync(Stream image, string imageFilename, string prompt, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditAsync(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditAsync(string imageFilePath, string prompt, ImageEditOptions options = null); - public virtual Task> GenerateImageEditAsync(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdits(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult GenerateImageEdits(Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdits(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdits(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdits(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null); - public virtual Task GenerateImageEditsAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> GenerateImageEditsAsync(Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditsAsync(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditsAsync(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null); - public virtual Task> GenerateImageEditsAsync(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null); - public virtual ClientResult GenerateImages(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateImages(string prompt, int imageCount, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateImagesAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateImagesAsync(string prompt, int imageCount, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariation(Stream image, string imageFilename, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariation(string imageFilePath, ImageVariationOptions options = null); - public virtual Task> GenerateImageVariationAsync(Stream image, string imageFilename, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageVariationAsync(string imageFilePath, ImageVariationOptions options = null); - public virtual ClientResult GenerateImageVariations(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult GenerateImageVariations(Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariations(string imageFilePath, int imageCount, ImageVariationOptions options = null); - public virtual Task GenerateImageVariationsAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> GenerateImageVariationsAsync(Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageVariationsAsync(string imageFilePath, int imageCount, ImageVariationOptions options = null); - } - public class ImageEditOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public GeneratedImageBackground? Background { get; set; } - public string EndUserId { get; set; } - [Experimental("OPENAI001")] - public ImageInputFidelity? InputFidelity { get; set; } - [Experimental("OPENAI001")] - public int? OutputCompressionFactor { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageFileFormat? OutputFileFormat { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageQuality? Quality { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - [Experimental("OPENAI001")] - protected virtual ImageEditOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ImageEditOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageGenerationOptions : IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - public GeneratedImageBackground? Background { get; set; } - public string EndUserId { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageModerationLevel? ModerationLevel { get; set; } - [Experimental("OPENAI001")] - public int? OutputCompressionFactor { get; set; } - [Experimental("OPENAI001")] - public GeneratedImageFileFormat? OutputFileFormat { get; set; } - public GeneratedImageQuality? Quality { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - public GeneratedImageStyle? Style { get; set; } - [Experimental("OPENAI001")] - protected virtual ImageGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ImageGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageInputFidelity : IEquatable { - public ImageInputFidelity(string value); - public static ImageInputFidelity High { get; } - public static ImageInputFidelity Low { get; } - public readonly bool Equals(ImageInputFidelity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageInputFidelity left, ImageInputFidelity right); - public static implicit operator ImageInputFidelity(string value); - public static implicit operator ImageInputFidelity?(string value); - public static bool operator !=(ImageInputFidelity left, ImageInputFidelity right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ImageInputTokenUsageDetails : IJsonModel, IPersistableModel { - public long ImageTokenCount { get; } - public long TextTokenCount { get; } - protected virtual ImageInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ImageOutputTokenUsageDetails : IJsonModel, IPersistableModel { - public long ImageTokenCount { get; } - public long TextTokenCount { get; } - protected virtual ImageOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ImageTokenUsage : IJsonModel, IPersistableModel { - public long InputTokenCount { get; } - public ImageInputTokenUsageDetails InputTokenDetails { get; } - public long OutputTokenCount { get; } - public ImageOutputTokenUsageDetails OutputTokenDetails { get; } - public long TotalTokenCount { get; } - protected virtual ImageTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageVariationOptions : IJsonModel, IPersistableModel { - public string EndUserId { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - [Experimental("OPENAI001")] - protected virtual ImageVariationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ImageVariationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIImagesModelFactory { - public static GeneratedImage GeneratedImage(BinaryData imageBytes = null, Uri imageUri = null, string revisedPrompt = null); - [Experimental("OPENAI001")] - public static GeneratedImageCollection GeneratedImageCollection(DateTimeOffset createdAt = default, IEnumerable items = null, GeneratedImageBackground? background = null, GeneratedImageFileFormat? outputFileFormat = null, GeneratedImageSize? size = null, GeneratedImageQuality? quality = null, ImageTokenUsage usage = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static GeneratedImageCollection GeneratedImageCollection(DateTimeOffset createdAt, IEnumerable items); - [Experimental("OPENAI001")] - public static ImageInputTokenUsageDetails ImageInputTokenUsageDetails(long textTokenCount = 0, long imageTokenCount = 0); - [Experimental("OPENAI001")] - public static ImageTokenUsage ImageTokenUsage(long inputTokenCount = 0, long outputTokenCount = 0, long totalTokenCount = 0, ImageInputTokenUsageDetails inputTokenDetails = null, ImageOutputTokenUsageDetails outputTokenDetails = null); + public GeneratedImageSize(int width, int height) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageSize Auto { get { throw null; } } + + public readonly bool Equals(GeneratedImageSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageSize left, GeneratedImageSize right) { throw null; } + public static bool operator !=(GeneratedImageSize left, GeneratedImageSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageStyle : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageStyle(string value) { } + public static GeneratedImageStyle Natural { get { throw null; } } + public static GeneratedImageStyle Vivid { get { throw null; } } + + public readonly bool Equals(GeneratedImageStyle other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageStyle left, GeneratedImageStyle right) { throw null; } + public static implicit operator GeneratedImageStyle(string value) { throw null; } + public static implicit operator GeneratedImageStyle?(string value) { throw null; } + public static bool operator !=(GeneratedImageStyle left, GeneratedImageStyle right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ImageClient + { + protected ImageClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ImageClient(ImageClientSettings settings) { } + protected internal ImageClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ImageClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ImageClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ImageClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateImage(string prompt, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageAsync(string prompt, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(System.IO.Stream image, string imageFilename, string prompt, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(string imageFilePath, string prompt, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(System.IO.Stream image, string imageFilename, string prompt, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(string imageFilePath, string prompt, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.IO.Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImageEditsAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(System.IO.Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImages(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImages(string prompt, int imageCount, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImagesAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImagesAsync(string prompt, int imageCount, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariation(System.IO.Stream image, string imageFilename, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariation(string imageFilePath, ImageVariationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationAsync(System.IO.Stream image, string imageFilename, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationAsync(string imageFilePath, ImageVariationOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(System.IO.Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(string imageFilePath, int imageCount, ImageVariationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImageVariationsAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationsAsync(System.IO.Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationsAsync(string imageFilePath, int imageCount, ImageVariationOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ImageClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ImageEditOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageBackground? Background { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ImageInputFidelity? InputFidelity { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int? OutputCompressionFactor { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageQuality? Quality { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageEditOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageEditOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageEditOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageEditOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageBackground? Background { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageModerationLevel? ModerationLevel { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public int? OutputCompressionFactor { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } set { } } + public GeneratedImageQuality? Quality { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + public GeneratedImageStyle? Style { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageInputFidelity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageInputFidelity(string value) { } + public static ImageInputFidelity High { get { throw null; } } + public static ImageInputFidelity Low { get { throw null; } } + + public readonly bool Equals(ImageInputFidelity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageInputFidelity left, ImageInputFidelity right) { throw null; } + public static implicit operator ImageInputFidelity(string value) { throw null; } + public static implicit operator ImageInputFidelity?(string value) { throw null; } + public static bool operator !=(ImageInputFidelity left, ImageInputFidelity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageInputTokenUsageDetails() { } + public long ImageTokenCount { get { throw null; } } + public long TextTokenCount { get { throw null; } } + + protected virtual ImageInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageOutputTokenUsageDetails() { } + public long ImageTokenCount { get { throw null; } } + public long TextTokenCount { get { throw null; } } + + protected virtual ImageOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageTokenUsage() { } + public long InputTokenCount { get { throw null; } } + public ImageInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public long OutputTokenCount { get { throw null; } } + public ImageOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + public long TotalTokenCount { get { throw null; } } + + protected virtual ImageTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageVariationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string EndUserId { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageVariationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ImageVariationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageVariationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageVariationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIImagesModelFactory + { + public static GeneratedImage GeneratedImage(System.BinaryData imageBytes = null, System.Uri imageUri = null, string revisedPrompt = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static GeneratedImageCollection GeneratedImageCollection(System.DateTimeOffset createdAt = default, System.Collections.Generic.IEnumerable items = null, GeneratedImageBackground? background = null, GeneratedImageFileFormat? outputFileFormat = null, GeneratedImageSize? size = null, GeneratedImageQuality? quality = null, ImageTokenUsage usage = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static GeneratedImageCollection GeneratedImageCollection(System.DateTimeOffset createdAt, System.Collections.Generic.IEnumerable items) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ImageInputTokenUsageDetails ImageInputTokenUsageDetails(long textTokenCount = 0, long imageTokenCount = 0) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ImageTokenUsage ImageTokenUsage(long inputTokenCount = 0, long outputTokenCount = 0, long totalTokenCount = 0, ImageInputTokenUsageDetails inputTokenDetails = null, ImageOutputTokenUsageDetails outputTokenDetails = null) { throw null; } } } -namespace OpenAI.Models { - public class ModelDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string ModelId { get; } - [Experimental("OPENAI001")] - protected virtual ModelDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator ModelDeletionResult(ClientResult result); - [Experimental("OPENAI001")] - protected virtual ModelDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIModel : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string OwnedBy { get; } - [Experimental("OPENAI001")] - protected virtual OpenAIModel JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIModel(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIModel PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIModelClient { - protected OpenAIModelClient(); - public OpenAIModelClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIModelClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public OpenAIModelClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public OpenAIModelClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIModelClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIModelClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult DeleteModel(string model, RequestOptions options); - public virtual ClientResult DeleteModel(string model, CancellationToken cancellationToken = default); - public virtual Task DeleteModelAsync(string model, RequestOptions options); - public virtual Task> DeleteModelAsync(string model, CancellationToken cancellationToken = default); - public virtual ClientResult GetModel(string model, RequestOptions options); - public virtual ClientResult GetModel(string model, CancellationToken cancellationToken = default); - public virtual Task GetModelAsync(string model, RequestOptions options); - public virtual Task> GetModelAsync(string model, CancellationToken cancellationToken = default); - public virtual ClientResult GetModels(RequestOptions options); - public virtual ClientResult GetModels(CancellationToken cancellationToken = default); - public virtual Task GetModelsAsync(RequestOptions options); - public virtual Task> GetModelsAsync(CancellationToken cancellationToken = default); - } - public class OpenAIModelCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - [Experimental("OPENAI001")] - protected virtual OpenAIModelCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator OpenAIModelCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual OpenAIModelCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIModelsModelFactory { - public static ModelDeletionResult ModelDeletionResult(string modelId = null, bool deleted = false); - public static OpenAIModel OpenAIModel(string id = null, DateTimeOffset createdAt = default, string ownedBy = null); - public static OpenAIModelCollection OpenAIModelCollection(IEnumerable items = null); + +namespace OpenAI.Models +{ + public partial class ModelDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModelDeletionResult() { } + public bool Deleted { get { throw null; } } + public string ModelId { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModelDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator ModelDeletionResult(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModelDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModelDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModelDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIModel() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string OwnedBy { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModel JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIModel(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModel PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIModelClient + { + protected OpenAIModelClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public OpenAIModelClient(OpenAIModelClientSettings settings) { } + public OpenAIModelClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIModelClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIModelClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public OpenAIModelClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIModelClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIModelClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult DeleteModel(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteModel(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteModelAsync(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteModelAsync(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetModel(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetModel(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetModelAsync(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetModelAsync(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetModels(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetModels(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetModelsAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetModelsAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class OpenAIModelClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class OpenAIModelCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIModelCollection() : base(default!) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModelCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator OpenAIModelCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual OpenAIModelCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIModelCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIModelCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIModelsModelFactory + { + public static ModelDeletionResult ModelDeletionResult(string modelId = null, bool deleted = false) { throw null; } + public static OpenAIModel OpenAIModel(string id = null, System.DateTimeOffset createdAt = default, string ownedBy = null) { throw null; } + public static OpenAIModelCollection OpenAIModelCollection(System.Collections.Generic.IEnumerable items = null) { throw null; } } } -namespace OpenAI.Moderations { - [Experimental("OPENAI001")] - [Flags] - public enum ModerationApplicableInputKinds { + +namespace OpenAI.Moderations +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + [System.Flags] + public enum ModerationApplicableInputKinds + { None = 0, Other = 1, Text = 2, Image = 4 } - public class ModerationCategory { - [Experimental("OPENAI001")] - public ModerationApplicableInputKinds ApplicableInputKinds { get; } - public bool Flagged { get; } - public float Score { get; } - } - public class ModerationClient { - protected ModerationClient(); - protected internal ModerationClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ModerationClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ModerationClient(string model, ApiKeyCredential credential); - [Experimental("OPENAI001")] - public ModerationClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - [Experimental("OPENAI001")] - public ModerationClient(string model, AuthenticationPolicy authenticationPolicy); - public ModerationClient(string model, string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - [Experimental("OPENAI001")] - public virtual ClientResult ClassifyInputs(BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual ClientResult ClassifyInputs(IEnumerable inputParts, CancellationToken cancellationToken = default); - [Experimental("OPENAI001")] - public virtual Task ClassifyInputsAsync(BinaryContent content, RequestOptions options = null); - [Experimental("OPENAI001")] - public virtual Task> ClassifyInputsAsync(IEnumerable inputParts, CancellationToken cancellationToken = default); - public virtual ClientResult ClassifyText(BinaryContent content, RequestOptions options = null); - public virtual ClientResult ClassifyText(IEnumerable inputs, CancellationToken cancellationToken = default); - public virtual ClientResult ClassifyText(string input, CancellationToken cancellationToken = default); - public virtual Task ClassifyTextAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> ClassifyTextAsync(IEnumerable inputs, CancellationToken cancellationToken = default); - public virtual Task> ClassifyTextAsync(string input, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class ModerationInputPart : IJsonModel, IPersistableModel { - public Uri ImageUri { get; } - public ModerationInputPartKind Kind { get; } - public string Text { get; } - public static ModerationInputPart CreateImagePart(Uri imageUri); - public static ModerationInputPart CreateTextPart(string text); - protected virtual ModerationInputPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ModerationInputPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ModerationInputPartKind { + + public partial class ModerationCategory + { + internal ModerationCategory() { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ModerationApplicableInputKinds ApplicableInputKinds { get { throw null; } } + public bool Flagged { get { throw null; } } + public float Score { get { throw null; } } + } + public partial class ModerationClient + { + protected ModerationClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ModerationClient(ModerationClientSettings settings) { } + protected internal ModerationClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ModerationClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ModerationClient(string model, System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ModerationClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public ModerationClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ModerationClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult ClassifyInputs(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.ClientModel.ClientResult ClassifyInputs(System.Collections.Generic.IEnumerable inputParts, System.Threading.CancellationToken cancellationToken = default) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task ClassifyInputsAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Threading.Tasks.Task> ClassifyInputsAsync(System.Collections.Generic.IEnumerable inputParts, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(System.Collections.Generic.IEnumerable inputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(string input, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ClassifyTextAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ClassifyTextAsync(System.Collections.Generic.IEnumerable inputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> ClassifyTextAsync(string input, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ModerationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ModerationInputPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationInputPart() { } + public System.Uri ImageUri { get { throw null; } } + public ModerationInputPartKind Kind { get { throw null; } } + public string Text { get { throw null; } } + + public static ModerationInputPart CreateImagePart(System.Uri imageUri) { throw null; } + public static ModerationInputPart CreateTextPart(string text) { throw null; } + protected virtual ModerationInputPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ModerationInputPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationInputPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationInputPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ModerationInputPartKind + { Text = 0, Image = 1 } - public class ModerationResult : IJsonModel, IPersistableModel { - public bool Flagged { get; } - public ModerationCategory Harassment { get; } - public ModerationCategory HarassmentThreatening { get; } - public ModerationCategory Hate { get; } - public ModerationCategory HateThreatening { get; } - public ModerationCategory Illicit { get; } - public ModerationCategory IllicitViolent { get; } - public ModerationCategory SelfHarm { get; } - public ModerationCategory SelfHarmInstructions { get; } - public ModerationCategory SelfHarmIntent { get; } - public ModerationCategory Sexual { get; } - public ModerationCategory SexualMinors { get; } - public ModerationCategory Violence { get; } - public ModerationCategory ViolenceGraphic { get; } - [Experimental("OPENAI001")] - protected virtual ModerationResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual ModerationResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ModerationResultCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - public string Id { get; } - public string Model { get; } - [Experimental("OPENAI001")] - protected virtual ModerationResultCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - public static explicit operator ModerationResultCollection(ClientResult result); - [Experimental("OPENAI001")] - protected virtual ModerationResultCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - [Experimental("OPENAI001")] - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIModerationsModelFactory { - public static ModerationCategory ModerationCategory(bool flagged = false, float score = 0); - [Experimental("OPENAI001")] - public static ModerationResult ModerationResult(bool flagged = false, ModerationCategory hate = null, ModerationCategory hateThreatening = null, ModerationCategory harassment = null, ModerationCategory harassmentThreatening = null, ModerationCategory selfHarm = null, ModerationCategory selfHarmIntent = null, ModerationCategory selfHarmInstructions = null, ModerationCategory sexual = null, ModerationCategory sexualMinors = null, ModerationCategory violence = null, ModerationCategory violenceGraphic = null, ModerationCategory illicit = null, ModerationCategory illicitViolent = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ModerationResult ModerationResult(bool flagged, ModerationCategory hate, ModerationCategory hateThreatening, ModerationCategory harassment, ModerationCategory harassmentThreatening, ModerationCategory selfHarm, ModerationCategory selfHarmIntent, ModerationCategory selfHarmInstructions, ModerationCategory sexual, ModerationCategory sexualMinors, ModerationCategory violence, ModerationCategory violenceGraphic); - public static ModerationResultCollection ModerationResultCollection(string id = null, string model = null, IEnumerable items = null); + + public partial class ModerationResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationResult() { } + public bool Flagged { get { throw null; } } + public ModerationCategory Harassment { get { throw null; } } + public ModerationCategory HarassmentThreatening { get { throw null; } } + public ModerationCategory Hate { get { throw null; } } + public ModerationCategory HateThreatening { get { throw null; } } + public ModerationCategory Illicit { get { throw null; } } + public ModerationCategory IllicitViolent { get { throw null; } } + public ModerationCategory SelfHarm { get { throw null; } } + public ModerationCategory SelfHarmInstructions { get { throw null; } } + public ModerationCategory SelfHarmIntent { get { throw null; } } + public ModerationCategory Sexual { get { throw null; } } + public ModerationCategory SexualMinors { get { throw null; } } + public ModerationCategory Violence { get { throw null; } } + public ModerationCategory ViolenceGraphic { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ModerationResultCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationResultCollection() : base(default!) { } + public string Id { get { throw null; } } + public string Model { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResultCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static explicit operator ModerationResultCollection(System.ClientModel.ClientResult result) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual ModerationResultCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationResultCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationResultCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIModerationsModelFactory + { + public static ModerationCategory ModerationCategory(bool flagged = false, float score = 0) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public static ModerationResult ModerationResult(bool flagged = false, ModerationCategory hate = null, ModerationCategory hateThreatening = null, ModerationCategory harassment = null, ModerationCategory harassmentThreatening = null, ModerationCategory selfHarm = null, ModerationCategory selfHarmIntent = null, ModerationCategory selfHarmInstructions = null, ModerationCategory sexual = null, ModerationCategory sexualMinors = null, ModerationCategory violence = null, ModerationCategory violenceGraphic = null, ModerationCategory illicit = null, ModerationCategory illicitViolent = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ModerationResult ModerationResult(bool flagged, ModerationCategory hate, ModerationCategory hateThreatening, ModerationCategory harassment, ModerationCategory harassmentThreatening, ModerationCategory selfHarm, ModerationCategory selfHarmIntent, ModerationCategory selfHarmInstructions, ModerationCategory sexual, ModerationCategory sexualMinors, ModerationCategory violence, ModerationCategory violenceGraphic) { throw null; } + public static ModerationResultCollection ModerationResultCollection(string id = null, string model = null, System.Collections.Generic.IEnumerable items = null) { throw null; } } } -namespace OpenAI.Realtime { - [Experimental("OPENAI002")] - public class ConversationContentPart : IJsonModel, IPersistableModel { - public string AudioTranscript { get; } - public string Text { get; } - public static ConversationContentPart CreateInputAudioTranscriptPart(string transcript = null); - public static ConversationContentPart CreateInputTextPart(string text); - public static ConversationContentPart CreateOutputAudioTranscriptPart(string transcript = null); - public static ConversationContentPart CreateOutputTextPart(string text); - protected virtual ConversationContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ConversationContentPart(string text); - protected virtual ConversationContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationContentPartKind : IEquatable { - public ConversationContentPartKind(string value); - public static ConversationContentPartKind InputAudio { get; } - public static ConversationContentPartKind InputText { get; } - public static ConversationContentPartKind OutputAudio { get; } - public static ConversationContentPartKind OutputText { get; } - public readonly bool Equals(ConversationContentPartKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right); - public static implicit operator ConversationContentPartKind(string value); - public static implicit operator ConversationContentPartKind?(string value); - public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationFunctionTool : ConversationTool, IJsonModel, IPersistableModel { - public ConversationFunctionTool(string name); - public string Description { get; set; } - public string Name { get; set; } - public BinaryData Parameters { get; set; } - protected override ConversationTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ConversationTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationIncompleteReason : IEquatable { - public ConversationIncompleteReason(string value); - public static ConversationIncompleteReason ClientCancelled { get; } - public static ConversationIncompleteReason ContentFilter { get; } - public static ConversationIncompleteReason MaxOutputTokens { get; } - public static ConversationIncompleteReason TurnDetected { get; } - public readonly bool Equals(ConversationIncompleteReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationIncompleteReason left, ConversationIncompleteReason right); - public static implicit operator ConversationIncompleteReason(string value); - public static implicit operator ConversationIncompleteReason?(string value); - public static bool operator !=(ConversationIncompleteReason left, ConversationIncompleteReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int CachedTokenCount { get; } - public int TextTokenCount { get; } - protected virtual ConversationInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationItemStatus : IEquatable { - public ConversationItemStatus(string value); - public static ConversationItemStatus Completed { get; } - public static ConversationItemStatus Incomplete { get; } - public static ConversationItemStatus InProgress { get; } - public readonly bool Equals(ConversationItemStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationItemStatus left, ConversationItemStatus right); - public static implicit operator ConversationItemStatus(string value); - public static implicit operator ConversationItemStatus?(string value); - public static bool operator !=(ConversationItemStatus left, ConversationItemStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationMaxTokensChoice : IJsonModel, IPersistableModel { - public ConversationMaxTokensChoice(int numberValue); - public int? NumericValue { get; } - public static ConversationMaxTokensChoice CreateDefaultMaxTokensChoice(); - public static ConversationMaxTokensChoice CreateInfiniteMaxTokensChoice(); - public static ConversationMaxTokensChoice CreateNumericMaxTokensChoice(int maxTokens); - public static implicit operator ConversationMaxTokensChoice(int maxTokens); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationMessageRole : IEquatable { - public ConversationMessageRole(string value); - public static ConversationMessageRole Assistant { get; } - public static ConversationMessageRole System { get; } - public static ConversationMessageRole User { get; } - public readonly bool Equals(ConversationMessageRole other); - [EditorBrowsable(global::EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(global::EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationMessageRole left, ConversationMessageRole right); - public static implicit operator ConversationMessageRole(string value); - public static implicit operator ConversationMessageRole?(string value); - public static bool operator !=(ConversationMessageRole left, ConversationMessageRole right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationOutputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int TextTokenCount { get; } - protected virtual ConversationOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationRateLimitDetailsItem : IJsonModel, IPersistableModel { - public int MaximumCount { get; } - public string Name { get; } - public int RemainingCount { get; } - public TimeSpan TimeUntilReset { get; } - protected virtual ConversationRateLimitDetailsItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationRateLimitDetailsItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationResponseOptions : IJsonModel, IPersistableModel { + +namespace OpenAI.Realtime +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationContentPart() { } + public string AudioTranscript { get { throw null; } } + public string Text { get { throw null; } } + + public static ConversationContentPart CreateInputAudioTranscriptPart(string transcript = null) { throw null; } + public static ConversationContentPart CreateInputTextPart(string text) { throw null; } + public static ConversationContentPart CreateOutputAudioTranscriptPart(string transcript = null) { throw null; } + public static ConversationContentPart CreateOutputTextPart(string text) { throw null; } + protected virtual ConversationContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ConversationContentPart(string text) { throw null; } + protected virtual ConversationContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationContentPartKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationContentPartKind(string value) { } + public static ConversationContentPartKind InputAudio { get { throw null; } } + public static ConversationContentPartKind InputText { get { throw null; } } + public static ConversationContentPartKind OutputAudio { get { throw null; } } + public static ConversationContentPartKind OutputText { get { throw null; } } + + public readonly bool Equals(ConversationContentPartKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right) { throw null; } + public static implicit operator ConversationContentPartKind(string value) { throw null; } + public static implicit operator ConversationContentPartKind?(string value) { throw null; } + public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationFunctionTool : ConversationTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationFunctionTool(string name) { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } set { } } + + protected override ConversationTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ConversationTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationFunctionTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationFunctionTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationIncompleteReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationIncompleteReason(string value) { } + public static ConversationIncompleteReason ClientCancelled { get { throw null; } } + public static ConversationIncompleteReason ContentFilter { get { throw null; } } + public static ConversationIncompleteReason MaxOutputTokens { get { throw null; } } + public static ConversationIncompleteReason TurnDetected { get { throw null; } } + + public readonly bool Equals(ConversationIncompleteReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationIncompleteReason left, ConversationIncompleteReason right) { throw null; } + public static implicit operator ConversationIncompleteReason(string value) { throw null; } + public static implicit operator ConversationIncompleteReason?(string value) { throw null; } + public static bool operator !=(ConversationIncompleteReason left, ConversationIncompleteReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationInputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int CachedTokenCount { get { throw null; } } + public int TextTokenCount { get { throw null; } } + + protected virtual ConversationInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationItemStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationItemStatus(string value) { } + public static ConversationItemStatus Completed { get { throw null; } } + public static ConversationItemStatus Incomplete { get { throw null; } } + public static ConversationItemStatus InProgress { get { throw null; } } + + public readonly bool Equals(ConversationItemStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationItemStatus left, ConversationItemStatus right) { throw null; } + public static implicit operator ConversationItemStatus(string value) { throw null; } + public static implicit operator ConversationItemStatus?(string value) { throw null; } + public static bool operator !=(ConversationItemStatus left, ConversationItemStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationMaxTokensChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationMaxTokensChoice(int numberValue) { } + public int? NumericValue { get { throw null; } } + + public static ConversationMaxTokensChoice CreateDefaultMaxTokensChoice() { throw null; } + public static ConversationMaxTokensChoice CreateInfiniteMaxTokensChoice() { throw null; } + public static ConversationMaxTokensChoice CreateNumericMaxTokensChoice(int maxTokens) { throw null; } + public static implicit operator ConversationMaxTokensChoice(int maxTokens) { throw null; } + ConversationMaxTokensChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationMaxTokensChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationMessageRole : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationMessageRole(string value) { } + public static ConversationMessageRole Assistant { get { throw null; } } + public static ConversationMessageRole System { get { throw null; } } + public static ConversationMessageRole User { get { throw null; } } + + public readonly bool Equals(ConversationMessageRole other) { throw null; } + [System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationMessageRole left, ConversationMessageRole right) { throw null; } + public static implicit operator ConversationMessageRole(string value) { throw null; } + public static implicit operator ConversationMessageRole?(string value) { throw null; } + public static bool operator !=(ConversationMessageRole left, ConversationMessageRole right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationOutputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int TextTokenCount { get { throw null; } } + + protected virtual ConversationOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationRateLimitDetailsItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationRateLimitDetailsItem() { } + public int MaximumCount { get { throw null; } } + public string Name { get { throw null; } } + public int RemainingCount { get { throw null; } } + public System.TimeSpan TimeUntilReset { get { throw null; } } + + protected virtual ConversationRateLimitDetailsItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationRateLimitDetailsItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationRateLimitDetailsItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationRateLimitDetailsItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { public ConversationVoice? Voice; - public RealtimeContentModalities ContentModalities { get; set; } - public ResponseConversationSelection? ConversationSelection { get; set; } - public string Instructions { get; set; } - public ConversationMaxTokensChoice MaxOutputTokens { get; set; } - public IDictionary Metadata { get; } - public RealtimeAudioFormat? OutputAudioFormat { get; set; } - public IList OverrideItems { get; } - public float? Temperature { get; set; } - public ConversationToolChoice ToolChoice { get; set; } - public IList Tools { get; } - protected virtual ConversationResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationSessionConfiguredUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public new string EventId { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputTranscriptionOptions { get; } - public string Instructions { get; } - public ConversationMaxTokensChoice MaxOutputTokens { get; } - public string Model { get; } - public RealtimeAudioFormat OutputAudioFormat { get; } - public string SessionId { get; } - public float Temperature { get; } - public ConversationToolChoice ToolChoice { get; } - public IReadOnlyList Tools { get; } - public TurnDetectionOptions TurnDetectionOptions { get; } - public ConversationVoice Voice { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationSessionOptions : RealtimeRequestSessionBase, IJsonModel, IPersistableModel { - public ConversationSessionOptions(); - public RealtimeSessionAudioConfiguration Audio { get; set; } - public RealtimeContentModalities ContentModalities { get; set; } - public IList Include { get; } - public InputNoiseReductionOptions InputNoiseReductionOptions { get; set; } - public InputTranscriptionOptions InputTranscriptionOptions { get; set; } - public string Instructions { get; set; } - public ConversationMaxTokensChoice MaxOutputTokens { get; set; } - public float? Temperature { get; set; } - public ConversationToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public BinaryData Tracing { get; set; } - public TurnDetectionOptions TurnDetectionOptions { get; set; } - public ConversationVoice? Voice { get; set; } - protected override RealtimeRequestSessionBase JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeRequestSessionBase PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationSessionStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputTranscriptionOptions { get; } - public string Instructions { get; } - public ConversationMaxTokensChoice MaxOutputTokens { get; } - public string Model { get; } - public RealtimeAudioFormat OutputAudioFormat { get; } - public string SessionId { get; } - public float Temperature { get; } - public ConversationToolChoice ToolChoice { get; } - public IReadOnlyList Tools { get; } - public TurnDetectionOptions TurnDetectionOptions { get; } - public ConversationVoice Voice { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationStatus : IEquatable { - public ConversationStatus(string value); - public static ConversationStatus Cancelled { get; } - public static ConversationStatus Completed { get; } - public static ConversationStatus Failed { get; } - public static ConversationStatus Incomplete { get; } - public static ConversationStatus InProgress { get; } - public readonly bool Equals(ConversationStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationStatus left, ConversationStatus right); - public static implicit operator ConversationStatus(string value); - public static implicit operator ConversationStatus?(string value); - public static bool operator !=(ConversationStatus left, ConversationStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ConversationStatusDetails : IJsonModel, IPersistableModel { - public string ErrorCode { get; } - public string ErrorKind { get; } - public ConversationIncompleteReason? IncompleteReason { get; } - public ConversationStatus StatusKind { get; } - protected virtual ConversationStatusDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationStatusDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public ConversationInputTokenUsageDetails InputTokenDetails { get; } - public int OutputTokenCount { get; } - public ConversationOutputTokenUsageDetails OutputTokenDetails { get; } - public int TotalTokenCount { get; } - protected virtual ConversationTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationTool : IJsonModel, IPersistableModel { - public ConversationToolKind Kind { get; } - public static ConversationTool CreateFunctionTool(string name, string description = null, BinaryData parameters = null); - protected virtual ConversationTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ConversationToolChoice : IJsonModel, IPersistableModel { - public string FunctionName { get; } - public ConversationToolChoiceKind Kind { get; } - public static ConversationToolChoice CreateAutoToolChoice(); - public static ConversationToolChoice CreateFunctionToolChoice(string functionName); - public static ConversationToolChoice CreateNoneToolChoice(); - public static ConversationToolChoice CreateRequiredToolChoice(); - } - [Experimental("OPENAI002")] - public enum ConversationToolChoiceKind { + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public ResponseConversationSelection? ConversationSelection { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public RealtimeAudioFormat? OutputAudioFormat { get { throw null; } set { } } + public System.Collections.Generic.IList OverrideItems { get { throw null; } } + public float? Temperature { get { throw null; } set { } } + public ConversationToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + + protected virtual ConversationResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationSessionConfiguredUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationSessionConfiguredUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public new string EventId { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } } + public string Instructions { get { throw null; } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } } + public string Model { get { throw null; } } + public RealtimeAudioFormat OutputAudioFormat { get { throw null; } } + public string SessionId { get { throw null; } } + public float Temperature { get { throw null; } } + public ConversationToolChoice ToolChoice { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } } + public ConversationVoice Voice { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionConfiguredUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionConfiguredUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationSessionOptions : RealtimeRequestSessionBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationSessionOptions() { } + public RealtimeSessionAudioConfiguration Audio { get { throw null; } set { } } + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public System.Collections.Generic.IList Include { get { throw null; } } + public InputNoiseReductionOptions InputNoiseReductionOptions { get { throw null; } set { } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ConversationToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public System.BinaryData Tracing { get { throw null; } set { } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } set { } } + public ConversationVoice? Voice { get { throw null; } set { } } + + protected override RealtimeRequestSessionBase JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeRequestSessionBase PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationSessionStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationSessionStartedUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } } + public string Instructions { get { throw null; } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } } + public string Model { get { throw null; } } + public RealtimeAudioFormat OutputAudioFormat { get { throw null; } } + public string SessionId { get { throw null; } } + public float Temperature { get { throw null; } } + public ConversationToolChoice ToolChoice { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } } + public ConversationVoice Voice { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationStatus(string value) { } + public static ConversationStatus Cancelled { get { throw null; } } + public static ConversationStatus Completed { get { throw null; } } + public static ConversationStatus Failed { get { throw null; } } + public static ConversationStatus Incomplete { get { throw null; } } + public static ConversationStatus InProgress { get { throw null; } } + + public readonly bool Equals(ConversationStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationStatus left, ConversationStatus right) { throw null; } + public static implicit operator ConversationStatus(string value) { throw null; } + public static implicit operator ConversationStatus?(string value) { throw null; } + public static bool operator !=(ConversationStatus left, ConversationStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationStatusDetails() { } + public string ErrorCode { get { throw null; } } + public string ErrorKind { get { throw null; } } + public ConversationIncompleteReason? IncompleteReason { get { throw null; } } + public ConversationStatus StatusKind { get { throw null; } } + + protected virtual ConversationStatusDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationStatusDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationStatusDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public ConversationInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public ConversationOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual ConversationTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationTool() { } + public ConversationToolKind Kind { get { throw null; } } + + public static ConversationTool CreateFunctionTool(string name, string description = null, System.BinaryData parameters = null) { throw null; } + protected virtual ConversationTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ConversationToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationToolChoice() { } + public string FunctionName { get { throw null; } } + public ConversationToolChoiceKind Kind { get { throw null; } } + + public static ConversationToolChoice CreateAutoToolChoice() { throw null; } + public static ConversationToolChoice CreateFunctionToolChoice(string functionName) { throw null; } + public static ConversationToolChoice CreateNoneToolChoice() { throw null; } + public static ConversationToolChoice CreateRequiredToolChoice() { throw null; } + ConversationToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum ConversationToolChoiceKind + { Unknown = 0, Auto = 1, None = 2, Required = 3, Function = 4 } - [Experimental("OPENAI002")] - public readonly partial struct ConversationToolKind : IEquatable { - public ConversationToolKind(string value); - public static ConversationToolKind Function { get; } - public static ConversationToolKind Mcp { get; } - public readonly bool Equals(ConversationToolKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationToolKind left, ConversationToolKind right); - public static implicit operator ConversationToolKind(string value); - public static implicit operator ConversationToolKind?(string value); - public static bool operator !=(ConversationToolKind left, ConversationToolKind right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public readonly partial struct ConversationVoice : IEquatable { - public ConversationVoice(string value); - public static ConversationVoice Alloy { get; } - public static ConversationVoice Ash { get; } - public static ConversationVoice Ballad { get; } - public static ConversationVoice Coral { get; } - public static ConversationVoice Echo { get; } - public static ConversationVoice Fable { get; } - public static ConversationVoice Nova { get; } - public static ConversationVoice Onyx { get; } - public static ConversationVoice Sage { get; } - public static ConversationVoice Shimmer { get; } - public static ConversationVoice Verse { get; } - public readonly bool Equals(ConversationVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationVoice left, ConversationVoice right); - public static implicit operator ConversationVoice(string value); - public static implicit operator ConversationVoice?(string value); - public static bool operator !=(ConversationVoice left, ConversationVoice right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class InputAudioClearedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioCommittedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ItemId { get; } - public string PreviousItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioSpeechFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public TimeSpan AudioEndTime { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioSpeechStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public TimeSpan AudioStartTime { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int? ContentIndex { get; } - public string Delta { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioTranscriptionFailedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ErrorCode { get; } - public string ErrorMessage { get; } - public string ErrorParameterName { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public string Transcript { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public enum InputNoiseReductionKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationToolKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationToolKind(string value) { } + public static ConversationToolKind Function { get { throw null; } } + public static ConversationToolKind Mcp { get { throw null; } } + + public readonly bool Equals(ConversationToolKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationToolKind left, ConversationToolKind right) { throw null; } + public static implicit operator ConversationToolKind(string value) { throw null; } + public static implicit operator ConversationToolKind?(string value) { throw null; } + public static bool operator !=(ConversationToolKind left, ConversationToolKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ConversationVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationVoice(string value) { } + public static ConversationVoice Alloy { get { throw null; } } + public static ConversationVoice Ash { get { throw null; } } + public static ConversationVoice Ballad { get { throw null; } } + public static ConversationVoice Coral { get { throw null; } } + public static ConversationVoice Echo { get { throw null; } } + public static ConversationVoice Fable { get { throw null; } } + public static ConversationVoice Nova { get { throw null; } } + public static ConversationVoice Onyx { get { throw null; } } + public static ConversationVoice Sage { get { throw null; } } + public static ConversationVoice Shimmer { get { throw null; } } + public static ConversationVoice Verse { get { throw null; } } + + public readonly bool Equals(ConversationVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationVoice left, ConversationVoice right) { throw null; } + public static implicit operator ConversationVoice(string value) { throw null; } + public static implicit operator ConversationVoice?(string value) { throw null; } + public static bool operator !=(ConversationVoice left, ConversationVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioClearedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioClearedUpdate() { } + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioClearedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioClearedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioCommittedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioCommittedUpdate() { } + public string ItemId { get { throw null; } } + public string PreviousItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioCommittedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioCommittedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioSpeechFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioSpeechFinishedUpdate() { } + public System.TimeSpan AudioEndTime { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioSpeechFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioSpeechFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioSpeechStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioSpeechStartedUpdate() { } + public System.TimeSpan AudioStartTime { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioSpeechStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioSpeechStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionDeltaUpdate() { } + public int? ContentIndex { get { throw null; } } + public string Delta { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioTranscriptionFailedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionFailedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ErrorCode { get { throw null; } } + public string ErrorMessage { get { throw null; } } + public string ErrorParameterName { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public string Transcript { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum InputNoiseReductionKind + { Unknown = 0, NearField = 1, FarField = 2, Disabled = 3 } - [Experimental("OPENAI002")] - public class InputNoiseReductionOptions : IJsonModel, IPersistableModel { - public InputNoiseReductionKind Kind { get; set; } - public static InputNoiseReductionOptions CreateDisabledOptions(); - public static InputNoiseReductionOptions CreateFarFieldOptions(); - public static InputNoiseReductionOptions CreateNearFieldOptions(); - protected virtual InputNoiseReductionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual InputNoiseReductionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct InputTranscriptionModel : IEquatable { - public InputTranscriptionModel(string value); - public static InputTranscriptionModel Gpt4oMiniTranscribe { get; } - public static InputTranscriptionModel Gpt4oMiniTranscribe20251215 { get; } - public static InputTranscriptionModel Gpt4oTranscribe { get; } - public static InputTranscriptionModel Gpt4oTranscribeDiarize { get; } - public static InputTranscriptionModel Whisper1 { get; } - public readonly bool Equals(InputTranscriptionModel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right); - public static implicit operator InputTranscriptionModel(string value); - public static implicit operator InputTranscriptionModel?(string value); - public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class InputTranscriptionOptions : IJsonModel, IPersistableModel { - public string Language { get; set; } - public InputTranscriptionModel? Model { get; set; } - public string Prompt { get; set; } - protected virtual InputTranscriptionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual InputTranscriptionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemCreatedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public string PreviousItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemDeletedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemRetrievedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeItem Item { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ItemTruncatedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int AudioEndMs { get; } - public int ContentIndex { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputAudioFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - public string Transcript { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputDeltaUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public BinaryData AudioBytes { get; } - public string AudioTranscript { get; } - public int ContentPartIndex { get; } - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public string ResponseId { get; } - public string Text { get; } - } - [Experimental("OPENAI002")] - public class OutputPartFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string AudioTranscript { get; } - public int ContentPartIndex { get; } - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public string ResponseId { get; } - public string Text { get; } - } - [Experimental("OPENAI002")] - public class OutputStreamingFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputStreamingStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class OutputTextFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - public string Text { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RateLimitsUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList AllDetails { get; } - public ConversationRateLimitDetailsItem RequestDetails { get; } - public ConversationRateLimitDetailsItem TokenDetails { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeAudioFormat : IEquatable { - public RealtimeAudioFormat(string value); - public static RealtimeAudioFormat G711Alaw { get; } - public static RealtimeAudioFormat G711Ulaw { get; } - public static RealtimeAudioFormat Pcm16 { get; } - public readonly bool Equals(RealtimeAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right); - public static implicit operator RealtimeAudioFormat(string value); - public static implicit operator RealtimeAudioFormat?(string value); - public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeClient { - protected RealtimeClient(); - public RealtimeClient(ApiKeyCredential credential, RealtimeClientOptions options); - public RealtimeClient(ApiKeyCredential credential); - [Experimental("OPENAI001")] - public RealtimeClient(AuthenticationPolicy authenticationPolicy, RealtimeClientOptions options); - [Experimental("OPENAI001")] - public RealtimeClient(AuthenticationPolicy authenticationPolicy); - protected internal RealtimeClient(ClientPipeline pipeline, RealtimeClientOptions options); - public RealtimeClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public event EventHandler OnReceivingCommand { - add; - remove; + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputNoiseReductionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputNoiseReductionOptions() { } + public InputNoiseReductionKind Kind { get { throw null; } set { } } + + public static InputNoiseReductionOptions CreateDisabledOptions() { throw null; } + public static InputNoiseReductionOptions CreateFarFieldOptions() { throw null; } + public static InputNoiseReductionOptions CreateNearFieldOptions() { throw null; } + protected virtual InputNoiseReductionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual InputNoiseReductionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputNoiseReductionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputNoiseReductionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct InputTranscriptionModel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public InputTranscriptionModel(string value) { } + public static InputTranscriptionModel Gpt4oMiniTranscribe { get { throw null; } } + public static InputTranscriptionModel Gpt4oMiniTranscribe20251215 { get { throw null; } } + public static InputTranscriptionModel Gpt4oTranscribe { get { throw null; } } + public static InputTranscriptionModel Gpt4oTranscribeDiarize { get { throw null; } } + public static InputTranscriptionModel Whisper1 { get { throw null; } } + + public readonly bool Equals(InputTranscriptionModel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right) { throw null; } + public static implicit operator InputTranscriptionModel(string value) { throw null; } + public static implicit operator InputTranscriptionModel?(string value) { throw null; } + public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class InputTranscriptionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Language { get { throw null; } set { } } + public InputTranscriptionModel? Model { get { throw null; } set { } } + public string Prompt { get { throw null; } set { } } + + protected virtual InputTranscriptionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual InputTranscriptionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputTranscriptionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputTranscriptionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemCreatedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemCreatedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public string PreviousItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemCreatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemCreatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemDeletedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemDeletedUpdate() { } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemDeletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemDeletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemRetrievedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemRetrievedUpdate() { } + public RealtimeItem Item { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemRetrievedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemRetrievedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ItemTruncatedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemTruncatedUpdate() { } + public int AudioEndMs { get { throw null; } } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemTruncatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemTruncatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputAudioFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputAudioFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputAudioFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputAudioFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputAudioTranscriptionFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputAudioTranscriptionFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Transcript { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputDeltaUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputDeltaUpdate() { } + public System.BinaryData AudioBytes { get { throw null; } } + public string AudioTranscript { get { throw null; } } + public int ContentPartIndex { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + OutputDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputPartFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputPartFinishedUpdate() { } + public string AudioTranscript { get { throw null; } } + public int ContentPartIndex { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + OutputPartFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputPartFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputStreamingFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputStreamingFinishedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputStreamingFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputStreamingFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputStreamingStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputStreamingStartedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputStreamingStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputStreamingStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class OutputTextFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputTextFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputTextFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputTextFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RateLimitsUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RateLimitsUpdate() { } + public System.Collections.Generic.IReadOnlyList AllDetails { get { throw null; } } + public ConversationRateLimitDetailsItem RequestDetails { get { throw null; } } + public ConversationRateLimitDetailsItem TokenDetails { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RateLimitsUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RateLimitsUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeAudioFormat(string value) { } + public static RealtimeAudioFormat G711Alaw { get { throw null; } } + public static RealtimeAudioFormat G711Ulaw { get { throw null; } } + public static RealtimeAudioFormat Pcm16 { get { throw null; } } + + public readonly bool Equals(RealtimeAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right) { throw null; } + public static implicit operator RealtimeAudioFormat(string value) { throw null; } + public static implicit operator RealtimeAudioFormat?(string value) { throw null; } + public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeClient + { + protected RealtimeClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public RealtimeClient(RealtimeClientSettings settings) { } + public RealtimeClient(System.ClientModel.ApiKeyCredential credential, RealtimeClientOptions options) { } + public RealtimeClient(System.ClientModel.ApiKeyCredential credential) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public RealtimeClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, RealtimeClientOptions options) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public RealtimeClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal RealtimeClient(System.ClientModel.Primitives.ClientPipeline pipeline, RealtimeClientOptions options) { } + public RealtimeClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public event System.EventHandler OnReceivingCommand { + add { } + remove { } } - public event EventHandler OnSendingCommand { - add; - remove; + + public event System.EventHandler OnSendingCommand { + add { } + remove { } } - public virtual ClientResult CreateRealtimeClientSecret(RealtimeCreateClientSecretRequest body, CancellationToken cancellationToken = default); - public virtual ClientResult CreateRealtimeClientSecret(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateRealtimeClientSecretAsync(RealtimeCreateClientSecretRequest body, CancellationToken cancellationToken = default); - public virtual Task CreateRealtimeClientSecretAsync(BinaryContent content, RequestOptions options = null); - public RealtimeSession StartConversationSession(string model, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartConversationSessionAsync(string model, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public RealtimeSession StartSession(string model, string intent, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartSessionAsync(string model, string intent, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public RealtimeSession StartTranscriptionSession(RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartTranscriptionSessionAsync(RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - } - public class RealtimeClientOptions : ClientPipelineOptions { - public Uri Endpoint { get; set; } - public string OrganizationId { get; set; } - public string ProjectId { get; set; } - public string UserAgentApplicationId { get; set; } - } - [Experimental("OPENAI002")] - [Flags] - public enum RealtimeContentModalities { + + public virtual System.ClientModel.ClientResult CreateRealtimeClientSecret(RealtimeCreateClientSecretRequest body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateRealtimeClientSecret(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateRealtimeClientSecretAsync(RealtimeCreateClientSecretRequest body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateRealtimeClientSecretAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public RealtimeSession StartConversationSession(string model, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartConversationSessionAsync(string model, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public RealtimeSession StartSession(string model, string intent, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartSessionAsync(string model, string intent, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public RealtimeSession StartTranscriptionSession(RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartTranscriptionSessionAsync(RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public partial class RealtimeClientOptions : System.ClientModel.Primitives.ClientPipelineOptions + { + public System.Uri Endpoint { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string ProjectId { get { throw null; } set { } } + public string UserAgentApplicationId { get { throw null; } set { } } + } + + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class RealtimeClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + [System.Flags] + public enum RealtimeContentModalities + { Default = 0, Text = 1, Audio = 2 } - [Experimental("OPENAI002")] - public class RealtimeCreateClientSecretRequest : IJsonModel, IPersistableModel { - public RealtimeCreateClientSecretRequestExpiresAfter ExpiresAfter { get; set; } - public RealtimeSessionCreateRequestUnion Session { get; set; } - protected virtual RealtimeCreateClientSecretRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(RealtimeCreateClientSecretRequest realtimeCreateClientSecretRequest); - protected virtual RealtimeCreateClientSecretRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeCreateClientSecretRequestExpiresAfter : IJsonModel, IPersistableModel { - public RealtimeCreateClientSecretRequestExpiresAfterAnchor? Anchor { get; set; } - public int? Seconds { get; set; } - protected virtual RealtimeCreateClientSecretRequestExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeCreateClientSecretRequestExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeCreateClientSecretRequestExpiresAfterAnchor : IEquatable { - public RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value); - public static RealtimeCreateClientSecretRequestExpiresAfterAnchor CreatedAt { get; } - public readonly bool Equals(RealtimeCreateClientSecretRequestExpiresAfterAnchor other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right); - public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value); - public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor?(string value); - public static bool operator !=(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeCreateClientSecretResponse : IJsonModel, IPersistableModel { - public DateTimeOffset ExpiresAt { get; } - public RealtimeSessionCreateResponseUnion Session { get; } - public string Value { get; } - protected virtual RealtimeCreateClientSecretResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RealtimeCreateClientSecretResponse(ClientResult result); - protected virtual RealtimeCreateClientSecretResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeErrorUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ErrorCode { get; } - public string ErrorEventId { get; } - public string Message { get; } - public string ParameterName { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeItem : IJsonModel, IPersistableModel { - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string FunctionName { get; } - public string Id { get; set; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public static RealtimeItem CreateAssistantMessage(IEnumerable contentItems); - public static RealtimeItem CreateFunctionCall(string name, string callId, string arguments); - public static RealtimeItem CreateFunctionCallOutput(string callId, string output); - public static RealtimeItem CreateSystemMessage(IEnumerable contentItems); - public static RealtimeItem CreateUserMessage(IEnumerable contentItems); - protected virtual RealtimeItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeRequestSessionBase : IJsonModel, IPersistableModel { - protected virtual RealtimeRequestSessionBase JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeRequestSessionBase PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSession : IDisposable { - protected internal RealtimeSession(ApiKeyCredential credential, RealtimeClient parentClient, Uri endpoint, string model, string intent); - public Net.WebSockets.WebSocket WebSocket { get; protected set; } - public virtual void AddItem(RealtimeItem item, string previousItemId, CancellationToken cancellationToken = default); - public virtual void AddItem(RealtimeItem item, CancellationToken cancellationToken = default); - public virtual Task AddItemAsync(RealtimeItem item, string previousItemId, CancellationToken cancellationToken = default); - public virtual Task AddItemAsync(RealtimeItem item, CancellationToken cancellationToken = default); - public virtual void CancelResponse(CancellationToken cancellationToken = default); - public virtual Task CancelResponseAsync(CancellationToken cancellationToken = default); - public virtual void ClearInputAudio(CancellationToken cancellationToken = default); - public virtual Task ClearInputAudioAsync(CancellationToken cancellationToken = default); - public virtual void CommitPendingAudio(CancellationToken cancellationToken = default); - public virtual Task CommitPendingAudioAsync(CancellationToken cancellationToken = default); - public virtual Task ConfigureConversationSessionAsync(ConversationSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual void ConfigureSession(ConversationSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual void ConfigureTranscriptionSession(TranscriptionSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual Task ConfigureTranscriptionSessionAsync(TranscriptionSessionOptions sessionOptions, CancellationToken cancellationToken = default); - protected internal virtual void Connect(string queryString = null, IDictionary headers = null, CancellationToken cancellationToken = default); - protected internal virtual Task ConnectAsync(string queryString = null, IDictionary headers = null, CancellationToken cancellationToken = default); - public virtual void DeleteItem(string itemId, CancellationToken cancellationToken = default); - public virtual Task DeleteItemAsync(string itemId, CancellationToken cancellationToken = default); - public void Dispose(); - public virtual void InterruptResponse(CancellationToken cancellationToken = default); - public virtual Task InterruptResponseAsync(CancellationToken cancellationToken = default); - public virtual IEnumerable ReceiveUpdates(RequestOptions options); - public virtual IEnumerable ReceiveUpdates(CancellationToken cancellationToken = default); - public virtual IAsyncEnumerable ReceiveUpdatesAsync(RequestOptions options); - public virtual IAsyncEnumerable ReceiveUpdatesAsync(CancellationToken cancellationToken = default); - public virtual void RequestItemRetrieval(string itemId, CancellationToken cancellationToken = default); - public virtual Task RequestItemRetrievalAsync(string itemId, CancellationToken cancellationToken = default); - public virtual void SendCommand(BinaryData data, RequestOptions options); - public virtual Task SendCommandAsync(BinaryData data, RequestOptions options); - public virtual void SendInputAudio(BinaryData audio, CancellationToken cancellationToken = default); - public virtual void SendInputAudio(Stream audio, CancellationToken cancellationToken = default); - public virtual Task SendInputAudioAsync(BinaryData audio, CancellationToken cancellationToken = default); - public virtual Task SendInputAudioAsync(Stream audio, CancellationToken cancellationToken = default); - public virtual void StartResponse(ConversationResponseOptions options, CancellationToken cancellationToken = default); - public void StartResponse(CancellationToken cancellationToken = default); - public virtual Task StartResponseAsync(ConversationResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task StartResponseAsync(CancellationToken cancellationToken = default); - public virtual void TruncateItem(string itemId, int contentPartIndex, TimeSpan audioDuration, CancellationToken cancellationToken = default); - public virtual Task TruncateItemAsync(string itemId, int contentPartIndex, TimeSpan audioDuration, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI002")] - public class RealtimeSessionAudioConfiguration : IJsonModel, IPersistableModel { - public RealtimeSessionAudioInputConfiguration Input { get; set; } - public RealtimeSessionAudioOutputConfiguration Output { get; set; } - protected virtual RealtimeSessionAudioConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSessionAudioInputConfiguration : IJsonModel, IPersistableModel { - public RealtimeAudioFormat? Format { get; set; } - public InputNoiseReductionOptions NoiseReduction { get; set; } - public InputTranscriptionOptions Transcription { get; set; } - public TurnDetectionOptions TurnDetection { get; set; } - protected virtual RealtimeSessionAudioInputConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioInputConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSessionAudioOutputConfiguration : IJsonModel, IPersistableModel { - public RealtimeAudioFormat? Format { get; set; } - public float? Speed { get; set; } - public ConversationVoice? Voice { get; set; } - protected virtual RealtimeSessionAudioOutputConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioOutputConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class RealtimeSessionCreateRequestUnion : IJsonModel, IPersistableModel { - protected virtual RealtimeSessionCreateRequestUnion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionCreateRequestUnion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeSessionCreateRequestUnionType : IEquatable { - public RealtimeSessionCreateRequestUnionType(string value); - public static RealtimeSessionCreateRequestUnionType Realtime { get; } - public static RealtimeSessionCreateRequestUnionType Transcription { get; } - public readonly bool Equals(RealtimeSessionCreateRequestUnionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right); - public static implicit operator RealtimeSessionCreateRequestUnionType(string value); - public static implicit operator RealtimeSessionCreateRequestUnionType?(string value); - public static bool operator !=(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeSessionCreateResponseUnion : IJsonModel, IPersistableModel { - protected virtual RealtimeSessionCreateResponseUnion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionCreateResponseUnion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeSessionCreateResponseUnionType : IEquatable { - public RealtimeSessionCreateResponseUnionType(string value); - public static RealtimeSessionCreateResponseUnionType Realtime { get; } - public static RealtimeSessionCreateResponseUnionType Transcription { get; } - public readonly bool Equals(RealtimeSessionCreateResponseUnionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right); - public static implicit operator RealtimeSessionCreateResponseUnionType(string value); - public static implicit operator RealtimeSessionCreateResponseUnionType?(string value); - public static bool operator !=(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeSessionOptions { - public IDictionary Headers { get; } - public string QueryString { get; set; } - } - [Experimental("OPENAI002")] - public readonly partial struct RealtimeSessionType : IEquatable { - public RealtimeSessionType(string value); - public static RealtimeSessionType Realtime { get; } - public static RealtimeSessionType Transcription { get; } - public readonly bool Equals(RealtimeSessionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionType left, RealtimeSessionType right); - public static implicit operator RealtimeSessionType(string value); - public static implicit operator RealtimeSessionType?(string value); - public static bool operator !=(RealtimeSessionType left, RealtimeSessionType right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class RealtimeUpdate : IJsonModel, IPersistableModel { - public string EventId { get; } - public RealtimeUpdateKind Kind { get; } - public BinaryData GetRawContent(); - protected virtual RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RealtimeUpdate(ClientResult result); - protected virtual RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public enum RealtimeUpdateKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeCreateClientSecretRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeCreateClientSecretRequestExpiresAfter ExpiresAfter { get { throw null; } set { } } + public RealtimeSessionCreateRequestUnion Session { get { throw null; } set { } } + + protected virtual RealtimeCreateClientSecretRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(RealtimeCreateClientSecretRequest realtimeCreateClientSecretRequest) { throw null; } + protected virtual RealtimeCreateClientSecretRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeCreateClientSecretRequestExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeCreateClientSecretRequestExpiresAfterAnchor? Anchor { get { throw null; } set { } } + public int? Seconds { get { throw null; } set { } } + + protected virtual RealtimeCreateClientSecretRequestExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeCreateClientSecretRequestExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretRequestExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretRequestExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeCreateClientSecretRequestExpiresAfterAnchor : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value) { } + public static RealtimeCreateClientSecretRequestExpiresAfterAnchor CreatedAt { get { throw null; } } + + public readonly bool Equals(RealtimeCreateClientSecretRequestExpiresAfterAnchor other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right) { throw null; } + public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value) { throw null; } + public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor?(string value) { throw null; } + public static bool operator !=(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeCreateClientSecretResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeCreateClientSecretResponse() { } + public System.DateTimeOffset ExpiresAt { get { throw null; } } + public RealtimeSessionCreateResponseUnion Session { get { throw null; } } + public string Value { get { throw null; } } + + protected virtual RealtimeCreateClientSecretResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RealtimeCreateClientSecretResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual RealtimeCreateClientSecretResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeErrorUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeErrorUpdate() { } + public string ErrorCode { get { throw null; } } + public string ErrorEventId { get { throw null; } } + public string Message { get { throw null; } } + public string ParameterName { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeErrorUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeErrorUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeItem() { } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionName { get { throw null; } } + public string Id { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + + public static RealtimeItem CreateAssistantMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + public static RealtimeItem CreateFunctionCall(string name, string callId, string arguments) { throw null; } + public static RealtimeItem CreateFunctionCallOutput(string callId, string output) { throw null; } + public static RealtimeItem CreateSystemMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + public static RealtimeItem CreateUserMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + protected virtual RealtimeItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeRequestSessionBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeRequestSessionBase() { } + protected virtual RealtimeRequestSessionBase JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeRequestSessionBase PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeRequestSessionBase System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeRequestSessionBase System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSession : System.IDisposable + { + protected internal RealtimeSession(System.ClientModel.ApiKeyCredential credential, RealtimeClient parentClient, System.Uri endpoint, string model, string intent) { } + public System.Net.WebSockets.WebSocket WebSocket { get { throw null; } protected set { } } + + public virtual void AddItem(RealtimeItem item, string previousItemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void AddItem(RealtimeItem item, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task AddItemAsync(RealtimeItem item, string previousItemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddItemAsync(RealtimeItem item, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void CancelResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task CancelResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void ClearInputAudio(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task ClearInputAudioAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void CommitPendingAudio(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task CommitPendingAudioAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ConfigureConversationSessionAsync(ConversationSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void ConfigureSession(ConversationSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void ConfigureTranscriptionSession(TranscriptionSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task ConfigureTranscriptionSessionAsync(TranscriptionSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { throw null; } + protected internal virtual void Connect(string queryString = null, System.Collections.Generic.IDictionary headers = null, System.Threading.CancellationToken cancellationToken = default) { } + protected internal virtual System.Threading.Tasks.Task ConnectAsync(string queryString = null, System.Collections.Generic.IDictionary headers = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void DeleteItem(string itemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task DeleteItemAsync(string itemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public void Dispose() { } + public virtual void InterruptResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task InterruptResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Collections.Generic.IEnumerable ReceiveUpdates(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Collections.Generic.IEnumerable ReceiveUpdates(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable ReceiveUpdatesAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable ReceiveUpdatesAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void RequestItemRetrieval(string itemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task RequestItemRetrievalAsync(string itemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void SendCommand(System.BinaryData data, System.ClientModel.Primitives.RequestOptions options) { } + public virtual System.Threading.Tasks.Task SendCommandAsync(System.BinaryData data, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual void SendInputAudio(System.BinaryData audio, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void SendInputAudio(System.IO.Stream audio, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task SendInputAudioAsync(System.BinaryData audio, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task SendInputAudioAsync(System.IO.Stream audio, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void StartResponse(ConversationResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { } + public void StartResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task StartResponseAsync(ConversationResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void TruncateItem(string itemId, int contentPartIndex, System.TimeSpan audioDuration, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task TruncateItemAsync(string itemId, int contentPartIndex, System.TimeSpan audioDuration, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionAudioConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeSessionAudioInputConfiguration Input { get { throw null; } set { } } + public RealtimeSessionAudioOutputConfiguration Output { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionAudioInputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeAudioFormat? Format { get { throw null; } set { } } + public InputNoiseReductionOptions NoiseReduction { get { throw null; } set { } } + public InputTranscriptionOptions Transcription { get { throw null; } set { } } + public TurnDetectionOptions TurnDetection { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioInputConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioInputConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioInputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioInputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionAudioOutputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeAudioFormat? Format { get { throw null; } set { } } + public float? Speed { get { throw null; } set { } } + public ConversationVoice? Voice { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioOutputConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioOutputConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioOutputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioOutputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionCreateRequestUnion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeSessionCreateRequestUnion() { } + protected virtual RealtimeSessionCreateRequestUnion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionCreateRequestUnion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionCreateRequestUnion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionCreateRequestUnion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeSessionCreateRequestUnionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionCreateRequestUnionType(string value) { } + public static RealtimeSessionCreateRequestUnionType Realtime { get { throw null; } } + public static RealtimeSessionCreateRequestUnionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionCreateRequestUnionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right) { throw null; } + public static implicit operator RealtimeSessionCreateRequestUnionType(string value) { throw null; } + public static implicit operator RealtimeSessionCreateRequestUnionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionCreateResponseUnion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeSessionCreateResponseUnion() { } + protected virtual RealtimeSessionCreateResponseUnion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionCreateResponseUnion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionCreateResponseUnion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionCreateResponseUnion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeSessionCreateResponseUnionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionCreateResponseUnionType(string value) { } + public static RealtimeSessionCreateResponseUnionType Realtime { get { throw null; } } + public static RealtimeSessionCreateResponseUnionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionCreateResponseUnionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right) { throw null; } + public static implicit operator RealtimeSessionCreateResponseUnionType(string value) { throw null; } + public static implicit operator RealtimeSessionCreateResponseUnionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeSessionOptions + { + public System.Collections.Generic.IDictionary Headers { get { throw null; } } + public string QueryString { get { throw null; } set { } } + } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct RealtimeSessionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionType(string value) { } + public static RealtimeSessionType Realtime { get { throw null; } } + public static RealtimeSessionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionType left, RealtimeSessionType right) { throw null; } + public static implicit operator RealtimeSessionType(string value) { throw null; } + public static implicit operator RealtimeSessionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionType left, RealtimeSessionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class RealtimeUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeUpdate() { } + public string EventId { get { throw null; } } + public RealtimeUpdateKind Kind { get { throw null; } } + + public System.BinaryData GetRawContent() { throw null; } + protected virtual RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RealtimeUpdate(System.ClientModel.ClientResult result) { throw null; } + protected virtual RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum RealtimeUpdateKind + { Unknown = 0, SessionStarted = 1, SessionConfigured = 2, @@ -5023,235 +7851,373 @@ public enum RealtimeUpdateKind { ResponseMcpCallCompleted = 45, ResponseMcpCallFailed = 46 } - [Experimental("OPENAI002")] - public readonly partial struct ResponseConversationSelection : IEquatable { - public ResponseConversationSelection(string value); - public static ResponseConversationSelection Auto { get; } - public static ResponseConversationSelection None { get; } - public readonly bool Equals(ResponseConversationSelection other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right); - public static implicit operator ResponseConversationSelection(string value); - public static implicit operator ResponseConversationSelection?(string value); - public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class ResponseFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList CreatedItems { get; } - public string ResponseId { get; } - public ConversationStatus? Status { get; } - public ConversationStatusDetails StatusDetails { get; } - public ConversationTokenUsage Usage { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class ResponseStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList CreatedItems { get; } - public string ResponseId { get; } - public ConversationStatus Status { get; } - public ConversationStatusDetails StatusDetails { get; } - public ConversationTokenUsage Usage { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public readonly partial struct SemanticEagernessLevel : IEquatable { - public SemanticEagernessLevel(string value); - public static SemanticEagernessLevel Auto { get; } - public static SemanticEagernessLevel High { get; } - public static SemanticEagernessLevel Low { get; } - public static SemanticEagernessLevel Medium { get; } - public readonly bool Equals(SemanticEagernessLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(SemanticEagernessLevel left, SemanticEagernessLevel right); - public static implicit operator SemanticEagernessLevel(string value); - public static implicit operator SemanticEagernessLevel?(string value); - public static bool operator !=(SemanticEagernessLevel left, SemanticEagernessLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI002")] - public class TranscriptionSessionConfiguredUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputAudioTranscription { get; } - public TurnDetectionOptions TurnDetection { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public class TranscriptionSessionOptions : IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; set; } - public IList Include { get; } - public RealtimeAudioFormat? InputAudioFormat { get; set; } - public InputNoiseReductionOptions InputNoiseReductionOptions { get; set; } - public InputTranscriptionOptions InputTranscriptionOptions { get; set; } - public TurnDetectionOptions TurnDetectionOptions { get; set; } - protected virtual TranscriptionSessionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual TranscriptionSessionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI002")] - public enum TurnDetectionKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct ResponseConversationSelection : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseConversationSelection(string value) { } + public static ResponseConversationSelection Auto { get { throw null; } } + public static ResponseConversationSelection None { get { throw null; } } + + public readonly bool Equals(ResponseConversationSelection other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right) { throw null; } + public static implicit operator ResponseConversationSelection(string value) { throw null; } + public static implicit operator ResponseConversationSelection?(string value) { throw null; } + public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ResponseFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseFinishedUpdate() { } + public System.Collections.Generic.IReadOnlyList CreatedItems { get { throw null; } } + public string ResponseId { get { throw null; } } + public ConversationStatus? Status { get { throw null; } } + public ConversationStatusDetails StatusDetails { get { throw null; } } + public ConversationTokenUsage Usage { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class ResponseStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseStartedUpdate() { } + public System.Collections.Generic.IReadOnlyList CreatedItems { get { throw null; } } + public string ResponseId { get { throw null; } } + public ConversationStatus Status { get { throw null; } } + public ConversationStatusDetails StatusDetails { get { throw null; } } + public ConversationTokenUsage Usage { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public readonly partial struct SemanticEagernessLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SemanticEagernessLevel(string value) { } + public static SemanticEagernessLevel Auto { get { throw null; } } + public static SemanticEagernessLevel High { get { throw null; } } + public static SemanticEagernessLevel Low { get { throw null; } } + public static SemanticEagernessLevel Medium { get { throw null; } } + + public readonly bool Equals(SemanticEagernessLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(SemanticEagernessLevel left, SemanticEagernessLevel right) { throw null; } + public static implicit operator SemanticEagernessLevel(string value) { throw null; } + public static implicit operator SemanticEagernessLevel?(string value) { throw null; } + public static bool operator !=(SemanticEagernessLevel left, SemanticEagernessLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class TranscriptionSessionConfiguredUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TranscriptionSessionConfiguredUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputAudioTranscription { get { throw null; } } + public TurnDetectionOptions TurnDetection { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TranscriptionSessionConfiguredUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TranscriptionSessionConfiguredUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class TranscriptionSessionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public System.Collections.Generic.IList Include { get { throw null; } } + public RealtimeAudioFormat? InputAudioFormat { get { throw null; } set { } } + public InputNoiseReductionOptions InputNoiseReductionOptions { get { throw null; } set { } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } set { } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } set { } } + + protected virtual TranscriptionSessionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual TranscriptionSessionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TranscriptionSessionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TranscriptionSessionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public enum TurnDetectionKind + { Unknown = 0, ServerVoiceActivityDetection = 1, SemanticVoiceActivityDetection = 2, Disabled = 3 } - [Experimental("OPENAI002")] - public class TurnDetectionOptions : IJsonModel, IPersistableModel { - public TurnDetectionKind Kind { get; } - public static TurnDetectionOptions CreateDisabledTurnDetectionOptions(); - public static TurnDetectionOptions CreateSemanticVoiceActivityTurnDetectionOptions(SemanticEagernessLevel? eagernessLevel = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null); - public static TurnDetectionOptions CreateServerVoiceActivityTurnDetectionOptions(float? detectionThreshold = null, TimeSpan? prefixPaddingDuration = null, TimeSpan? silenceDuration = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null); - protected virtual TurnDetectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual TurnDetectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI002")] + public partial class TurnDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TurnDetectionOptions() { } + public TurnDetectionKind Kind { get { throw null; } } + + public static TurnDetectionOptions CreateDisabledTurnDetectionOptions() { throw null; } + public static TurnDetectionOptions CreateSemanticVoiceActivityTurnDetectionOptions(SemanticEagernessLevel? eagernessLevel = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null) { throw null; } + public static TurnDetectionOptions CreateServerVoiceActivityTurnDetectionOptions(float? detectionThreshold = null, System.TimeSpan? prefixPaddingDuration = null, System.TimeSpan? silenceDuration = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null) { throw null; } + protected virtual TurnDetectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual TurnDetectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TurnDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TurnDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Responses { - [Experimental("OPENAI001")] - public class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, IJsonModel, IPersistableModel { - public AutomaticCodeInterpreterToolContainerConfiguration(); - public IList FileIds { get; } - protected override CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, IJsonModel, IPersistableModel { - public CodeInterpreterCallImageOutput(Uri imageUri); - public Uri ImageUri { get; set; } - protected override CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, IJsonModel, IPersistableModel { - public CodeInterpreterCallLogsOutput(string logs); - public string Logs { get; set; } - protected override CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallOutput : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public CodeInterpreterCallResponseItem(string code); - public string Code { get; set; } - public string ContainerId { get; set; } - public IList Outputs { get; } - public CodeInterpreterCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum CodeInterpreterCallStatus { + +namespace OpenAI.Responses +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AutomaticCodeInterpreterToolContainerConfiguration() { } + public System.Collections.Generic.IList FileIds { get { throw null; } } + + protected override CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AutomaticCodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AutomaticCodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallImageOutput(System.Uri imageUri) { } + public System.Uri ImageUri { get { throw null; } set { } } + + protected override CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallImageOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallImageOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallLogsOutput(string logs) { } + public string Logs { get { throw null; } set { } } + + protected override CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallLogsOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallLogsOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CodeInterpreterCallOutput() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallResponseItem(string code) { } + public string Code { get { throw null; } set { } } + public string ContainerId { get { throw null; } set { } } + public System.Collections.Generic.IList Outputs { get { throw null; } } + public CodeInterpreterCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum CodeInterpreterCallStatus + { InProgress = 0, Interpreting = 1, Completed = 2, Incomplete = 3, Failed = 4 } - [Experimental("OPENAI001")] - public class CodeInterpreterTool : ResponseTool, IJsonModel, IPersistableModel { - public CodeInterpreterTool(CodeInterpreterToolContainer container); - public CodeInterpreterToolContainer Container { get; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolContainer : IJsonModel, IPersistableModel { - public CodeInterpreterToolContainer(CodeInterpreterToolContainerConfiguration containerConfiguration); - public CodeInterpreterToolContainer(string containerId); - public CodeInterpreterToolContainerConfiguration ContainerConfiguration { get; } - public string ContainerId { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual CodeInterpreterToolContainer JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolContainer PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CodeInterpreterToolContainerConfiguration : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(IEnumerable fileIds = null); - protected virtual CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public class ComputerCallAction : IJsonModel, IPersistableModel { - public Drawing.Point? ClickCoordinates { get; } - public ComputerCallActionMouseButton? ClickMouseButton { get; } - public Drawing.Point? DoubleClickCoordinates { get; } - public IList DragPath { get; } - public IList KeyPressKeyCodes { get; } - public ComputerCallActionKind Kind { get; } - public Drawing.Point? MoveCoordinates { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public Drawing.Point? ScrollCoordinates { get; } - public int? ScrollHorizontalOffset { get; } - public int? ScrollVerticalOffset { get; } - public string TypeText { get; } - public static ComputerCallAction CreateClickAction(Drawing.Point clickCoordinates, ComputerCallActionMouseButton clickMouseButton); - public static ComputerCallAction CreateDoubleClickAction(Drawing.Point doubleClickCoordinates, ComputerCallActionMouseButton doubleClickMouseButton); - public static ComputerCallAction CreateDragAction(IList dragPath); - public static ComputerCallAction CreateKeyPressAction(IList keyCodes); - public static ComputerCallAction CreateMoveAction(Drawing.Point moveCoordinates); - public static ComputerCallAction CreateScreenshotAction(); - public static ComputerCallAction CreateScrollAction(Drawing.Point scrollCoordinates, int horizontalOffset, int verticalOffset); - public static ComputerCallAction CreateTypeAction(string typeText); - public static ComputerCallAction CreateWaitAction(); - protected virtual ComputerCallAction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallAction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public enum ComputerCallActionKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterTool(CodeInterpreterToolContainer container) { } + public CodeInterpreterToolContainer Container { get { throw null; } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolContainer : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolContainer(CodeInterpreterToolContainerConfiguration containerConfiguration) { } + public CodeInterpreterToolContainer(string containerId) { } + public CodeInterpreterToolContainerConfiguration ContainerConfiguration { get { throw null; } } + public string ContainerId { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual CodeInterpreterToolContainer JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolContainer PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolContainer System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolContainer System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CodeInterpreterToolContainerConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CodeInterpreterToolContainerConfiguration() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(System.Collections.Generic.IEnumerable fileIds = null) { throw null; } + protected virtual CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallAction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ComputerCallAction() { } + public System.Drawing.Point? ClickCoordinates { get { throw null; } } + public ComputerCallActionMouseButton? ClickMouseButton { get { throw null; } } + public System.Drawing.Point? DoubleClickCoordinates { get { throw null; } } + public System.Collections.Generic.IList DragPath { get { throw null; } } + public System.Collections.Generic.IList KeyPressKeyCodes { get { throw null; } } + public ComputerCallActionKind Kind { get { throw null; } } + public System.Drawing.Point? MoveCoordinates { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Drawing.Point? ScrollCoordinates { get { throw null; } } + public int? ScrollHorizontalOffset { get { throw null; } } + public int? ScrollVerticalOffset { get { throw null; } } + public string TypeText { get { throw null; } } + + public static ComputerCallAction CreateClickAction(System.Drawing.Point clickCoordinates, ComputerCallActionMouseButton clickMouseButton) { throw null; } + public static ComputerCallAction CreateDoubleClickAction(System.Drawing.Point doubleClickCoordinates, ComputerCallActionMouseButton doubleClickMouseButton) { throw null; } + public static ComputerCallAction CreateDragAction(System.Collections.Generic.IList dragPath) { throw null; } + public static ComputerCallAction CreateKeyPressAction(System.Collections.Generic.IList keyCodes) { throw null; } + public static ComputerCallAction CreateMoveAction(System.Drawing.Point moveCoordinates) { throw null; } + public static ComputerCallAction CreateScreenshotAction() { throw null; } + public static ComputerCallAction CreateScrollAction(System.Drawing.Point scrollCoordinates, int horizontalOffset, int verticalOffset) { throw null; } + public static ComputerCallAction CreateTypeAction(string typeText) { throw null; } + public static ComputerCallAction CreateWaitAction() { throw null; } + protected virtual ComputerCallAction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallAction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallAction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallAction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallActionKind + { Click = 0, DoubleClick = 1, Drag = 2, @@ -5262,753 +8228,1122 @@ public enum ComputerCallActionKind { Type = 7, Wait = 8 } - [Experimental("OPENAICUA001")] - public enum ComputerCallActionMouseButton { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallActionMouseButton + { Left = 0, Right = 1, Wheel = 2, Back = 3, Forward = 4 } - [Experimental("OPENAICUA001")] - public class ComputerCallOutput : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ComputerCallOutput CreateScreenshotOutput(BinaryData screenshotImageBytes, string screenshotImageBytesMediaType); - public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId); - public static ComputerCallOutput CreateScreenshotOutput(Uri screenshotImageUri); - protected virtual ComputerCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public class ComputerCallOutputResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output); - public IList AcknowledgedSafetyChecks { get; } - public string CallId { get; set; } - public ComputerCallOutput Output { get; set; } - public ComputerCallOutputStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public enum ComputerCallOutputStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ComputerCallOutput() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ComputerCallOutput CreateScreenshotOutput(System.BinaryData screenshotImageBytes, string screenshotImageBytesMediaType) { throw null; } + public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId) { throw null; } + public static ComputerCallOutput CreateScreenshotOutput(System.Uri screenshotImageUri) { throw null; } + protected virtual ComputerCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallOutputResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output) { } + public System.Collections.Generic.IList AcknowledgedSafetyChecks { get { throw null; } } + public string CallId { get { throw null; } set { } } + public ComputerCallOutput Output { get { throw null; } set { } } + public ComputerCallOutputStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallOutputResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallOutputResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallOutputStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAICUA001")] - public class ComputerCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ComputerCallResponseItem(string callId, ComputerCallAction action, IEnumerable pendingSafetyChecks); - public ComputerCallAction Action { get; set; } - public string CallId { get; set; } - public IList PendingSafetyChecks { get; } - public ComputerCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public class ComputerCallSafetyCheck : IJsonModel, IPersistableModel { - public ComputerCallSafetyCheck(string id, string code, string message); - public string Code { get; set; } - public string Id { get; set; } - public string Message { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ComputerCallSafetyCheck JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallSafetyCheck PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public enum ComputerCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallResponseItem(string callId, ComputerCallAction action, System.Collections.Generic.IEnumerable pendingSafetyChecks) { } + public ComputerCallAction Action { get { throw null; } set { } } + public string CallId { get { throw null; } set { } } + public System.Collections.Generic.IList PendingSafetyChecks { get { throw null; } } + public ComputerCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public partial class ComputerCallSafetyCheck : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallSafetyCheck(string id, string code, string message) { } + public string Code { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ComputerCallSafetyCheck JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallSafetyCheck PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallSafetyCheck System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallSafetyCheck System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public enum ComputerCallStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class ComputerTool : ResponseTool, IJsonModel, IPersistableModel { - public ComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight); - public int DisplayHeight { get; set; } - public int DisplayWidth { get; set; } - public ComputerToolEnvironment Environment { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAICUA001")] - public readonly partial struct ComputerToolEnvironment : IEquatable { - public ComputerToolEnvironment(string value); - public static ComputerToolEnvironment Browser { get; } - public static ComputerToolEnvironment Linux { get; } - public static ComputerToolEnvironment Mac { get; } - public static ComputerToolEnvironment Ubuntu { get; } - public static ComputerToolEnvironment Windows { get; } - public readonly bool Equals(ComputerToolEnvironment other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ComputerToolEnvironment left, ComputerToolEnvironment right); - public static implicit operator ComputerToolEnvironment(string value); - public static implicit operator ComputerToolEnvironment?(string value); - public static bool operator !=(ComputerToolEnvironment left, ComputerToolEnvironment right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public ContainerFileCitationMessageAnnotation(string containerId, string fileId, int startIndex, int endIndex, string filename); - public string ContainerId { get; set; } - public int EndIndex { get; set; } - public string FileId { get; set; } - public string Filename { get; set; } - public int StartIndex { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CreateResponseOptions : IJsonModel, IPersistableModel { - public CreateResponseOptions(); - public CreateResponseOptions(IEnumerable inputItems, string model = null); - public bool? BackgroundModeEnabled { get; set; } - public ResponseConversationOptions ConversationOptions { get; set; } - public string EndUserId { get; set; } - public IList IncludedProperties { get; } - public IList InputItems { get; } - public string Instructions { get; set; } - public int? MaxOutputTokenCount { get; set; } - public int? MaxToolCallCount { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public bool? ParallelToolCallsEnabled { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string PreviousResponseId { get; set; } - public ResponseReasoningOptions ReasoningOptions { get; set; } - public string SafetyIdentifier { get; set; } - public ResponseServiceTier? ServiceTier { get; set; } - public bool? StoredOutputEnabled { get; set; } - public bool? StreamingEnabled { get; set; } - public float? Temperature { get; set; } - public ResponseTextOptions TextOptions { get; set; } - public ResponseToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - public ResponseTruncationMode? TruncationMode { get; set; } - protected virtual CreateResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(CreateResponseOptions createResponseOptions); - protected virtual CreateResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class CustomMcpToolCallApprovalPolicy : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public McpToolFilter ToolsAlwaysRequiringApproval { get; set; } - public McpToolFilter ToolsNeverRequiringApproval { get; set; } - protected virtual CustomMcpToolCallApprovalPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CustomMcpToolCallApprovalPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public FileCitationMessageAnnotation(string fileId, int index, string filename); - public string FileId { get; set; } - public string Filename { get; set; } - public int Index { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FilePathMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public FilePathMessageAnnotation(string fileId, int index); - public string FileId { get; set; } - public int Index { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FileSearchCallResponseItem(IEnumerable queries); - public IList Queries { get; } - public IList Results { get; set; } - public FileSearchCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileSearchCallResult : IJsonModel, IPersistableModel { - public IDictionary Attributes { get; } - public string FileId { get; set; } - public string Filename { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public float? Score { get; set; } - public string Text { get; set; } - protected virtual FileSearchCallResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchCallResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum FileSearchCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ComputerTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight) { } + public int DisplayHeight { get { throw null; } set { } } + public int DisplayWidth { get { throw null; } set { } } + public ComputerToolEnvironment Environment { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public readonly partial struct ComputerToolEnvironment : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ComputerToolEnvironment(string value) { } + public static ComputerToolEnvironment Browser { get { throw null; } } + public static ComputerToolEnvironment Linux { get { throw null; } } + public static ComputerToolEnvironment Mac { get { throw null; } } + public static ComputerToolEnvironment Ubuntu { get { throw null; } } + public static ComputerToolEnvironment Windows { get { throw null; } } + + public readonly bool Equals(ComputerToolEnvironment other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ComputerToolEnvironment left, ComputerToolEnvironment right) { throw null; } + public static implicit operator ComputerToolEnvironment(string value) { throw null; } + public static implicit operator ComputerToolEnvironment?(string value) { throw null; } + public static bool operator !=(ComputerToolEnvironment left, ComputerToolEnvironment right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContainerFileCitationMessageAnnotation(string containerId, string fileId, int startIndex, int endIndex, string filename) { } + public string ContainerId { get { throw null; } set { } } + public int EndIndex { get { throw null; } set { } } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + public int StartIndex { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CreateResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateResponseOptions() { } + public CreateResponseOptions(System.Collections.Generic.IEnumerable inputItems, string model = null) { } + public bool? BackgroundModeEnabled { get { throw null; } set { } } + public ResponseConversationOptions ConversationOptions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public System.Collections.Generic.IList IncludedProperties { get { throw null; } } + public System.Collections.Generic.IList InputItems { get { throw null; } } + public string Instructions { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public int? MaxToolCallCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public bool? ParallelToolCallsEnabled { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string PreviousResponseId { get { throw null; } set { } } + public ResponseReasoningOptions ReasoningOptions { get { throw null; } set { } } + public string SafetyIdentifier { get { throw null; } set { } } + public ResponseServiceTier? ServiceTier { get { throw null; } set { } } + public bool? StoredOutputEnabled { get { throw null; } set { } } + public bool? StreamingEnabled { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ResponseTextOptions TextOptions { get { throw null; } set { } } + public ResponseToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + public ResponseTruncationMode? TruncationMode { get { throw null; } set { } } + + protected virtual CreateResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(CreateResponseOptions createResponseOptions) { throw null; } + protected virtual CreateResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class CustomMcpToolCallApprovalPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public McpToolFilter ToolsAlwaysRequiringApproval { get { throw null; } set { } } + public McpToolFilter ToolsNeverRequiringApproval { get { throw null; } set { } } + + protected virtual CustomMcpToolCallApprovalPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CustomMcpToolCallApprovalPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CustomMcpToolCallApprovalPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CustomMcpToolCallApprovalPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileCitationMessageAnnotation(string fileId, int index, string filename) { } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + public int Index { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FilePathMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FilePathMessageAnnotation(string fileId, int index) { } + public string FileId { get { throw null; } set { } } + public int Index { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FilePathMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FilePathMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchCallResponseItem(System.Collections.Generic.IEnumerable queries) { } + public System.Collections.Generic.IList Queries { get { throw null; } } + public System.Collections.Generic.IList Results { get { throw null; } set { } } + public FileSearchCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchCallResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Attributes { get { throw null; } } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public float? Score { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected virtual FileSearchCallResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchCallResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchCallResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchCallResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum FileSearchCallStatus + { InProgress = 0, Searching = 1, Completed = 2, Incomplete = 3, Failed = 4 } - [Experimental("OPENAI001")] - public class FileSearchTool : ResponseTool, IJsonModel, IPersistableModel { - public FileSearchTool(IEnumerable vectorStoreIds); - public BinaryData Filters { get; set; } - public int? MaxResultCount { get; set; } - public FileSearchToolRankingOptions RankingOptions { get; set; } - public IList VectorStoreIds { get; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct FileSearchToolRanker : IEquatable { - public FileSearchToolRanker(string value); - public static FileSearchToolRanker Auto { get; } - public static FileSearchToolRanker Default20241115 { get; } - public readonly bool Equals(FileSearchToolRanker other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileSearchToolRanker left, FileSearchToolRanker right); - public static implicit operator FileSearchToolRanker(string value); - public static implicit operator FileSearchToolRanker?(string value); - public static bool operator !=(FileSearchToolRanker left, FileSearchToolRanker right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class FileSearchToolRankingOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public FileSearchToolRanker? Ranker { get; set; } - public float? ScoreThreshold { get; set; } - protected virtual FileSearchToolRankingOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchToolRankingOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FunctionCallOutputResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FunctionCallOutputResponseItem(string callId, string functionOutput); - public string CallId { get; set; } - public string FunctionOutput { get; set; } - public FunctionCallOutputStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum FunctionCallOutputStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchTool(System.Collections.Generic.IEnumerable vectorStoreIds) { } + public System.BinaryData Filters { get { throw null; } set { } } + public int? MaxResultCount { get { throw null; } set { } } + public FileSearchToolRankingOptions RankingOptions { get { throw null; } set { } } + public System.Collections.Generic.IList VectorStoreIds { get { throw null; } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct FileSearchToolRanker : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileSearchToolRanker(string value) { } + public static FileSearchToolRanker Auto { get { throw null; } } + public static FileSearchToolRanker Default20241115 { get { throw null; } } + + public readonly bool Equals(FileSearchToolRanker other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileSearchToolRanker left, FileSearchToolRanker right) { throw null; } + public static implicit operator FileSearchToolRanker(string value) { throw null; } + public static implicit operator FileSearchToolRanker?(string value) { throw null; } + public static bool operator !=(FileSearchToolRanker left, FileSearchToolRanker right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileSearchToolRankingOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public FileSearchToolRanker? Ranker { get { throw null; } set { } } + public float? ScoreThreshold { get { throw null; } set { } } + + protected virtual FileSearchToolRankingOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchToolRankingOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolRankingOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolRankingOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionCallOutputResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionCallOutputResponseItem(string callId, string functionOutput) { } + public string CallId { get { throw null; } set { } } + public string FunctionOutput { get { throw null; } set { } } + public FunctionCallOutputStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionCallOutputResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionCallOutputResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum FunctionCallOutputStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class FunctionCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FunctionCallResponseItem(string callId, string functionName, BinaryData functionArguments); - public string CallId { get; set; } - public BinaryData FunctionArguments { get; set; } - public string FunctionName { get; set; } - public FunctionCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum FunctionCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionCallResponseItem(string callId, string functionName, System.BinaryData functionArguments) { } + public string CallId { get { throw null; } set { } } + public System.BinaryData FunctionArguments { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public FunctionCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum FunctionCallStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class FunctionTool : ResponseTool, IJsonModel, IPersistableModel { - public FunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled); - public string FunctionDescription { get; set; } - public string FunctionName { get; set; } - public BinaryData FunctionParameters { get; set; } - public bool? StrictModeEnabled { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class GetResponseOptions : IJsonModel, IPersistableModel { - public GetResponseOptions(string responseId); - public IList IncludedProperties { get; set; } - public bool? IncludeObfuscation { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string ResponseId { get; } - public int? StartingAfter { get; set; } - public bool? StreamingEnabled { get; set; } - protected virtual GetResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual GetResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct GlobalMcpToolCallApprovalPolicy : IEquatable { - public GlobalMcpToolCallApprovalPolicy(string value); - public static GlobalMcpToolCallApprovalPolicy AlwaysRequireApproval { get; } - public static GlobalMcpToolCallApprovalPolicy NeverRequireApproval { get; } - public readonly bool Equals(GlobalMcpToolCallApprovalPolicy other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right); - public static implicit operator GlobalMcpToolCallApprovalPolicy(string value); - public static implicit operator GlobalMcpToolCallApprovalPolicy?(string value); - public static bool operator !=(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ImageGenerationCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ImageGenerationCallResponseItem(BinaryData imageResultBytes); - public BinaryData ImageResultBytes { get; set; } - public ImageGenerationCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ImageGenerationCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FunctionTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionTool(string functionName, System.BinaryData functionParameters, bool? strictModeEnabled) { } + public string FunctionDescription { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public System.BinaryData FunctionParameters { get { throw null; } set { } } + public bool? StrictModeEnabled { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class GetResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GetResponseOptions(string responseId) { } + public System.Collections.Generic.IList IncludedProperties { get { throw null; } set { } } + public bool? IncludeObfuscation { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ResponseId { get { throw null; } } + public int? StartingAfter { get { throw null; } set { } } + public bool? StreamingEnabled { get { throw null; } set { } } + + protected virtual GetResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual GetResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GetResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GetResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct GlobalMcpToolCallApprovalPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GlobalMcpToolCallApprovalPolicy(string value) { } + public static GlobalMcpToolCallApprovalPolicy AlwaysRequireApproval { get { throw null; } } + public static GlobalMcpToolCallApprovalPolicy NeverRequireApproval { get { throw null; } } + + public readonly bool Equals(GlobalMcpToolCallApprovalPolicy other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right) { throw null; } + public static implicit operator GlobalMcpToolCallApprovalPolicy(string value) { throw null; } + public static implicit operator GlobalMcpToolCallApprovalPolicy?(string value) { throw null; } + public static bool operator !=(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageGenerationCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationCallResponseItem(System.BinaryData imageResultBytes) { } + public System.BinaryData ImageResultBytes { get { throw null; } set { } } + public ImageGenerationCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ImageGenerationCallStatus + { InProgress = 0, Completed = 1, Generating = 2, Failed = 3 } - [Experimental("OPENAI001")] - public class ImageGenerationTool : ResponseTool, IJsonModel, IPersistableModel { - public ImageGenerationTool(); - public ImageGenerationToolBackground? Background { get; set; } - public ImageGenerationToolInputFidelity? InputFidelity { get; set; } - public ImageGenerationToolInputImageMask InputImageMask { get; set; } - public string Model { get; set; } - public ImageGenerationToolModerationLevel? ModerationLevel { get; set; } - public int? OutputCompressionFactor { get; set; } - public ImageGenerationToolOutputFileFormat? OutputFileFormat { get; set; } - public int? PartialImageCount { get; set; } - public ImageGenerationToolQuality? Quality { get; set; } - public ImageGenerationToolSize? Size { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolBackground : IEquatable { - public ImageGenerationToolBackground(string value); - public static ImageGenerationToolBackground Auto { get; } - public static ImageGenerationToolBackground Opaque { get; } - public static ImageGenerationToolBackground Transparent { get; } - public readonly bool Equals(ImageGenerationToolBackground other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolBackground left, ImageGenerationToolBackground right); - public static implicit operator ImageGenerationToolBackground(string value); - public static implicit operator ImageGenerationToolBackground?(string value); - public static bool operator !=(ImageGenerationToolBackground left, ImageGenerationToolBackground right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolInputFidelity : IEquatable { - public ImageGenerationToolInputFidelity(string value); - public static ImageGenerationToolInputFidelity High { get; } - public static ImageGenerationToolInputFidelity Low { get; } - public readonly bool Equals(ImageGenerationToolInputFidelity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right); - public static implicit operator ImageGenerationToolInputFidelity(string value); - public static implicit operator ImageGenerationToolInputFidelity?(string value); - public static bool operator !=(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ImageGenerationToolInputImageMask : IJsonModel, IPersistableModel { - public ImageGenerationToolInputImageMask(string fileId); - public ImageGenerationToolInputImageMask(Uri imageUri); - public string FileId { get; } - public Uri ImageUri { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ImageGenerationToolInputImageMask JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageGenerationToolInputImageMask PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolModerationLevel : IEquatable { - public ImageGenerationToolModerationLevel(string value); - public static ImageGenerationToolModerationLevel Auto { get; } - public static ImageGenerationToolModerationLevel Low { get; } - public readonly bool Equals(ImageGenerationToolModerationLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right); - public static implicit operator ImageGenerationToolModerationLevel(string value); - public static implicit operator ImageGenerationToolModerationLevel?(string value); - public static bool operator !=(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolOutputFileFormat : IEquatable { - public ImageGenerationToolOutputFileFormat(string value); - public static ImageGenerationToolOutputFileFormat Jpeg { get; } - public static ImageGenerationToolOutputFileFormat Png { get; } - public static ImageGenerationToolOutputFileFormat Webp { get; } - public readonly bool Equals(ImageGenerationToolOutputFileFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right); - public static implicit operator ImageGenerationToolOutputFileFormat(string value); - public static implicit operator ImageGenerationToolOutputFileFormat?(string value); - public static bool operator !=(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolQuality : IEquatable { - public ImageGenerationToolQuality(string value); - public static ImageGenerationToolQuality Auto { get; } - public static ImageGenerationToolQuality High { get; } - public static ImageGenerationToolQuality Low { get; } - public static ImageGenerationToolQuality Medium { get; } - public readonly bool Equals(ImageGenerationToolQuality other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolQuality left, ImageGenerationToolQuality right); - public static implicit operator ImageGenerationToolQuality(string value); - public static implicit operator ImageGenerationToolQuality?(string value); - public static bool operator !=(ImageGenerationToolQuality left, ImageGenerationToolQuality right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ImageGenerationToolSize : IEquatable { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageGenerationTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationTool() { } + public ImageGenerationToolBackground? Background { get { throw null; } set { } } + public ImageGenerationToolInputFidelity? InputFidelity { get { throw null; } set { } } + public ImageGenerationToolInputImageMask InputImageMask { get { throw null; } set { } } + public string Model { get { throw null; } set { } } + public ImageGenerationToolModerationLevel? ModerationLevel { get { throw null; } set { } } + public int? OutputCompressionFactor { get { throw null; } set { } } + public ImageGenerationToolOutputFileFormat? OutputFileFormat { get { throw null; } set { } } + public int? PartialImageCount { get { throw null; } set { } } + public ImageGenerationToolQuality? Quality { get { throw null; } set { } } + public ImageGenerationToolSize? Size { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolBackground : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolBackground(string value) { } + public static ImageGenerationToolBackground Auto { get { throw null; } } + public static ImageGenerationToolBackground Opaque { get { throw null; } } + public static ImageGenerationToolBackground Transparent { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolBackground other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolBackground left, ImageGenerationToolBackground right) { throw null; } + public static implicit operator ImageGenerationToolBackground(string value) { throw null; } + public static implicit operator ImageGenerationToolBackground?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolBackground left, ImageGenerationToolBackground right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolInputFidelity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolInputFidelity(string value) { } + public static ImageGenerationToolInputFidelity High { get { throw null; } } + public static ImageGenerationToolInputFidelity Low { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolInputFidelity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right) { throw null; } + public static implicit operator ImageGenerationToolInputFidelity(string value) { throw null; } + public static implicit operator ImageGenerationToolInputFidelity?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ImageGenerationToolInputImageMask : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationToolInputImageMask(string fileId) { } + public ImageGenerationToolInputImageMask(System.Uri imageUri) { } + public string FileId { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ImageGenerationToolInputImageMask JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageGenerationToolInputImageMask PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationToolInputImageMask System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationToolInputImageMask System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolModerationLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolModerationLevel(string value) { } + public static ImageGenerationToolModerationLevel Auto { get { throw null; } } + public static ImageGenerationToolModerationLevel Low { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolModerationLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right) { throw null; } + public static implicit operator ImageGenerationToolModerationLevel(string value) { throw null; } + public static implicit operator ImageGenerationToolModerationLevel?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolOutputFileFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolOutputFileFormat(string value) { } + public static ImageGenerationToolOutputFileFormat Jpeg { get { throw null; } } + public static ImageGenerationToolOutputFileFormat Png { get { throw null; } } + public static ImageGenerationToolOutputFileFormat Webp { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolOutputFileFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right) { throw null; } + public static implicit operator ImageGenerationToolOutputFileFormat(string value) { throw null; } + public static implicit operator ImageGenerationToolOutputFileFormat?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolQuality : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolQuality(string value) { } + public static ImageGenerationToolQuality Auto { get { throw null; } } + public static ImageGenerationToolQuality High { get { throw null; } } + public static ImageGenerationToolQuality Low { get { throw null; } } + public static ImageGenerationToolQuality Medium { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolQuality other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolQuality left, ImageGenerationToolQuality right) { throw null; } + public static implicit operator ImageGenerationToolQuality(string value) { throw null; } + public static implicit operator ImageGenerationToolQuality?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolQuality left, ImageGenerationToolQuality right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ImageGenerationToolSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; public static readonly ImageGenerationToolSize W1024xH1024; public static readonly ImageGenerationToolSize W1024xH1536; public static readonly ImageGenerationToolSize W1536xH1024; - public ImageGenerationToolSize(int width, int height); - public static ImageGenerationToolSize Auto { get; } - public readonly bool Equals(ImageGenerationToolSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolSize left, ImageGenerationToolSize right); - public static bool operator !=(ImageGenerationToolSize left, ImageGenerationToolSize right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct IncludedResponseProperty : IEquatable { - public IncludedResponseProperty(string value); - public static IncludedResponseProperty CodeInterpreterCallOutputs { get; } - public static IncludedResponseProperty ComputerCallOutputImageUri { get; } - public static IncludedResponseProperty FileSearchCallResults { get; } - public static IncludedResponseProperty MessageInputImageUri { get; } - public static IncludedResponseProperty ReasoningEncryptedContent { get; } - public readonly bool Equals(IncludedResponseProperty other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(IncludedResponseProperty left, IncludedResponseProperty right); - public static implicit operator IncludedResponseProperty(string value); - public static implicit operator IncludedResponseProperty?(string value); - public static bool operator !=(IncludedResponseProperty left, IncludedResponseProperty right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class McpTool : ResponseTool, IJsonModel, IPersistableModel { - public McpTool(string serverLabel, McpToolConnectorId connectorId); - public McpTool(string serverLabel, Uri serverUri); - public McpToolFilter AllowedTools { get; set; } - public string AuthorizationToken { get; set; } - public McpToolConnectorId? ConnectorId { get; set; } - public IDictionary Headers { get; set; } - public string ServerDescription { get; set; } - public string ServerLabel { get; set; } - public Uri ServerUri { get; set; } - public McpToolCallApprovalPolicy ToolCallApprovalPolicy { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallApprovalPolicy : IJsonModel, IPersistableModel { - public McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy); - public McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy); - public CustomMcpToolCallApprovalPolicy CustomPolicy { get; } - public GlobalMcpToolCallApprovalPolicy? GlobalPolicy { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual McpToolCallApprovalPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy); - public static implicit operator McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy); - protected virtual McpToolCallApprovalPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallApprovalRequestItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallApprovalRequestItem(string id, string serverLabel, string toolName, BinaryData toolArguments); - public string ServerLabel { get; set; } - public BinaryData ToolArguments { get; set; } - public string ToolName { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallApprovalResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallApprovalResponseItem(string approvalRequestId, bool approved); - public string ApprovalRequestId { get; set; } - public bool Approved { get; set; } - public string Reason { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolCallItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallItem(string serverLabel, string toolName, BinaryData toolArguments); - public BinaryData Error { get; set; } - public string ServerLabel { get; set; } - public BinaryData ToolArguments { get; set; } - public string ToolName { get; set; } - public string ToolOutput { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct McpToolConnectorId : IEquatable { - public McpToolConnectorId(string value); - public static McpToolConnectorId Dropbox { get; } - public static McpToolConnectorId Gmail { get; } - public static McpToolConnectorId GoogleCalendar { get; } - public static McpToolConnectorId GoogleDrive { get; } - public static McpToolConnectorId MicrosoftTeams { get; } - public static McpToolConnectorId OutlookCalendar { get; } - public static McpToolConnectorId OutlookEmail { get; } - public static McpToolConnectorId SharePoint { get; } - public readonly bool Equals(McpToolConnectorId other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(McpToolConnectorId left, McpToolConnectorId right); - public static implicit operator McpToolConnectorId(string value); - public static implicit operator McpToolConnectorId?(string value); - public static bool operator !=(McpToolConnectorId left, McpToolConnectorId right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class McpToolDefinition : IJsonModel, IPersistableModel { - public McpToolDefinition(string name, BinaryData inputSchema); - public BinaryData Annotations { get; set; } - public string Description { get; set; } - public BinaryData InputSchema { get; set; } - public string Name { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual McpToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual McpToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolDefinitionListItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolDefinitionListItem(string serverLabel, IEnumerable toolDefinitions); - public BinaryData Error { get; set; } - public string ServerLabel { get; set; } - public IList ToolDefinitions { get; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class McpToolFilter : IJsonModel, IPersistableModel { - public bool? IsReadOnly { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public IList ToolNames { get; } - protected virtual McpToolFilter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual McpToolFilter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class MessageResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public IList Content { get; } - public MessageRole Role { get; } - public MessageStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum MessageRole { + public ImageGenerationToolSize(int width, int height) { } + public static ImageGenerationToolSize Auto { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolSize left, ImageGenerationToolSize right) { throw null; } + public static bool operator !=(ImageGenerationToolSize left, ImageGenerationToolSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct IncludedResponseProperty : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IncludedResponseProperty(string value) { } + public static IncludedResponseProperty CodeInterpreterCallOutputs { get { throw null; } } + public static IncludedResponseProperty ComputerCallOutputImageUri { get { throw null; } } + public static IncludedResponseProperty FileSearchCallResults { get { throw null; } } + public static IncludedResponseProperty MessageInputImageUri { get { throw null; } } + public static IncludedResponseProperty ReasoningEncryptedContent { get { throw null; } } + + public readonly bool Equals(IncludedResponseProperty other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(IncludedResponseProperty left, IncludedResponseProperty right) { throw null; } + public static implicit operator IncludedResponseProperty(string value) { throw null; } + public static implicit operator IncludedResponseProperty?(string value) { throw null; } + public static bool operator !=(IncludedResponseProperty left, IncludedResponseProperty right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpTool(string serverLabel, McpToolConnectorId connectorId) { } + public McpTool(string serverLabel, System.Uri serverUri) { } + public McpToolFilter AllowedTools { get { throw null; } set { } } + public string AuthorizationToken { get { throw null; } set { } } + public McpToolConnectorId? ConnectorId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Headers { get { throw null; } set { } } + public string ServerDescription { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.Uri ServerUri { get { throw null; } set { } } + public McpToolCallApprovalPolicy ToolCallApprovalPolicy { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallApprovalPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy) { } + public McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy) { } + public CustomMcpToolCallApprovalPolicy CustomPolicy { get { throw null; } } + public GlobalMcpToolCallApprovalPolicy? GlobalPolicy { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual McpToolCallApprovalPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy) { throw null; } + public static implicit operator McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy) { throw null; } + protected virtual McpToolCallApprovalPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallApprovalRequestItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalRequestItem(string id, string serverLabel, string toolName, System.BinaryData toolArguments) { } + public string ServerLabel { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + public string ToolName { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalRequestItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalRequestItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallApprovalResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalResponseItem(string approvalRequestId, bool approved) { } + public string ApprovalRequestId { get { throw null; } set { } } + public bool Approved { get { throw null; } set { } } + public string Reason { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolCallItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallItem(string serverLabel, string toolName, System.BinaryData toolArguments) { } + public System.BinaryData Error { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + public string ToolName { get { throw null; } set { } } + public string ToolOutput { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct McpToolConnectorId : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public McpToolConnectorId(string value) { } + public static McpToolConnectorId Dropbox { get { throw null; } } + public static McpToolConnectorId Gmail { get { throw null; } } + public static McpToolConnectorId GoogleCalendar { get { throw null; } } + public static McpToolConnectorId GoogleDrive { get { throw null; } } + public static McpToolConnectorId MicrosoftTeams { get { throw null; } } + public static McpToolConnectorId OutlookCalendar { get { throw null; } } + public static McpToolConnectorId OutlookEmail { get { throw null; } } + public static McpToolConnectorId SharePoint { get { throw null; } } + + public readonly bool Equals(McpToolConnectorId other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(McpToolConnectorId left, McpToolConnectorId right) { throw null; } + public static implicit operator McpToolConnectorId(string value) { throw null; } + public static implicit operator McpToolConnectorId?(string value) { throw null; } + public static bool operator !=(McpToolConnectorId left, McpToolConnectorId right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolDefinition(string name, System.BinaryData inputSchema) { } + public System.BinaryData Annotations { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.BinaryData InputSchema { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual McpToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual McpToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolDefinitionListItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolDefinitionListItem(string serverLabel, System.Collections.Generic.IEnumerable toolDefinitions) { } + public System.BinaryData Error { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.Collections.Generic.IList ToolDefinitions { get { throw null; } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolDefinitionListItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolDefinitionListItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class McpToolFilter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? IsReadOnly { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Collections.Generic.IList ToolNames { get { throw null; } } + + protected virtual McpToolFilter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual McpToolFilter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolFilter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolFilter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class MessageResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageResponseItem() { } + public System.Collections.Generic.IList Content { get { throw null; } } + public MessageRole Role { get { throw null; } } + public MessageStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageRole + { Unknown = 0, Assistant = 1, Developer = 2, System = 3, User = 4 } - [Experimental("OPENAI001")] - public enum MessageStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum MessageStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class ReasoningResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ReasoningResponseItem(IEnumerable summaryParts); - public ReasoningResponseItem(string summaryText); - public string EncryptedContent { get; set; } - public ReasoningStatus? Status { get; set; } - public IList SummaryParts { get; } - public string GetSummaryText(); - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ReasoningStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReasoningResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReasoningResponseItem(System.Collections.Generic.IEnumerable summaryParts) { } + public ReasoningResponseItem(string summaryText) { } + public string EncryptedContent { get { throw null; } set { } } + public ReasoningStatus? Status { get { throw null; } set { } } + public System.Collections.Generic.IList SummaryParts { get { throw null; } } + + public string GetSummaryText() { throw null; } + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ReasoningStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - [Experimental("OPENAI001")] - public class ReasoningSummaryPart : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ReasoningSummaryTextPart CreateTextPart(string text); - protected virtual ReasoningSummaryPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ReasoningSummaryPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ReasoningSummaryTextPart : ReasoningSummaryPart, IJsonModel, IPersistableModel { - public ReasoningSummaryTextPart(string text); - public string Text { get; set; } - protected override ReasoningSummaryPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ReasoningSummaryPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ReferenceResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ReferenceResponseItem(string id); - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseContentPart : IJsonModel, IPersistableModel { - public BinaryData InputFileBytes { get; } - public string InputFileBytesMediaType { get; } - public string InputFileId { get; } - public string InputFilename { get; } - public ResponseImageDetailLevel? InputImageDetailLevel { get; } - public string InputImageFileId { get; } - public Uri InputImageUri { get; } - public ResponseContentPartKind Kind { get; } - public IReadOnlyList OutputTextAnnotations { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public string Text { get; } - public static ResponseContentPart CreateInputFilePart(BinaryData fileBytes, string fileBytesMediaType, string filename); - public static ResponseContentPart CreateInputFilePart(string fileId); - public static ResponseContentPart CreateInputImagePart(string imageFileId, ResponseImageDetailLevel? imageDetailLevel = null); - public static ResponseContentPart CreateInputImagePart(Uri imageUri, ResponseImageDetailLevel? imageDetailLevel = null); - public static ResponseContentPart CreateInputTextPart(string text); - public static ResponseContentPart CreateOutputTextPart(string text, IEnumerable annotations); - public static ResponseContentPart CreateRefusalPart(string refusal); - protected virtual ResponseContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ResponseContentPartKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReasoningSummaryPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ReasoningSummaryPart() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ReasoningSummaryTextPart CreateTextPart(string text) { throw null; } + protected virtual ReasoningSummaryPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ReasoningSummaryPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningSummaryPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningSummaryPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReasoningSummaryTextPart : ReasoningSummaryPart, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReasoningSummaryTextPart(string text) { } + public string Text { get { throw null; } set { } } + + protected override ReasoningSummaryPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ReasoningSummaryPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningSummaryTextPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningSummaryTextPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ReferenceResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReferenceResponseItem(string id) { } + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReferenceResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReferenceResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseContentPart() { } + public System.BinaryData InputFileBytes { get { throw null; } } + public string InputFileBytesMediaType { get { throw null; } } + public string InputFileId { get { throw null; } } + public string InputFilename { get { throw null; } } + public ResponseImageDetailLevel? InputImageDetailLevel { get { throw null; } } + public string InputImageFileId { get { throw null; } } + public System.Uri InputImageUri { get { throw null; } } + public ResponseContentPartKind Kind { get { throw null; } } + public System.Collections.Generic.IReadOnlyList OutputTextAnnotations { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + + public static ResponseContentPart CreateInputFilePart(System.BinaryData fileBytes, string fileBytesMediaType, string filename) { throw null; } + public static ResponseContentPart CreateInputFilePart(string fileId) { throw null; } + public static ResponseContentPart CreateInputImagePart(string imageFileId, ResponseImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ResponseContentPart CreateInputImagePart(System.Uri imageUri, ResponseImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ResponseContentPart CreateInputTextPart(string text) { throw null; } + public static ResponseContentPart CreateOutputTextPart(string text, System.Collections.Generic.IEnumerable annotations) { throw null; } + public static ResponseContentPart CreateRefusalPart(string refusal) { throw null; } + protected virtual ResponseContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseContentPartKind + { Unknown = 0, InputText = 1, InputImage = 2, @@ -6016,421 +9351,585 @@ public enum ResponseContentPartKind { OutputText = 4, Refusal = 5 } - [Experimental("OPENAI001")] - public class ResponseConversationOptions : IJsonModel, IPersistableModel { - public ResponseConversationOptions(string conversationId); - public string ConversationId { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseConversationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseConversationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string ResponseId { get; set; } - protected virtual ResponseDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseDeletionResult(ClientResult result); - protected virtual ResponseDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseError : IJsonModel, IPersistableModel { - public ResponseErrorCode Code { get; } - public string Message { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseErrorCode : IEquatable { - public ResponseErrorCode(string value); - public static ResponseErrorCode EmptyImageFile { get; } - public static ResponseErrorCode FailedToDownloadImage { get; } - public static ResponseErrorCode ImageContentPolicyViolation { get; } - public static ResponseErrorCode ImageFileNotFound { get; } - public static ResponseErrorCode ImageFileTooLarge { get; } - public static ResponseErrorCode ImageParseError { get; } - public static ResponseErrorCode ImageTooLarge { get; } - public static ResponseErrorCode ImageTooSmall { get; } - public static ResponseErrorCode InvalidBase64Image { get; } - public static ResponseErrorCode InvalidImage { get; } - public static ResponseErrorCode InvalidImageFormat { get; } - public static ResponseErrorCode InvalidImageMode { get; } - public static ResponseErrorCode InvalidImageUrl { get; } - public static ResponseErrorCode InvalidPrompt { get; } - public static ResponseErrorCode RateLimitExceeded { get; } - public static ResponseErrorCode ServerError { get; } - public static ResponseErrorCode UnsupportedImageMediaType { get; } - public static ResponseErrorCode VectorStoreTimeout { get; } - public readonly bool Equals(ResponseErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseErrorCode left, ResponseErrorCode right); - public static implicit operator ResponseErrorCode(string value); - public static implicit operator ResponseErrorCode?(string value); - public static bool operator !=(ResponseErrorCode left, ResponseErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseImageDetailLevel : IEquatable { - public ResponseImageDetailLevel(string value); - public static ResponseImageDetailLevel Auto { get; } - public static ResponseImageDetailLevel High { get; } - public static ResponseImageDetailLevel Low { get; } - public readonly bool Equals(ResponseImageDetailLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseImageDetailLevel left, ResponseImageDetailLevel right); - public static implicit operator ResponseImageDetailLevel(string value); - public static implicit operator ResponseImageDetailLevel?(string value); - public static bool operator !=(ResponseImageDetailLevel left, ResponseImageDetailLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseIncompleteStatusDetails : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public ResponseIncompleteStatusReason? Reason { get; } - protected virtual ResponseIncompleteStatusDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseIncompleteStatusDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseIncompleteStatusReason : IEquatable { - public ResponseIncompleteStatusReason(string value); - public static ResponseIncompleteStatusReason ContentFilter { get; } - public static ResponseIncompleteStatusReason MaxOutputTokens { get; } - public readonly bool Equals(ResponseIncompleteStatusReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right); - public static implicit operator ResponseIncompleteStatusReason(string value); - public static implicit operator ResponseIncompleteStatusReason?(string value); - public static bool operator !=(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int CachedTokenCount { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseItem : IJsonModel, IPersistableModel { - public string Id { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static MessageResponseItem CreateAssistantMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateAssistantMessageItem(string outputTextContent, IEnumerable annotations = null); - [Experimental("OPENAICUA001")] - public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, IEnumerable pendingSafetyChecks); - [Experimental("OPENAICUA001")] - public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output); - public static MessageResponseItem CreateDeveloperMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent); - public static FileSearchCallResponseItem CreateFileSearchCallItem(IEnumerable queries); - public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, BinaryData functionArguments); - public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput); - public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string id, string serverLabel, string name, BinaryData arguments); - public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved); - public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, BinaryData arguments); - public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, IEnumerable toolDefinitions); - public static ReasoningResponseItem CreateReasoningItem(IEnumerable summaryParts); - public static ReasoningResponseItem CreateReasoningItem(string summaryText); - public static ReferenceResponseItem CreateReferenceItem(string id); - public static MessageResponseItem CreateSystemMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateSystemMessageItem(string inputTextContent); - public static MessageResponseItem CreateUserMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateUserMessageItem(string inputTextContent); - public static WebSearchCallResponseItem CreateWebSearchCallItem(); - protected virtual ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseItem(ClientResult result); - protected virtual ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseItemCollectionOptions : IJsonModel, IPersistableModel { - public ResponseItemCollectionOptions(string responseId); - public string AfterId { get; set; } - public string BeforeId { get; set; } - public ResponseItemCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - public string ResponseId { get; } - protected virtual ResponseItemCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseItemCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseItemCollectionOrder : IEquatable { - public ResponseItemCollectionOrder(string value); - public static ResponseItemCollectionOrder Ascending { get; } - public static ResponseItemCollectionOrder Descending { get; } - public readonly bool Equals(ResponseItemCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right); - public static implicit operator ResponseItemCollectionOrder(string value); - public static implicit operator ResponseItemCollectionOrder?(string value); - public static bool operator !=(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseItemCollectionPage : IJsonModel, IPersistableModel { - public IList Data { get; } - public string FirstId { get; set; } - public bool HasMore { get; set; } - public string LastId { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseItemCollectionPage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseItemCollectionPage(ClientResult result); - protected virtual ResponseItemCollectionPage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseMessageAnnotation : IJsonModel, IPersistableModel { - public ResponseMessageAnnotationKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ResponseMessageAnnotationKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseConversationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResponseConversationOptions(string conversationId) { } + public string ConversationId { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseConversationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseConversationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseConversationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseConversationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool Deleted { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ResponseId { get { throw null; } set { } } + + protected virtual ResponseDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseError() { } + public ResponseErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseErrorCode(string value) { } + public static ResponseErrorCode EmptyImageFile { get { throw null; } } + public static ResponseErrorCode FailedToDownloadImage { get { throw null; } } + public static ResponseErrorCode ImageContentPolicyViolation { get { throw null; } } + public static ResponseErrorCode ImageFileNotFound { get { throw null; } } + public static ResponseErrorCode ImageFileTooLarge { get { throw null; } } + public static ResponseErrorCode ImageParseError { get { throw null; } } + public static ResponseErrorCode ImageTooLarge { get { throw null; } } + public static ResponseErrorCode ImageTooSmall { get { throw null; } } + public static ResponseErrorCode InvalidBase64Image { get { throw null; } } + public static ResponseErrorCode InvalidImage { get { throw null; } } + public static ResponseErrorCode InvalidImageFormat { get { throw null; } } + public static ResponseErrorCode InvalidImageMode { get { throw null; } } + public static ResponseErrorCode InvalidImageUrl { get { throw null; } } + public static ResponseErrorCode InvalidPrompt { get { throw null; } } + public static ResponseErrorCode RateLimitExceeded { get { throw null; } } + public static ResponseErrorCode ServerError { get { throw null; } } + public static ResponseErrorCode UnsupportedImageMediaType { get { throw null; } } + public static ResponseErrorCode VectorStoreTimeout { get { throw null; } } + + public readonly bool Equals(ResponseErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseErrorCode left, ResponseErrorCode right) { throw null; } + public static implicit operator ResponseErrorCode(string value) { throw null; } + public static implicit operator ResponseErrorCode?(string value) { throw null; } + public static bool operator !=(ResponseErrorCode left, ResponseErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseImageDetailLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseImageDetailLevel(string value) { } + public static ResponseImageDetailLevel Auto { get { throw null; } } + public static ResponseImageDetailLevel High { get { throw null; } } + public static ResponseImageDetailLevel Low { get { throw null; } } + + public readonly bool Equals(ResponseImageDetailLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseImageDetailLevel left, ResponseImageDetailLevel right) { throw null; } + public static implicit operator ResponseImageDetailLevel(string value) { throw null; } + public static implicit operator ResponseImageDetailLevel?(string value) { throw null; } + public static bool operator !=(ResponseImageDetailLevel left, ResponseImageDetailLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseIncompleteStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseIncompleteStatusDetails() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseIncompleteStatusReason? Reason { get { throw null; } } + + protected virtual ResponseIncompleteStatusDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseIncompleteStatusDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseIncompleteStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseIncompleteStatusDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseIncompleteStatusReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseIncompleteStatusReason(string value) { } + public static ResponseIncompleteStatusReason ContentFilter { get { throw null; } } + public static ResponseIncompleteStatusReason MaxOutputTokens { get { throw null; } } + + public readonly bool Equals(ResponseIncompleteStatusReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right) { throw null; } + public static implicit operator ResponseIncompleteStatusReason(string value) { throw null; } + public static implicit operator ResponseIncompleteStatusReason?(string value) { throw null; } + public static bool operator !=(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int CachedTokenCount { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseItem() { } + public string Id { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static MessageResponseItem CreateAssistantMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateAssistantMessageItem(string outputTextContent, System.Collections.Generic.IEnumerable annotations = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, System.Collections.Generic.IEnumerable pendingSafetyChecks) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output) { throw null; } + public static MessageResponseItem CreateDeveloperMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent) { throw null; } + public static FileSearchCallResponseItem CreateFileSearchCallItem(System.Collections.Generic.IEnumerable queries) { throw null; } + public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, System.BinaryData functionArguments) { throw null; } + public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput) { throw null; } + public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string id, string serverLabel, string name, System.BinaryData arguments) { throw null; } + public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved) { throw null; } + public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, System.BinaryData arguments) { throw null; } + public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, System.Collections.Generic.IEnumerable toolDefinitions) { throw null; } + public static ReasoningResponseItem CreateReasoningItem(System.Collections.Generic.IEnumerable summaryParts) { throw null; } + public static ReasoningResponseItem CreateReasoningItem(string summaryText) { throw null; } + public static ReferenceResponseItem CreateReferenceItem(string id) { throw null; } + public static MessageResponseItem CreateSystemMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateSystemMessageItem(string inputTextContent) { throw null; } + public static MessageResponseItem CreateUserMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateUserMessageItem(string inputTextContent) { throw null; } + public static WebSearchCallResponseItem CreateWebSearchCallItem() { throw null; } + protected virtual ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseItem(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseItemCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResponseItemCollectionOptions(string responseId) { } + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public ResponseItemCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + public string ResponseId { get { throw null; } } + + protected virtual ResponseItemCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseItemCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItemCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItemCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseItemCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseItemCollectionOrder(string value) { } + public static ResponseItemCollectionOrder Ascending { get { throw null; } } + public static ResponseItemCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ResponseItemCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right) { throw null; } + public static implicit operator ResponseItemCollectionOrder(string value) { throw null; } + public static implicit operator ResponseItemCollectionOrder?(string value) { throw null; } + public static bool operator !=(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseItemCollectionPage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Data { get { throw null; } } + public string FirstId { get { throw null; } set { } } + public bool HasMore { get { throw null; } set { } } + public string LastId { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseItemCollectionPage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseItemCollectionPage(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseItemCollectionPage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItemCollectionPage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItemCollectionPage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseMessageAnnotation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseMessageAnnotation() { } + public ResponseMessageAnnotationKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseMessageAnnotationKind + { FileCitation = 0, UriCitation = 1, FilePath = 2, ContainerFileCitation = 3 } - [Experimental("OPENAI001")] - public class ResponseOutputTokenUsageDetails : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int ReasoningTokenCount { get; set; } - protected virtual ResponseOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseReasoningEffortLevel : IEquatable { - public ResponseReasoningEffortLevel(string value); - public static ResponseReasoningEffortLevel High { get; } - public static ResponseReasoningEffortLevel Low { get; } - public static ResponseReasoningEffortLevel Medium { get; } - public static ResponseReasoningEffortLevel Minimal { get; } - public static ResponseReasoningEffortLevel None { get; } - public readonly bool Equals(ResponseReasoningEffortLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right); - public static implicit operator ResponseReasoningEffortLevel(string value); - public static implicit operator ResponseReasoningEffortLevel?(string value); - public static bool operator !=(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseReasoningOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public ResponseReasoningEffortLevel? ReasoningEffortLevel { get; set; } - public ResponseReasoningSummaryVerbosity? ReasoningSummaryVerbosity { get; set; } - protected virtual ResponseReasoningOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseReasoningOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseReasoningSummaryVerbosity : IEquatable { - public ResponseReasoningSummaryVerbosity(string value); - public static ResponseReasoningSummaryVerbosity Auto { get; } - public static ResponseReasoningSummaryVerbosity Concise { get; } - public static ResponseReasoningSummaryVerbosity Detailed { get; } - public readonly bool Equals(ResponseReasoningSummaryVerbosity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); - public static implicit operator ResponseReasoningSummaryVerbosity(string value); - public static implicit operator ResponseReasoningSummaryVerbosity?(string value); - public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class ResponseResult : IJsonModel, IPersistableModel { - public bool? BackgroundModeEnabled { get; set; } - public ResponseConversationOptions ConversationOptions { get; set; } - public DateTimeOffset CreatedAt { get; set; } - public string EndUserId { get; set; } - public ResponseError Error { get; set; } - public string Id { get; set; } - public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; } - public string Instructions { get; set; } - public int? MaxOutputTokenCount { get; set; } - public int? MaxToolCallCount { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - public IList OutputItems { get; } - public bool ParallelToolCallsEnabled { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public string PreviousResponseId { get; set; } - public ResponseReasoningOptions ReasoningOptions { get; set; } - public string SafetyIdentifier { get; set; } - public ResponseServiceTier? ServiceTier { get; set; } - public ResponseStatus? Status { get; set; } - public float? Temperature { get; set; } - public ResponseTextOptions TextOptions { get; set; } - public ResponseToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - public ResponseTruncationMode? TruncationMode { get; set; } - public ResponseTokenUsage Usage { get; set; } - public string GetOutputText(); - protected virtual ResponseResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseResult(ClientResult result); - protected virtual ResponseResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponsesClient { - protected ResponsesClient(); - protected internal ResponsesClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ResponsesClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ResponsesClient(string model, ApiKeyCredential credential); - public ResponsesClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ResponsesClient(string model, AuthenticationPolicy authenticationPolicy); - public ResponsesClient(string model, string apiKey); - [Experimental("OPENAI001")] - public virtual Uri Endpoint { get; } - [Experimental("OPENAI001")] - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelResponse(string responseId, RequestOptions options); - public virtual ClientResult CancelResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task CancelResponseAsync(string responseId, RequestOptions options); - public virtual Task> CancelResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult CompactResponse(string contentType, BinaryContent content, RequestOptions options = null); - public virtual Task CompactResponseAsync(string contentType, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateResponse(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult CreateResponse(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateResponse(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateResponse(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual Task> CreateResponseAsync(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task CreateResponseAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateResponseAsync(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual Task> CreateResponseAsync(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteResponse(string responseId, RequestOptions options); - public virtual ClientResult DeleteResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task DeleteResponseAsync(string responseId, RequestOptions options); - public virtual Task> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult GetInputTokenCount(string contentType, BinaryContent content, RequestOptions options = null); - public virtual Task GetInputTokenCountAsync(string contentType, BinaryContent content, RequestOptions options = null); - public virtual ClientResult GetResponse(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponse(string responseId, IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options); - public virtual ClientResult GetResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task> GetResponseAsync(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task GetResponseAsync(string responseId, IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options); - public virtual Task> GetResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponseInputItemCollectionPage(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponseInputItemCollectionPage(string responseId, int? limit, string order, string after, string before, RequestOptions options); - public virtual Task> GetResponseInputItemCollectionPageAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual Task GetResponseInputItemCollectionPageAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options); - public virtual CollectionResult GetResponseInputItems(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseInputItems(string responseId, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseInputItemsAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseStreaming(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseStreaming(string responseId, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseStreamingAsync(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseStreamingAsync(string responseId, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public readonly partial struct ResponseServiceTier : IEquatable { - public ResponseServiceTier(string value); - public static ResponseServiceTier Auto { get; } - public static ResponseServiceTier Default { get; } - public static ResponseServiceTier Flex { get; } - public static ResponseServiceTier Scale { get; } - public readonly bool Equals(ResponseServiceTier other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseServiceTier left, ResponseServiceTier right); - public static implicit operator ResponseServiceTier(string value); - public static implicit operator ResponseServiceTier?(string value); - public static bool operator !=(ResponseServiceTier left, ResponseServiceTier right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public enum ResponseStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int ReasoningTokenCount { get { throw null; } set { } } + + protected virtual ResponseOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseReasoningEffortLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseReasoningEffortLevel(string value) { } + public static ResponseReasoningEffortLevel High { get { throw null; } } + public static ResponseReasoningEffortLevel Low { get { throw null; } } + public static ResponseReasoningEffortLevel Medium { get { throw null; } } + public static ResponseReasoningEffortLevel Minimal { get { throw null; } } + public static ResponseReasoningEffortLevel None { get { throw null; } } + + public readonly bool Equals(ResponseReasoningEffortLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right) { throw null; } + public static implicit operator ResponseReasoningEffortLevel(string value) { throw null; } + public static implicit operator ResponseReasoningEffortLevel?(string value) { throw null; } + public static bool operator !=(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseReasoningOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseReasoningEffortLevel? ReasoningEffortLevel { get { throw null; } set { } } + public ResponseReasoningSummaryVerbosity? ReasoningSummaryVerbosity { get { throw null; } set { } } + + protected virtual ResponseReasoningOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseReasoningOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseReasoningOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseReasoningOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseReasoningSummaryVerbosity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseReasoningSummaryVerbosity(string value) { } + public static ResponseReasoningSummaryVerbosity Auto { get { throw null; } } + public static ResponseReasoningSummaryVerbosity Concise { get { throw null; } } + public static ResponseReasoningSummaryVerbosity Detailed { get { throw null; } } + + public readonly bool Equals(ResponseReasoningSummaryVerbosity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right) { throw null; } + public static implicit operator ResponseReasoningSummaryVerbosity(string value) { throw null; } + public static implicit operator ResponseReasoningSummaryVerbosity?(string value) { throw null; } + public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? BackgroundModeEnabled { get { throw null; } set { } } + public ResponseConversationOptions ConversationOptions { get { throw null; } set { } } + public System.DateTimeOffset CreatedAt { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public ResponseError Error { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public ResponseIncompleteStatusDetails IncompleteStatusDetails { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public int? MaxToolCallCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + public System.Collections.Generic.IList OutputItems { get { throw null; } } + public bool ParallelToolCallsEnabled { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string PreviousResponseId { get { throw null; } set { } } + public ResponseReasoningOptions ReasoningOptions { get { throw null; } set { } } + public string SafetyIdentifier { get { throw null; } set { } } + public ResponseServiceTier? ServiceTier { get { throw null; } set { } } + public ResponseStatus? Status { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ResponseTextOptions TextOptions { get { throw null; } set { } } + public ResponseToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + public ResponseTruncationMode? TruncationMode { get { throw null; } set { } } + public ResponseTokenUsage Usage { get { throw null; } set { } } + + public string GetOutputText() { throw null; } + protected virtual ResponseResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponsesClient + { + protected ResponsesClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public ResponsesClient(ResponsesClientSettings settings) { } + protected internal ResponsesClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public ResponsesClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ResponsesClient(string model, string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public virtual System.Uri Endpoint { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelResponse(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelResponseAsync(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CompactResponse(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CompactResponseAsync(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateResponseAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteResponse(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteResponseAsync(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetInputTokenCount(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetInputTokenCountAsync(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(string responseId, System.Collections.Generic.IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseAsync(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetResponseAsync(string responseId, System.Collections.Generic.IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponseInputItemCollectionPage(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponseInputItemCollectionPage(string responseId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseInputItemCollectionPageAsync(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetResponseInputItemCollectionPageAsync(string responseId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseInputItems(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseInputItems(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseInputItemsAsync(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseInputItemsAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseStreaming(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseStreaming(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseStreamingAsync(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseStreamingAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class ResponsesClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseServiceTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseServiceTier(string value) { } + public static ResponseServiceTier Auto { get { throw null; } } + public static ResponseServiceTier Default { get { throw null; } } + public static ResponseServiceTier Flex { get { throw null; } } + public static ResponseServiceTier Scale { get { throw null; } } + + public readonly bool Equals(ResponseServiceTier other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseServiceTier left, ResponseServiceTier right) { throw null; } + public static implicit operator ResponseServiceTier(string value) { throw null; } + public static implicit operator ResponseServiceTier?(string value) { throw null; } + public static bool operator !=(ResponseServiceTier left, ResponseServiceTier right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseStatus + { InProgress = 0, Completed = 1, Cancelled = 2, @@ -6438,92 +9937,141 @@ public enum ResponseStatus { Incomplete = 4, Failed = 5 } - [Experimental("OPENAI001")] - public class ResponseTextFormat : IJsonModel, IPersistableModel { - public ResponseTextFormatKind Kind { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static ResponseTextFormat CreateJsonObjectFormat(); - public static ResponseTextFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null); - public static ResponseTextFormat CreateTextFormat(); - protected virtual ResponseTextFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTextFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum ResponseTextFormatKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTextFormat : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseTextFormat() { } + public ResponseTextFormatKind Kind { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ResponseTextFormat CreateJsonObjectFormat() { throw null; } + public static ResponseTextFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, System.BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null) { throw null; } + public static ResponseTextFormat CreateTextFormat() { throw null; } + protected virtual ResponseTextFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTextFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTextFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTextFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseTextFormatKind + { Unknown = 0, Text = 1, JsonObject = 2, JsonSchema = 3 } - [Experimental("OPENAI001")] - public class ResponseTextOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public ResponseTextFormat TextFormat { get; set; } - protected virtual ResponseTextOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTextOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; set; } - public ResponseInputTokenUsageDetails InputTokenDetails { get; set; } - public int OutputTokenCount { get; set; } - public ResponseOutputTokenUsageDetails OutputTokenDetails { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; set; } - protected virtual ResponseTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseTool : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static CodeInterpreterTool CreateCodeInterpreterTool(CodeInterpreterToolContainer container); - [Experimental("OPENAICUA001")] - public static ComputerTool CreateComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight); - public static FileSearchTool CreateFileSearchTool(IEnumerable vectorStoreIds, int? maxResultCount = null, FileSearchToolRankingOptions rankingOptions = null, BinaryData filters = null); - public static FunctionTool CreateFunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled, string functionDescription = null); - public static ImageGenerationTool CreateImageGenerationTool(string model, ImageGenerationToolQuality? quality = null, ImageGenerationToolSize? size = null, ImageGenerationToolOutputFileFormat? outputFileFormat = null, int? outputCompressionFactor = null, ImageGenerationToolModerationLevel? moderationLevel = null, ImageGenerationToolBackground? background = null, ImageGenerationToolInputFidelity? inputFidelity = null, ImageGenerationToolInputImageMask inputImageMask = null, int? partialImageCount = null); - public static McpTool CreateMcpTool(string serverLabel, McpToolConnectorId connectorId, string authorizationToken = null, string serverDescription = null, IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null); - public static McpTool CreateMcpTool(string serverLabel, Uri serverUri, string authorizationToken = null, string serverDescription = null, IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null); - public static WebSearchPreviewTool CreateWebSearchPreviewTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null); - public static WebSearchTool CreateWebSearchTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null, WebSearchToolFilters filters = null); - protected virtual ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class ResponseToolChoice : IJsonModel, IPersistableModel { - public string FunctionName { get; } - public ResponseToolChoiceKind Kind { get; } - public static ResponseToolChoice CreateAutoChoice(); - [Experimental("OPENAICUA001")] - public static ResponseToolChoice CreateComputerChoice(); - public static ResponseToolChoice CreateFileSearchChoice(); - public static ResponseToolChoice CreateFunctionChoice(string functionName); - public static ResponseToolChoice CreateNoneChoice(); - public static ResponseToolChoice CreateRequiredChoice(); - public static ResponseToolChoice CreateWebSearchChoice(); - } - [Experimental("OPENAI001")] - public enum ResponseToolChoiceKind { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTextOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseTextFormat TextFormat { get { throw null; } set { } } + + protected virtual ResponseTextOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTextOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTextOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTextOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int InputTokenCount { get { throw null; } set { } } + public ResponseInputTokenUsageDetails InputTokenDetails { get { throw null; } set { } } + public int OutputTokenCount { get { throw null; } set { } } + public ResponseOutputTokenUsageDetails OutputTokenDetails { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } set { } } + + protected virtual ResponseTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseTool() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static CodeInterpreterTool CreateCodeInterpreterTool(CodeInterpreterToolContainer container) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ComputerTool CreateComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight) { throw null; } + public static FileSearchTool CreateFileSearchTool(System.Collections.Generic.IEnumerable vectorStoreIds, int? maxResultCount = null, FileSearchToolRankingOptions rankingOptions = null, System.BinaryData filters = null) { throw null; } + public static FunctionTool CreateFunctionTool(string functionName, System.BinaryData functionParameters, bool? strictModeEnabled, string functionDescription = null) { throw null; } + public static ImageGenerationTool CreateImageGenerationTool(string model, ImageGenerationToolQuality? quality = null, ImageGenerationToolSize? size = null, ImageGenerationToolOutputFileFormat? outputFileFormat = null, int? outputCompressionFactor = null, ImageGenerationToolModerationLevel? moderationLevel = null, ImageGenerationToolBackground? background = null, ImageGenerationToolInputFidelity? inputFidelity = null, ImageGenerationToolInputImageMask inputImageMask = null, int? partialImageCount = null) { throw null; } + public static McpTool CreateMcpTool(string serverLabel, McpToolConnectorId connectorId, string authorizationToken = null, string serverDescription = null, System.Collections.Generic.IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null) { throw null; } + public static McpTool CreateMcpTool(string serverLabel, System.Uri serverUri, string authorizationToken = null, string serverDescription = null, System.Collections.Generic.IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null) { throw null; } + public static WebSearchPreviewTool CreateWebSearchPreviewTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null) { throw null; } + public static WebSearchTool CreateWebSearchTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null, WebSearchToolFilters filters = null) { throw null; } + protected virtual ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class ResponseToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseToolChoice() { } + public string FunctionName { get { throw null; } } + public ResponseToolChoiceKind Kind { get { throw null; } } + + public static ResponseToolChoice CreateAutoChoice() { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAICUA001")] + public static ResponseToolChoice CreateComputerChoice() { throw null; } + public static ResponseToolChoice CreateFileSearchChoice() { throw null; } + public static ResponseToolChoice CreateFunctionChoice(string functionName) { throw null; } + public static ResponseToolChoice CreateNoneChoice() { throw null; } + public static ResponseToolChoice CreateRequiredChoice() { throw null; } + public static ResponseToolChoice CreateWebSearchChoice() { throw null; } + ResponseToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum ResponseToolChoiceKind + { Unknown = 0, Auto = 1, None = 2, @@ -6533,1004 +10081,1636 @@ public enum ResponseToolChoiceKind { WebSearch = 6, Computer = 7 } - [Experimental("OPENAI001")] - public readonly partial struct ResponseTruncationMode : IEquatable { - public ResponseTruncationMode(string value); - public static ResponseTruncationMode Auto { get; } - public static ResponseTruncationMode Disabled { get; } - public readonly bool Equals(ResponseTruncationMode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right); - public static implicit operator ResponseTruncationMode(string value); - public static implicit operator ResponseTruncationMode?(string value); - public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCodeDeltaUpdate(); - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCodeDoneUpdate(); - public string Code { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallInterpretingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCompletedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseContentPartAddedUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ResponseContentPart Part { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseContentPartDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ResponseContentPart Part { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseCreatedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCreatedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseErrorUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseErrorUpdate(); - public string Code { get; set; } - public string Message { get; set; } - public string Param { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFailedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallSearchingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFunctionCallArgumentsDeltaUpdate(); - public BinaryData Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFunctionCallArgumentsDoneUpdate(); - public BinaryData FunctionArguments { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallGeneratingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallPartialImageUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public BinaryData PartialImageBytes { get; set; } - public int PartialImageIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseIncompleteUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseInProgressUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallArgumentsDeltaUpdate(); - public BinaryData Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallArgumentsDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public BinaryData ToolArguments { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallFailedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsFailedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputItemAddedUpdate(); - public ResponseItem Item { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputItemDoneUpdate(); - public ResponseItem Item { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputTextDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputTextDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseQueuedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseQueuedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryPartAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryPartAddedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ReasoningSummaryPart Part { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryPartDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryPartDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ReasoningSummaryPart Part { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryTextDeltaUpdate(); - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningSummaryTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryTextDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public int SummaryIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningTextDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseReasoningTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningTextDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseRefusalDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseRefusalDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Refusal { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseTextAnnotationAddedUpdate(); - public BinaryData Annotation { get; set; } - public int AnnotationIndex { get; set; } - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseUpdate : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public int SequenceNumber { get; set; } - protected virtual StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallSearchingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class UriCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public UriCitationMessageAnnotation(Uri uri, int startIndex, int endIndex, string title); - public int EndIndex { get; set; } - public int StartIndex { get; set; } - public string Title { get; set; } - public Uri Uri { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public WebSearchCallResponseItem(); - public WebSearchCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum WebSearchCallStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct ResponseTruncationMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseTruncationMode(string value) { } + public static ResponseTruncationMode Auto { get { throw null; } } + public static ResponseTruncationMode Disabled { get { throw null; } } + + public readonly bool Equals(ResponseTruncationMode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right) { throw null; } + public static implicit operator ResponseTruncationMode(string value) { throw null; } + public static implicit operator ResponseTruncationMode?(string value) { throw null; } + public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCodeDeltaUpdate() { } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCodeDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCodeDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCodeDoneUpdate() { } + public string Code { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCodeDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCodeDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallInterpretingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallInterpretingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallInterpretingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCompletedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseContentPartAddedUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ResponseContentPart Part { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseContentPartAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseContentPartAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseContentPartDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ResponseContentPart Part { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseContentPartDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseContentPartDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseCreatedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCreatedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCreatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCreatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseErrorUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseErrorUpdate() { } + public string Code { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + public string Param { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseErrorUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseErrorUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFailedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallSearchingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallSearchingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallSearchingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFunctionCallArgumentsDeltaUpdate() { } + public System.BinaryData Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFunctionCallArgumentsDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFunctionCallArgumentsDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFunctionCallArgumentsDoneUpdate() { } + public System.BinaryData FunctionArguments { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFunctionCallArgumentsDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFunctionCallArgumentsDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallGeneratingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallGeneratingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallGeneratingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallPartialImageUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public System.BinaryData PartialImageBytes { get { throw null; } set { } } + public int PartialImageIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallPartialImageUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallPartialImageUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseIncompleteUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseIncompleteUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseIncompleteUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseInProgressUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallArgumentsDeltaUpdate() { } + public System.BinaryData Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallArgumentsDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallArgumentsDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallArgumentsDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallArgumentsDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallArgumentsDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallFailedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsFailedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputItemAddedUpdate() { } + public ResponseItem Item { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputItemAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputItemAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputItemDoneUpdate() { } + public ResponseItem Item { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputItemDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputItemDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputTextDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputTextDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseQueuedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseQueuedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseQueuedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseQueuedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryPartAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryPartAddedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ReasoningSummaryPart Part { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryPartAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryPartAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryPartDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryPartDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ReasoningSummaryPart Part { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryPartDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryPartDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryTextDeltaUpdate() { } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningSummaryTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryTextDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningTextDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseReasoningTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningTextDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseRefusalDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseRefusalDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseRefusalDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseRefusalDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Refusal { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseRefusalDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseRefusalDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseTextAnnotationAddedUpdate() { } + public System.BinaryData Annotation { get { throw null; } set { } } + public int AnnotationIndex { get { throw null; } set { } } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseTextAnnotationAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseTextAnnotationAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingResponseUpdate() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int SequenceNumber { get { throw null; } set { } } + + protected virtual StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallSearchingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallSearchingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallSearchingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class UriCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UriCitationMessageAnnotation(System.Uri uri, int startIndex, int endIndex, string title) { } + public int EndIndex { get { throw null; } set { } } + public int StartIndex { get { throw null; } set { } } + public string Title { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + UriCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + UriCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchCallResponseItem() { } + public WebSearchCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum WebSearchCallStatus + { InProgress = 0, Searching = 1, Completed = 2, Failed = 3 } - [Experimental("OPENAI001")] - public class WebSearchPreviewTool : ResponseTool, IJsonModel, IPersistableModel { - public WebSearchPreviewTool(); - public WebSearchToolContextSize? SearchContextSize { get; set; } - public WebSearchToolLocation UserLocation { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchTool : ResponseTool, IJsonModel, IPersistableModel { - public WebSearchTool(); - public WebSearchToolFilters Filters { get; set; } - public WebSearchToolContextSize? SearchContextSize { get; set; } - public WebSearchToolLocation UserLocation { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchToolApproximateLocation : WebSearchToolLocation, IJsonModel, IPersistableModel { - public WebSearchToolApproximateLocation(); - public string City { get; set; } - public string Country { get; set; } - public string Region { get; set; } - public string Timezone { get; set; } - protected override WebSearchToolLocation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override WebSearchToolLocation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct WebSearchToolContextSize : IEquatable { - public WebSearchToolContextSize(string value); - public static WebSearchToolContextSize High { get; } - public static WebSearchToolContextSize Low { get; } - public static WebSearchToolContextSize Medium { get; } - public readonly bool Equals(WebSearchToolContextSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(WebSearchToolContextSize left, WebSearchToolContextSize right); - public static implicit operator WebSearchToolContextSize(string value); - public static implicit operator WebSearchToolContextSize?(string value); - public static bool operator !=(WebSearchToolContextSize left, WebSearchToolContextSize right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class WebSearchToolFilters : IJsonModel, IPersistableModel { - public IList AllowedDomains { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - protected virtual WebSearchToolFilters JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual WebSearchToolFilters PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class WebSearchToolLocation : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - [Experimental("SCME0001")] - public ref JsonPatch Patch { get; } - public static WebSearchToolApproximateLocation CreateApproximateLocation(string country = null, string region = null, string city = null, string timezone = null); - protected virtual WebSearchToolLocation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual WebSearchToolLocation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchPreviewTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchPreviewTool() { } + public WebSearchToolContextSize? SearchContextSize { get { throw null; } set { } } + public WebSearchToolLocation UserLocation { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchPreviewTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchPreviewTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchTool() { } + public WebSearchToolFilters Filters { get { throw null; } set { } } + public WebSearchToolContextSize? SearchContextSize { get { throw null; } set { } } + public WebSearchToolLocation UserLocation { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchToolApproximateLocation : WebSearchToolLocation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchToolApproximateLocation() { } + public string City { get { throw null; } set { } } + public string Country { get { throw null; } set { } } + public string Region { get { throw null; } set { } } + public string Timezone { get { throw null; } set { } } + + protected override WebSearchToolLocation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override WebSearchToolLocation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolApproximateLocation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolApproximateLocation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct WebSearchToolContextSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WebSearchToolContextSize(string value) { } + public static WebSearchToolContextSize High { get { throw null; } } + public static WebSearchToolContextSize Low { get { throw null; } } + public static WebSearchToolContextSize Medium { get { throw null; } } + + public readonly bool Equals(WebSearchToolContextSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(WebSearchToolContextSize left, WebSearchToolContextSize right) { throw null; } + public static implicit operator WebSearchToolContextSize(string value) { throw null; } + public static implicit operator WebSearchToolContextSize?(string value) { throw null; } + public static bool operator !=(WebSearchToolContextSize left, WebSearchToolContextSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchToolFilters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList AllowedDomains { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual WebSearchToolFilters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual WebSearchToolFilters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolFilters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolFilters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class WebSearchToolLocation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal WebSearchToolLocation() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.Experimental("SCME0001")] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static WebSearchToolApproximateLocation CreateApproximateLocation(string country = null, string region = null, string city = null, string timezone = null) { throw null; } + protected virtual WebSearchToolLocation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual WebSearchToolLocation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolLocation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolLocation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.VectorStores { - [Experimental("OPENAI001")] - public abstract class FileChunkingStrategy : IJsonModel, IPersistableModel { - public static FileChunkingStrategy Auto { get; } - public static FileChunkingStrategy Unknown { get; } - public static FileChunkingStrategy CreateStaticStrategy(int maxTokensPerChunk, int overlappingTokenCount); - protected virtual FileChunkingStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileChunkingStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class FileFromStoreRemovalResult : IJsonModel, IPersistableModel { - public string FileId { get; } - public bool Removed { get; } - protected virtual FileFromStoreRemovalResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator FileFromStoreRemovalResult(ClientResult result); - protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class StaticFileChunkingStrategy : FileChunkingStrategy, IJsonModel, IPersistableModel { - public StaticFileChunkingStrategy(int maxTokensPerChunk, int overlappingTokenCount); - public int MaxTokensPerChunk { get; } - public int OverlappingTokenCount { get; } - protected override FileChunkingStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override FileChunkingStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStore : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public VectorStoreExpirationPolicy ExpirationPolicy { get; } - public DateTimeOffset? ExpiresAt { get; } - public VectorStoreFileCounts FileCounts { get; } - public string Id { get; } - public DateTimeOffset? LastActiveAt { get; } - public IReadOnlyDictionary Metadata { get; } - public string Name { get; } - public VectorStoreStatus Status { get; } - public int UsageBytes { get; } - protected virtual VectorStore JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStore(ClientResult result); - protected virtual VectorStore PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreClient { - protected VectorStoreClient(); - public VectorStoreClient(ApiKeyCredential credential, OpenAIClientOptions options); - public VectorStoreClient(ApiKeyCredential credential); - public VectorStoreClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public VectorStoreClient(AuthenticationPolicy authenticationPolicy); - protected internal VectorStoreClient(ClientPipeline pipeline, OpenAIClientOptions options); - public VectorStoreClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult AddFileBatchToVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult AddFileBatchToVectorStore(string vectorStoreId, IEnumerable fileIds, CancellationToken cancellationToken = default); - public virtual Task AddFileBatchToVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> AddFileBatchToVectorStoreAsync(string vectorStoreId, IEnumerable fileIds, CancellationToken cancellationToken = default); - public virtual ClientResult AddFileToVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult AddFileToVectorStore(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task AddFileToVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> AddFileToVectorStoreAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, RequestOptions options); - public virtual ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual Task CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, RequestOptions options); - public virtual Task> CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual ClientResult CreateVectorStore(VectorStoreCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateVectorStore(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateVectorStoreAsync(VectorStoreCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateVectorStoreAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteVectorStore(string vectorStoreId, RequestOptions options); - public virtual ClientResult DeleteVectorStore(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual Task DeleteVectorStoreAsync(string vectorStoreId, RequestOptions options); - public virtual Task> DeleteVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStore(string vectorStoreId, RequestOptions options); - public virtual ClientResult GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreAsync(string vectorStoreId, RequestOptions options); - public virtual Task> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreFileAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task> GetVectorStoreFileAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, RequestOptions options); - public virtual ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, RequestOptions options); - public virtual Task> GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFiles(string vectorStoreId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFiles(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual CollectionResult GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoresAsync(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoresAsync(int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult ModifyVectorStore(string vectorStoreId, VectorStoreModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyVectorStoreAsync(string vectorStoreId, VectorStoreModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task> RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult RetrieveVectorStoreFileContent(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task RetrieveVectorStoreFileContentAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult SearchVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task SearchVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, IDictionary attributes, CancellationToken cancellationToken = default); - public virtual Task UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, BinaryContent content, RequestOptions options = null); - public virtual Task> UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, IDictionary attributes, CancellationToken cancellationToken = default); - } - [Experimental("OPENAI001")] - public class VectorStoreCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public VectorStoreCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual VectorStoreCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreCollectionOrder : IEquatable { - public VectorStoreCollectionOrder(string value); - public static VectorStoreCollectionOrder Ascending { get; } - public static VectorStoreCollectionOrder Descending { get; } - public readonly bool Equals(VectorStoreCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); - public static implicit operator VectorStoreCollectionOrder(string value); - public static implicit operator VectorStoreCollectionOrder?(string value); - public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreCreationOptions : IJsonModel, IPersistableModel { - public FileChunkingStrategy ChunkingStrategy { get; set; } - public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } - public IList FileIds { get; } - public IDictionary Metadata { get; } - public string Name { get; set; } - protected virtual VectorStoreCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreDeletionResult(ClientResult result); - protected virtual VectorStoreDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum VectorStoreExpirationAnchor { + +namespace OpenAI.VectorStores +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public abstract partial class FileChunkingStrategy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileChunkingStrategy() { } + public static FileChunkingStrategy Auto { get { throw null; } } + public static FileChunkingStrategy Unknown { get { throw null; } } + + public static FileChunkingStrategy CreateStaticStrategy(int maxTokensPerChunk, int overlappingTokenCount) { throw null; } + protected virtual FileChunkingStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileChunkingStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileChunkingStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileChunkingStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class FileFromStoreRemovalResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileFromStoreRemovalResult() { } + public string FileId { get { throw null; } } + public bool Removed { get { throw null; } } + + protected virtual FileFromStoreRemovalResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator FileFromStoreRemovalResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileFromStoreRemovalResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileFromStoreRemovalResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class StaticFileChunkingStrategy : FileChunkingStrategy, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StaticFileChunkingStrategy(int maxTokensPerChunk, int overlappingTokenCount) { } + public int MaxTokensPerChunk { get { throw null; } } + public int OverlappingTokenCount { get { throw null; } } + + protected override FileChunkingStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override FileChunkingStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StaticFileChunkingStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StaticFileChunkingStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStore : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStore() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public VectorStoreFileCounts FileCounts { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? LastActiveAt { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } } + public VectorStoreStatus Status { get { throw null; } } + public int UsageBytes { get { throw null; } } + + protected virtual VectorStore JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStore(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStore PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStore System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStore System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreClient + { + protected VectorStoreClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public VectorStoreClient(VectorStoreClientSettings settings) { } + public VectorStoreClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public VectorStoreClient(System.ClientModel.ApiKeyCredential credential) { } + public VectorStoreClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public VectorStoreClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal VectorStoreClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public VectorStoreClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult AddFileBatchToVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult AddFileBatchToVectorStore(string vectorStoreId, System.Collections.Generic.IEnumerable fileIds, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddFileBatchToVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> AddFileBatchToVectorStoreAsync(string vectorStoreId, System.Collections.Generic.IEnumerable fileIds, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult AddFileToVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult AddFileToVectorStore(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddFileToVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> AddFileToVectorStoreAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateVectorStore(VectorStoreCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateVectorStore(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateVectorStoreAsync(VectorStoreCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateVectorStoreAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVectorStore(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVectorStore(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteVectorStoreAsync(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteVectorStoreAsync(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStore(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStore(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreAsync(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreAsync(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreFileAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreFileAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStoreFiles(string vectorStoreId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStoreFiles(string vectorStoreId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStores(VectorStoreCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStores(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoresAsync(VectorStoreCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoresAsync(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult ModifyVectorStore(string vectorStoreId, VectorStoreModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyVectorStoreAsync(string vectorStoreId, VectorStoreModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult RetrieveVectorStoreFileContent(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task RetrieveVectorStoreFileContentAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult SearchVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SearchVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, System.Collections.Generic.IDictionary attributes, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, System.Collections.Generic.IDictionary attributes, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class VectorStoreClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public VectorStoreCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual VectorStoreCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreCollectionOrder(string value) { } + public static VectorStoreCollectionOrder Ascending { get { throw null; } } + public static VectorStoreCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(VectorStoreCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right) { throw null; } + public static implicit operator VectorStoreCollectionOrder(string value) { throw null; } + public static implicit operator VectorStoreCollectionOrder?(string value) { throw null; } + public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileChunkingStrategy ChunkingStrategy { get { throw null; } set { } } + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + + protected virtual VectorStoreCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreDeletionResult() { } + public bool Deleted { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum VectorStoreExpirationAnchor + { Unknown = 0, LastActiveAt = 1 } - [Experimental("OPENAI001")] - public class VectorStoreExpirationPolicy : IJsonModel, IPersistableModel { - public VectorStoreExpirationPolicy(VectorStoreExpirationAnchor anchor, int days); - public VectorStoreExpirationAnchor Anchor { get; set; } - public int Days { get; set; } - protected virtual VectorStoreExpirationPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreExpirationPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreFile : IJsonModel, IPersistableModel { - public IDictionary Attributes { get; } - public FileChunkingStrategy ChunkingStrategy { get; } - public DateTimeOffset CreatedAt { get; } - public string FileId { get; } - public VectorStoreFileError LastError { get; } - public int Size { get; } - public VectorStoreFileStatus Status { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreFile JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreFile(ClientResult result); - protected virtual VectorStoreFile PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreFileBatch : IJsonModel, IPersistableModel { - public string BatchId { get; } - public DateTimeOffset CreatedAt { get; } - public VectorStoreFileCounts FileCounts { get; } - public VectorStoreFileBatchStatus Status { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreFileBatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreFileBatch(ClientResult result); - protected virtual VectorStoreFileBatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileBatchStatus : IEquatable { - public VectorStoreFileBatchStatus(string value); - public static VectorStoreFileBatchStatus Cancelled { get; } - public static VectorStoreFileBatchStatus Completed { get; } - public static VectorStoreFileBatchStatus Failed { get; } - public static VectorStoreFileBatchStatus InProgress { get; } - public readonly bool Equals(VectorStoreFileBatchStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right); - public static implicit operator VectorStoreFileBatchStatus(string value); - public static implicit operator VectorStoreFileBatchStatus?(string value); - public static bool operator !=(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreFileCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public VectorStoreFileStatusFilter? Filter { get; set; } - public VectorStoreFileCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual VectorStoreFileCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileCollectionOrder : IEquatable { - public VectorStoreFileCollectionOrder(string value); - public static VectorStoreFileCollectionOrder Ascending { get; } - public static VectorStoreFileCollectionOrder Descending { get; } - public readonly bool Equals(VectorStoreFileCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right); - public static implicit operator VectorStoreFileCollectionOrder(string value); - public static implicit operator VectorStoreFileCollectionOrder?(string value); - public static bool operator !=(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreFileCounts : IJsonModel, IPersistableModel { - public int Cancelled { get; } - public int Completed { get; } - public int Failed { get; } - public int InProgress { get; } - public int Total { get; } - protected virtual VectorStoreFileCounts JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileCounts PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public class VectorStoreFileError : IJsonModel, IPersistableModel { - public VectorStoreFileErrorCode Code { get; } - public string Message { get; } - protected virtual VectorStoreFileError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileErrorCode : IEquatable { - public VectorStoreFileErrorCode(string value); - public static VectorStoreFileErrorCode InvalidFile { get; } - public static VectorStoreFileErrorCode ServerError { get; } - public static VectorStoreFileErrorCode UnsupportedFile { get; } - public readonly bool Equals(VectorStoreFileErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right); - public static implicit operator VectorStoreFileErrorCode(string value); - public static implicit operator VectorStoreFileErrorCode?(string value); - public static bool operator !=(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public enum VectorStoreFileStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreExpirationPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreExpirationPolicy(VectorStoreExpirationAnchor anchor, int days) { } + public VectorStoreExpirationAnchor Anchor { get { throw null; } set { } } + public int Days { get { throw null; } set { } } + + protected virtual VectorStoreExpirationPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreExpirationPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreExpirationPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreExpirationPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFile() { } + public System.Collections.Generic.IDictionary Attributes { get { throw null; } } + public FileChunkingStrategy ChunkingStrategy { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string FileId { get { throw null; } } + public VectorStoreFileError LastError { get { throw null; } } + public int Size { get { throw null; } } + public VectorStoreFileStatus Status { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreFile JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreFile(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreFile PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileBatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileBatch() { } + public string BatchId { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public VectorStoreFileCounts FileCounts { get { throw null; } } + public VectorStoreFileBatchStatus Status { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreFileBatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreFileBatch(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreFileBatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileBatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileBatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileBatchStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileBatchStatus(string value) { } + public static VectorStoreFileBatchStatus Cancelled { get { throw null; } } + public static VectorStoreFileBatchStatus Completed { get { throw null; } } + public static VectorStoreFileBatchStatus Failed { get { throw null; } } + public static VectorStoreFileBatchStatus InProgress { get { throw null; } } + + public readonly bool Equals(VectorStoreFileBatchStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right) { throw null; } + public static implicit operator VectorStoreFileBatchStatus(string value) { throw null; } + public static implicit operator VectorStoreFileBatchStatus?(string value) { throw null; } + public static bool operator !=(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public VectorStoreFileStatusFilter? Filter { get { throw null; } set { } } + public VectorStoreFileCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual VectorStoreFileCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileCollectionOrder(string value) { } + public static VectorStoreFileCollectionOrder Ascending { get { throw null; } } + public static VectorStoreFileCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(VectorStoreFileCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right) { throw null; } + public static implicit operator VectorStoreFileCollectionOrder(string value) { throw null; } + public static implicit operator VectorStoreFileCollectionOrder?(string value) { throw null; } + public static bool operator !=(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileCounts : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileCounts() { } + public int Cancelled { get { throw null; } } + public int Completed { get { throw null; } } + public int Failed { get { throw null; } } + public int InProgress { get { throw null; } } + public int Total { get { throw null; } } + + protected virtual VectorStoreFileCounts JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileCounts PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileCounts System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileCounts System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreFileError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileError() { } + public VectorStoreFileErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual VectorStoreFileError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileErrorCode(string value) { } + public static VectorStoreFileErrorCode InvalidFile { get { throw null; } } + public static VectorStoreFileErrorCode ServerError { get { throw null; } } + public static VectorStoreFileErrorCode UnsupportedFile { get { throw null; } } + + public readonly bool Equals(VectorStoreFileErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right) { throw null; } + public static implicit operator VectorStoreFileErrorCode(string value) { throw null; } + public static implicit operator VectorStoreFileErrorCode?(string value) { throw null; } + public static bool operator !=(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum VectorStoreFileStatus + { Unknown = 0, InProgress = 1, Completed = 2, Cancelled = 3, Failed = 4 } - [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileStatusFilter : IEquatable { - public VectorStoreFileStatusFilter(string value); - public static VectorStoreFileStatusFilter Cancelled { get; } - public static VectorStoreFileStatusFilter Completed { get; } - public static VectorStoreFileStatusFilter Failed { get; } - public static VectorStoreFileStatusFilter InProgress { get; } - public readonly bool Equals(VectorStoreFileStatusFilter other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); - public static implicit operator VectorStoreFileStatusFilter(string value); - public static implicit operator VectorStoreFileStatusFilter?(string value); - public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); - public override readonly string ToString(); - } - [Experimental("OPENAI001")] - public class VectorStoreModificationOptions : IJsonModel, IPersistableModel { - public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } - public IDictionary Metadata { get; } - public string Name { get; set; } - protected virtual VectorStoreModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Experimental("OPENAI001")] - public enum VectorStoreStatus { + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public readonly partial struct VectorStoreFileStatusFilter : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileStatusFilter(string value) { } + public static VectorStoreFileStatusFilter Cancelled { get { throw null; } } + public static VectorStoreFileStatusFilter Completed { get { throw null; } } + public static VectorStoreFileStatusFilter Failed { get { throw null; } } + public static VectorStoreFileStatusFilter InProgress { get { throw null; } } + + public readonly bool Equals(VectorStoreFileStatusFilter other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right) { throw null; } + public static implicit operator VectorStoreFileStatusFilter(string value) { throw null; } + public static implicit operator VectorStoreFileStatusFilter?(string value) { throw null; } + public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VectorStoreModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + + protected virtual VectorStoreModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public enum VectorStoreStatus + { Unknown = 0, InProgress = 1, Completed = 2, Expired = 3 } } -namespace OpenAI.Videos { - [Experimental("OPENAI001")] - public class VideoClient { - protected VideoClient(); - public VideoClient(ApiKeyCredential credential, OpenAIClientOptions options); - public VideoClient(ApiKeyCredential credential); - public VideoClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public VideoClient(AuthenticationPolicy authenticationPolicy); - protected internal VideoClient(ClientPipeline pipeline, OpenAIClientOptions options); - public VideoClient(string apiKey); - [Experimental("OPENAI001")] - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateVideo(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateVideoAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult CreateVideoRemix(string videoId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateVideoRemixAsync(string videoId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult DeleteVideo(string videoId, RequestOptions options = null); - public virtual Task DeleteVideoAsync(string videoId, RequestOptions options = null); - public virtual ClientResult DownloadVideo(string videoId, string variant = null, RequestOptions options = null); - public virtual Task DownloadVideoAsync(string videoId, string variant = null, RequestOptions options = null); - public virtual ClientResult GetVideo(string videoId, RequestOptions options = null); - public virtual Task GetVideoAsync(string videoId, RequestOptions options = null); - public virtual CollectionResult GetVideos(long? limit = null, string order = null, string after = null, RequestOptions options = null); - public virtual AsyncCollectionResult GetVideosAsync(long? limit = null, string order = null, string after = null, RequestOptions options = null); + +namespace OpenAI.Videos +{ + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public partial class VideoClient + { + protected VideoClient() { } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public VideoClient(VideoClientSettings settings) { } + public VideoClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public VideoClient(System.ClientModel.ApiKeyCredential credential) { } + public VideoClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public VideoClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal VideoClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public VideoClient(string apiKey) { } + [System.Diagnostics.CodeAnalysis.Experimental("OPENAI001")] + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateVideo(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateVideoAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateVideoRemix(string videoId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateVideoRemixAsync(string videoId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVideo(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteVideoAsync(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DownloadVideo(string videoId, string variant = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DownloadVideoAsync(string videoId, string variant = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetVideo(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetVideoAsync(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVideos(long? limit = null, string order = null, string after = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVideosAsync(long? limit = null, string order = null, string after = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + [System.Diagnostics.CodeAnalysis.Experimental("SCME0002")] + public sealed partial class VideoClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } } } \ No newline at end of file diff --git a/api/OpenAI.netstandard2.0.cs b/api/OpenAI.netstandard2.0.cs index 8ae6b73a8..768b96b08 100644 --- a/api/OpenAI.netstandard2.0.cs +++ b/api/OpenAI.netstandard2.0.cs @@ -6,819 +6,1578 @@ // the code is regenerated. // //------------------------------------------------------------------------------ -namespace OpenAI { - public class OpenAIClient { - protected OpenAIClient(); - public OpenAIClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIClient(ApiKeyCredential credential); - public OpenAIClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public OpenAIClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual AssistantClient GetAssistantClient(); - public virtual AudioClient GetAudioClient(string model); - public virtual BatchClient GetBatchClient(); - public virtual ChatClient GetChatClient(string model); - public virtual ContainerClient GetContainerClient(); - public virtual ConversationClient GetConversationClient(); - public virtual EmbeddingClient GetEmbeddingClient(string model); - public virtual EvaluationClient GetEvaluationClient(); - public virtual FineTuningClient GetFineTuningClient(); - public virtual GraderClient GetGraderClient(); - public virtual ImageClient GetImageClient(string model); - public virtual ModerationClient GetModerationClient(string model); - public virtual OpenAIFileClient GetOpenAIFileClient(); - public virtual OpenAIModelClient GetOpenAIModelClient(); - public virtual RealtimeClient GetRealtimeClient(); - public virtual ResponsesClient GetResponsesClient(string model); - public virtual VectorStoreClient GetVectorStoreClient(); - public virtual VideoClient GetVideoClient(); - } - public class OpenAIClientOptions : ClientPipelineOptions { - public Uri Endpoint { get; set; } - public string OrganizationId { get; set; } - public string ProjectId { get; set; } - public string UserAgentApplicationId { get; set; } - } - public class OpenAIContext : ModelReaderWriterContext { - public static OpenAIContext Default { get; } - protected override bool TryGetTypeBuilderCore(Type type, out ModelReaderWriterTypeBuilder builder); +namespace OpenAI +{ + public partial class OpenAIClient + { + protected OpenAIClient() { } + public OpenAIClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIClient(System.ClientModel.ApiKeyCredential credential) { } + public OpenAIClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public OpenAIClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual Assistants.AssistantClient GetAssistantClient() { throw null; } + public virtual Audio.AudioClient GetAudioClient(string model) { throw null; } + public virtual Batch.BatchClient GetBatchClient() { throw null; } + public virtual Chat.ChatClient GetChatClient(string model) { throw null; } + public virtual Containers.ContainerClient GetContainerClient() { throw null; } + public virtual Conversations.ConversationClient GetConversationClient() { throw null; } + public virtual Embeddings.EmbeddingClient GetEmbeddingClient(string model) { throw null; } + public virtual Evals.EvaluationClient GetEvaluationClient() { throw null; } + public virtual FineTuning.FineTuningClient GetFineTuningClient() { throw null; } + public virtual Graders.GraderClient GetGraderClient() { throw null; } + public virtual Images.ImageClient GetImageClient(string model) { throw null; } + public virtual Moderations.ModerationClient GetModerationClient(string model) { throw null; } + public virtual Files.OpenAIFileClient GetOpenAIFileClient() { throw null; } + public virtual Models.OpenAIModelClient GetOpenAIModelClient() { throw null; } + public virtual Realtime.RealtimeClient GetRealtimeClient() { throw null; } + public virtual Responses.ResponsesClient GetResponsesClient(string model) { throw null; } + public virtual VectorStores.VectorStoreClient GetVectorStoreClient() { throw null; } + public virtual Videos.VideoClient GetVideoClient() { throw null; } + } + public partial class OpenAIClientOptions : System.ClientModel.Primitives.ClientPipelineOptions + { + public System.Uri Endpoint { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string ProjectId { get { throw null; } set { } } + public string UserAgentApplicationId { get { throw null; } set { } } + } + + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.Assistant))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.AssistantChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantResponseFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.AssistantThread))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTokenLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranscription))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranscriptionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranslation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.AudioTranslationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.AutomaticCodeInterpreterToolContainerConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Batch.BatchCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Batch.BatchJob))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatAudioOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionMessageCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionMessageListDatum))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatCompletionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunctionCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatFunctionChoice))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatMessageContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputAudio))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputAudioReference))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputPrediction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatResponseFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenTopLogProbabilityDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatToolCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatToolChoice))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ChatWebSearchOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallImageOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallLogsOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterToolContainer))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CodeInterpreterToolContainerConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.CodeInterpreterToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.CodeInterpreterToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallAction))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallOutputResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerCallSafetyCheck))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ComputerTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ContainerFileCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerFileCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerFileResource))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerResource))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.ContainerResourceExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationFunctionTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationRateLimitDetailsItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionConfiguredUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationSessionStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationStatusDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ConversationTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerBody))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerBodyExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.CreateContainerFileBody))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CreateResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.CustomMcpToolCallApprovalPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.DeleteContainerFileResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Containers.DeleteContainerResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.DeveloperChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.EmbeddingGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.EmbeddingTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.FileChunkingStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.FileDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.FileFromStoreRemovalResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FilePathMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchCallResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchRankingOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FileSearchToolRankingOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FileSearchToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.FineTuneReinforcementHyperparameters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningCheckpoint))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningCheckpointMetrics))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningEvent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningHyperparameters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningIntegration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.FineTuningTrainingMethod))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionCallOutputResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.FunctionChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.FunctionTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.FunctionToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.GeneratedImage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.GeneratedImageCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.GetResponseOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.Grader))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderLabelModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderMulti))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderPython))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderScoreModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderStringCheck))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.GraderTextSimilarity))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.HyperparametersForDPO))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.HyperparametersForSupervised))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageEditOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ImageGenerationToolInputImageMask))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Images.ImageVariationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioClearedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioCommittedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioSpeechFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioSpeechStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputAudioTranscriptionFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputNoiseReductionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.InputTranscriptionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemCreatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemDeletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemRetrievedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ItemTruncatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalRequestItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallApprovalResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolCallItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolDefinitionListItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.McpToolFilter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageContent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCreationAttachment))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageFailureDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.MessageModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.MessageResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.ModelDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationInputPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Moderations.ModerationResultCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.OpenAIEmbedding))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Embeddings.OpenAIEmbeddingCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.OpenAIFile))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Files.OpenAIFileCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.OpenAIModel))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Models.OpenAIModelCollection))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputAudioFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputAudioTranscriptionFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputStreamingFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputStreamingStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.OutputTextFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RateLimitsUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretRequestExpiresAfter))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeCreateClientSecretResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeErrorUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeRequestSessionBase))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioInputConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionAudioOutputConfiguration))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionCreateRequestUnion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeSessionCreateResponseUnion))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.RealtimeUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningSummaryPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReasoningSummaryTextPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ReferenceResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseContentPart))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseConversationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ResponseFinishedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseIncompleteStatusDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseInputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItemCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseItemCollectionPage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseOutputTokenUsageDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseReasoningOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.ResponseStartedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTextFormat))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTextOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.ResponseTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponseMetadata))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.RunGraderResponseMetadataErrors))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunIncompleteDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStep))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepCodeInterpreterOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepDetails))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepFileSearchResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepFileSearchResultContent))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepToolCall))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunStepUpdateCodeInterpreterOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunTokenUsage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.RunTruncationStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.SpeechGenerationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.StaticFileChunkingStrategy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionTextSegmentUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.StreamingAudioTranscriptionUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatCompletionUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatFunctionCallUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatOutputAudioUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.StreamingChatToolCallUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCodeDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCodeDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCodeInterpreterCallInterpretingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseContentPartAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseContentPartDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseCreatedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseErrorUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFileSearchCallSearchingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFunctionCallArgumentsDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseFunctionCallArgumentsDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallGeneratingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseImageGenerationCallPartialImageUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseIncompleteUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallArgumentsDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallArgumentsDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsFailedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseMcpListToolsInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputItemAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputItemDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseOutputTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseQueuedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryPartAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryPartDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningSummaryTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningTextDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseReasoningTextDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseRefusalDeltaUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseRefusalDoneUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseTextAnnotationAddedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallCompletedUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallInProgressUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.StreamingResponseWebSearchCallSearchingUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.SystemChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ThreadRun))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.ToolChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolConstraint))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolDefinition))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolOutput))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.ToolResources))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.TranscribedSegment))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Audio.TranscribedWord))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TranscriptionSessionConfiguredUpdate))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TranscriptionSessionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Realtime.TurnDetectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.UnknownGrader))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.UriCitationMessageAnnotation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Chat.UserChatMessage))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.ValidateGraderRequest))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Graders.ValidateGraderResponse))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStore))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Assistants.VectorStoreCreationHelper))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreCreationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreDeletionResult))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreExpirationPolicy))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFile))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileBatch))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileCollectionOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileCounts))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreFileError))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(VectorStores.VectorStoreModificationOptions))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchCallResponseItem))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchPreviewTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchTool))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolApproximateLocation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolFilters))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(Responses.WebSearchToolLocation))] + [System.ClientModel.Primitives.ModelReaderWriterBuildable(typeof(FineTuning.WeightsAndBiasesIntegration))] + public partial class OpenAIContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal OpenAIContext() { } + public static OpenAIContext Default { get { throw null; } } + + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } } -namespace OpenAI.Assistants { - public class Assistant : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Description { get; } - public string Id { get; } - public string Instructions { get; } - public IReadOnlyDictionary Metadata { get; } - public string Model { get; } - public string Name { get; } - public float? NucleusSamplingFactor { get; } - public AssistantResponseFormat ResponseFormat { get; } - public float? Temperature { get; } - public ToolResources ToolResources { get; } - public IReadOnlyList Tools { get; } - protected virtual Assistant JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator Assistant(ClientResult result); - protected virtual Assistant PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AssistantClient { - protected AssistantClient(); - public AssistantClient(ApiKeyCredential credential, OpenAIClientOptions options); - public AssistantClient(ApiKeyCredential credential); - public AssistantClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public AssistantClient(AuthenticationPolicy authenticationPolicy); - protected internal AssistantClient(ClientPipeline pipeline, OpenAIClientOptions options); - public AssistantClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelRun(string threadId, string runId, RequestOptions options); - public virtual ClientResult CancelRun(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual Task CancelRunAsync(string threadId, string runId, RequestOptions options); - public virtual Task> CancelRunAsync(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual ClientResult CreateAssistant(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateAssistant(string model, AssistantCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateAssistantAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateAssistantAsync(string model, AssistantCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateMessage(string threadId, MessageRole role, IEnumerable content, MessageCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateMessage(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> CreateMessageAsync(string threadId, MessageRole role, IEnumerable content, MessageCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateMessageAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateRun(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateRun(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateRunAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> CreateRunAsync(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateRunStreaming(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateRunStreamingAsync(string threadId, string assistantId, RunCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateThread(ThreadCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateThread(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateThreadAndRun(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateThreadAndRun(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual Task CreateThreadAndRunAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateThreadAndRunAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateThreadAndRunStreaming(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateThreadAndRunStreamingAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, CancellationToken cancellationToken = default); - public virtual Task> CreateThreadAsync(ThreadCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateThreadAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteAssistant(string assistantId, RequestOptions options); - public virtual ClientResult DeleteAssistant(string assistantId, CancellationToken cancellationToken = default); - public virtual Task DeleteAssistantAsync(string assistantId, RequestOptions options); - public virtual Task> DeleteAssistantAsync(string assistantId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteMessage(string threadId, string messageId, RequestOptions options); - public virtual ClientResult DeleteMessage(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual Task DeleteMessageAsync(string threadId, string messageId, RequestOptions options); - public virtual Task> DeleteMessageAsync(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteThread(string threadId, RequestOptions options); - public virtual ClientResult DeleteThread(string threadId, CancellationToken cancellationToken = default); - public virtual Task DeleteThreadAsync(string threadId, RequestOptions options); - public virtual Task> DeleteThreadAsync(string threadId, CancellationToken cancellationToken = default); - public virtual ClientResult GetAssistant(string assistantId, RequestOptions options); - public virtual ClientResult GetAssistant(string assistantId, CancellationToken cancellationToken = default); - public virtual Task GetAssistantAsync(string assistantId, RequestOptions options); - public virtual Task> GetAssistantAsync(string assistantId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetAssistants(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetAssistants(int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetAssistantsAsync(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetMessage(string threadId, string messageId, RequestOptions options); - public virtual ClientResult GetMessage(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual Task GetMessageAsync(string threadId, string messageId, RequestOptions options); - public virtual Task> GetMessageAsync(string threadId, string messageId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetMessages(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetMessages(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetMessagesAsync(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetMessagesAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetRun(string threadId, string runId, RequestOptions options); - public virtual ClientResult GetRun(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual Task GetRunAsync(string threadId, string runId, RequestOptions options); - public virtual Task> GetRunAsync(string threadId, string runId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRuns(string threadId, RunCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRuns(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetRunsAsync(string threadId, RunCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetRunsAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetRunStep(string threadId, string runId, string stepId, RequestOptions options); - public virtual ClientResult GetRunStep(string threadId, string runId, string stepId, CancellationToken cancellationToken = default); - public virtual Task GetRunStepAsync(string threadId, string runId, string stepId, RequestOptions options); - public virtual Task> GetRunStepAsync(string threadId, string runId, string stepId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRunSteps(string threadId, string runId, RunStepCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetRunSteps(string threadId, string runId, int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, RunStepCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult GetThread(string threadId, RequestOptions options); - public virtual ClientResult GetThread(string threadId, CancellationToken cancellationToken = default); - public virtual Task GetThreadAsync(string threadId, RequestOptions options); - public virtual Task> GetThreadAsync(string threadId, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyAssistant(string assistantId, AssistantModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyAssistant(string assistantId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyAssistantAsync(string assistantId, AssistantModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyAssistantAsync(string assistantId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyMessage(string threadId, string messageId, MessageModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyMessage(string threadId, string messageId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyMessageAsync(string threadId, string messageId, MessageModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyMessageAsync(string threadId, string messageId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyRun(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual Task ModifyRunAsync(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult ModifyThread(string threadId, ThreadModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyThread(string threadId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyThreadAsync(string threadId, ThreadModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyThreadAsync(string threadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult SubmitToolOutputsToRun(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult SubmitToolOutputsToRun(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual Task SubmitToolOutputsToRunAsync(string threadId, string runId, BinaryContent content, RequestOptions options = null); - public virtual Task> SubmitToolOutputsToRunAsync(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual CollectionResult SubmitToolOutputsToRunStreaming(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult SubmitToolOutputsToRunStreamingAsync(string threadId, string runId, IEnumerable toolOutputs, CancellationToken cancellationToken = default); - } - public class AssistantCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public AssistantCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual AssistantCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct AssistantCollectionOrder : IEquatable { - public AssistantCollectionOrder(string value); - public static AssistantCollectionOrder Ascending { get; } - public static AssistantCollectionOrder Descending { get; } - public readonly bool Equals(AssistantCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AssistantCollectionOrder left, AssistantCollectionOrder right); - public static implicit operator AssistantCollectionOrder(string value); - public static implicit operator AssistantCollectionOrder?(string value); - public static bool operator !=(AssistantCollectionOrder left, AssistantCollectionOrder right); - public override readonly string ToString(); - } - public class AssistantCreationOptions : IJsonModel, IPersistableModel { - public string Description { get; set; } - public string Instructions { get; set; } - public IDictionary Metadata { get; } - public string Name { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolResources ToolResources { get; set; } - public IList Tools { get; } - protected virtual AssistantCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AssistantDeletionResult : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public bool Deleted { get; } - protected virtual AssistantDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AssistantDeletionResult(ClientResult result); - protected virtual AssistantDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AssistantModificationOptions : IJsonModel, IPersistableModel { - public IList DefaultTools { get; } - public string Description { get; set; } - public string Instructions { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public string Name { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolResources ToolResources { get; set; } - protected virtual AssistantModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AssistantModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AssistantResponseFormat : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public static AssistantResponseFormat Auto { get; } - public static AssistantResponseFormat JsonObject { get; } - public static AssistantResponseFormat Text { get; } - public static AssistantResponseFormat CreateAutoFormat(); - public static AssistantResponseFormat CreateJsonObjectFormat(); - public static AssistantResponseFormat CreateJsonSchemaFormat(string name, BinaryData jsonSchema, string description = null, bool? strictSchemaEnabled = null); - public static AssistantResponseFormat CreateTextFormat(); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - protected virtual AssistantResponseFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(AssistantResponseFormat first, AssistantResponseFormat second); - [EditorBrowsable(EditorBrowsableState.Never)] - public static implicit operator AssistantResponseFormat(string plainTextFormat); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(AssistantResponseFormat first, AssistantResponseFormat second); - protected virtual AssistantResponseFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - [EditorBrowsable(EditorBrowsableState.Never)] - bool IEquatable.Equals(AssistantResponseFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - bool IEquatable.Equals(string other); - public override string ToString(); - } - public class AssistantThread : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public IReadOnlyDictionary Metadata { get; } - public ToolResources ToolResources { get; } - protected virtual AssistantThread JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AssistantThread(ClientResult result); - protected virtual AssistantThread PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public CodeInterpreterToolDefinition(); - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterToolResources : IJsonModel, IPersistableModel { - public IList FileIds { get; } - protected virtual CodeInterpreterToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct FileSearchRanker : IEquatable { - public FileSearchRanker(string value); - public static FileSearchRanker Auto { get; } - public static FileSearchRanker Default20240821 { get; } - public readonly bool Equals(FileSearchRanker other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileSearchRanker left, FileSearchRanker right); - public static implicit operator FileSearchRanker(string value); - public static implicit operator FileSearchRanker?(string value); - public static bool operator !=(FileSearchRanker left, FileSearchRanker right); - public override readonly string ToString(); - } - public class FileSearchRankingOptions : IJsonModel, IPersistableModel { - public FileSearchRankingOptions(float scoreThreshold); - public FileSearchRanker? Ranker { get; set; } - public float ScoreThreshold { get; set; } - protected virtual FileSearchRankingOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchRankingOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FileSearchToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public FileSearchToolDefinition(); - public int? MaxResults { get; set; } - public FileSearchRankingOptions RankingOptions { get; set; } - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FileSearchToolResources : IJsonModel, IPersistableModel { - public IList NewVectorStores { get; } - public IList VectorStoreIds { get; } - protected virtual FileSearchToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FunctionToolDefinition : ToolDefinition, IJsonModel, IPersistableModel { - public FunctionToolDefinition(); - public FunctionToolDefinition(string name); - public string Description { get; set; } - public string FunctionName { get; set; } - public BinaryData Parameters { get; set; } - public bool? StrictParameterSchemaEnabled { get; set; } - protected override ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class MessageCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public MessageCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual MessageCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct MessageCollectionOrder : IEquatable { - public MessageCollectionOrder(string value); - public static MessageCollectionOrder Ascending { get; } - public static MessageCollectionOrder Descending { get; } - public readonly bool Equals(MessageCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageCollectionOrder left, MessageCollectionOrder right); - public static implicit operator MessageCollectionOrder(string value); - public static implicit operator MessageCollectionOrder?(string value); - public static bool operator !=(MessageCollectionOrder left, MessageCollectionOrder right); - public override readonly string ToString(); - } - public abstract class MessageContent : IJsonModel, IPersistableModel { - public MessageImageDetail? ImageDetail { get; } - public string ImageFileId { get; } - public Uri ImageUri { get; } - public string Refusal { get; } - public string Text { get; } - public IReadOnlyList TextAnnotations { get; } - public static MessageContent FromImageFileId(string imageFileId, MessageImageDetail? detail = null); - public static MessageContent FromImageUri(Uri imageUri, MessageImageDetail? detail = null); - public static MessageContent FromText(string text); - protected virtual MessageContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator MessageContent(string value); - protected virtual MessageContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class MessageContentUpdate : StreamingUpdate { - public MessageImageDetail? ImageDetail { get; } - public string ImageFileId { get; } - public string MessageId { get; } - public int MessageIndex { get; } - public string RefusalUpdate { get; } - public MessageRole? Role { get; } - public string Text { get; } - public TextAnnotationUpdate TextAnnotation { get; } - } - public class MessageCreationAttachment : IJsonModel, IPersistableModel { - public MessageCreationAttachment(string fileId, IEnumerable tools); - public string FileId { get; } - public IReadOnlyList Tools { get; } - protected virtual MessageCreationAttachment JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCreationAttachment PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class MessageCreationOptions : IJsonModel, IPersistableModel { - public IList Attachments { get; set; } - public IDictionary Metadata { get; } - protected virtual MessageCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class MessageDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string MessageId { get; } - protected virtual MessageDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator MessageDeletionResult(ClientResult result); - protected virtual MessageDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class MessageFailureDetails : IJsonModel, IPersistableModel { - public MessageFailureReason Reason { get; } - protected virtual MessageFailureDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageFailureDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct MessageFailureReason : IEquatable { - public MessageFailureReason(string value); - public static MessageFailureReason ContentFilter { get; } - public static MessageFailureReason MaxTokens { get; } - public static MessageFailureReason RunCancelled { get; } - public static MessageFailureReason RunExpired { get; } - public static MessageFailureReason RunFailed { get; } - public readonly bool Equals(MessageFailureReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageFailureReason left, MessageFailureReason right); - public static implicit operator MessageFailureReason(string value); - public static implicit operator MessageFailureReason?(string value); - public static bool operator !=(MessageFailureReason left, MessageFailureReason right); - public override readonly string ToString(); - } - public enum MessageImageDetail { + +namespace OpenAI.Assistants +{ + public partial class Assistant : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal Assistant() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Description { get { throw null; } } + public string Id { get { throw null; } } + public string Instructions { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } } + public string Name { get { throw null; } } + public float? NucleusSamplingFactor { get { throw null; } } + public AssistantResponseFormat ResponseFormat { get { throw null; } } + public float? Temperature { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + + protected virtual Assistant JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Assistant(System.ClientModel.ClientResult result) { throw null; } + protected virtual Assistant PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Assistant System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Assistant System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AssistantClient + { + protected AssistantClient() { } + public AssistantClient(AssistantClientSettings settings) { } + public AssistantClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public AssistantClient(System.ClientModel.ApiKeyCredential credential) { } + public AssistantClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public AssistantClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal AssistantClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public AssistantClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelRun(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelRun(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelRunAsync(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelRunAsync(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateAssistant(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateAssistant(string model, AssistantCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateAssistantAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAssistantAsync(string model, AssistantCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateMessage(string threadId, MessageRole role, System.Collections.Generic.IEnumerable content, MessageCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateMessage(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateMessageAsync(string threadId, MessageRole role, System.Collections.Generic.IEnumerable content, MessageCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateMessageAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateRun(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateRun(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateRunAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateRunAsync(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateRunStreaming(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateRunStreamingAsync(string threadId, string assistantId, RunCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateThread(ThreadCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateThread(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateThreadAndRun(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateThreadAndRun(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateThreadAndRunAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateThreadAndRunAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateThreadAndRunStreaming(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateThreadAndRunStreamingAsync(string assistantId, ThreadCreationOptions threadOptions = null, RunCreationOptions runOptions = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateThreadAsync(ThreadCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateThreadAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteAssistant(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteAssistant(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAssistantAsync(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAssistantAsync(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteMessage(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteMessage(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteMessageAsync(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteMessageAsync(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteThread(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteThread(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteThreadAsync(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetAssistant(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetAssistant(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetAssistantAsync(string assistantId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetAssistantAsync(string assistantId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetAssistants(AssistantCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetAssistants(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetAssistantsAsync(AssistantCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetMessage(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetMessage(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetMessageAsync(string threadId, string messageId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetMessageAsync(string threadId, string messageId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetMessages(string threadId, MessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetMessages(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetMessagesAsync(string threadId, MessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetMessagesAsync(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRun(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRun(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetRunAsync(string threadId, string runId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunAsync(string threadId, string runId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetRuns(string threadId, RunCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetRuns(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetRunsAsync(string threadId, RunCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetRunsAsync(string threadId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRunStep(string threadId, string runId, string stepId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetRunStep(string threadId, string runId, string stepId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetRunStepAsync(string threadId, string runId, string stepId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunStepAsync(string threadId, string runId, string stepId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetRunSteps(string threadId, string runId, RunStepCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetRunSteps(string threadId, string runId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, RunStepCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetRunStepsAsync(string threadId, string runId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetThread(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetThread(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetThreadAsync(string threadId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyAssistant(string assistantId, AssistantModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyAssistant(string assistantId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyAssistantAsync(string assistantId, AssistantModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyAssistantAsync(string assistantId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyMessage(string threadId, string messageId, MessageModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyMessage(string threadId, string messageId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyMessageAsync(string threadId, string messageId, MessageModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyMessageAsync(string threadId, string messageId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyRun(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ModifyRunAsync(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ModifyThread(string threadId, ThreadModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyThread(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyThreadAsync(string threadId, ThreadModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyThreadAsync(string threadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult SubmitToolOutputsToRun(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult SubmitToolOutputsToRun(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task SubmitToolOutputsToRunAsync(string threadId, string runId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> SubmitToolOutputsToRunAsync(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult SubmitToolOutputsToRunStreaming(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult SubmitToolOutputsToRunStreamingAsync(string threadId, string runId, System.Collections.Generic.IEnumerable toolOutputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public sealed partial class AssistantClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class AssistantCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public AssistantCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual AssistantCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct AssistantCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AssistantCollectionOrder(string value) { } + public static AssistantCollectionOrder Ascending { get { throw null; } } + public static AssistantCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(AssistantCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AssistantCollectionOrder left, AssistantCollectionOrder right) { throw null; } + public static implicit operator AssistantCollectionOrder(string value) { throw null; } + public static implicit operator AssistantCollectionOrder?(string value) { throw null; } + public static bool operator !=(AssistantCollectionOrder left, AssistantCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class AssistantCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Description { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolResources ToolResources { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + + protected virtual AssistantCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AssistantDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantDeletionResult() { } + public string AssistantId { get { throw null; } } + public bool Deleted { get { throw null; } } + + protected virtual AssistantDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AssistantDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual AssistantDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AssistantModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList DefaultTools { get { throw null; } } + public string Description { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual AssistantModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AssistantModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AssistantResponseFormat : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantResponseFormat() { } + public static AssistantResponseFormat Auto { get { throw null; } } + public static AssistantResponseFormat JsonObject { get { throw null; } } + public static AssistantResponseFormat Text { get { throw null; } } + + public static AssistantResponseFormat CreateAutoFormat() { throw null; } + public static AssistantResponseFormat CreateJsonObjectFormat() { throw null; } + public static AssistantResponseFormat CreateJsonSchemaFormat(string name, System.BinaryData jsonSchema, string description = null, bool? strictSchemaEnabled = null) { throw null; } + public static AssistantResponseFormat CreateTextFormat() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + protected virtual AssistantResponseFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(AssistantResponseFormat first, AssistantResponseFormat second) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static implicit operator AssistantResponseFormat(string plainTextFormat) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(AssistantResponseFormat first, AssistantResponseFormat second) { throw null; } + protected virtual AssistantResponseFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantResponseFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantResponseFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + bool System.IEquatable.Equals(AssistantResponseFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + bool System.IEquatable.Equals(string other) { throw null; } + public override string ToString() { throw null; } + } + + public partial class AssistantThread : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AssistantThread() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + + protected virtual AssistantThread JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AssistantThread(System.ClientModel.ClientResult result) { throw null; } + protected virtual AssistantThread PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantThread System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantThread System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolDefinition() { } + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList FileIds { get { throw null; } } + + protected virtual CodeInterpreterToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct FileSearchRanker : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileSearchRanker(string value) { } + public static FileSearchRanker Auto { get { throw null; } } + public static FileSearchRanker Default20240821 { get { throw null; } } + + public readonly bool Equals(FileSearchRanker other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileSearchRanker left, FileSearchRanker right) { throw null; } + public static implicit operator FileSearchRanker(string value) { throw null; } + public static implicit operator FileSearchRanker?(string value) { throw null; } + public static bool operator !=(FileSearchRanker left, FileSearchRanker right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class FileSearchRankingOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchRankingOptions(float scoreThreshold) { } + public FileSearchRanker? Ranker { get { throw null; } set { } } + public float ScoreThreshold { get { throw null; } set { } } + + protected virtual FileSearchRankingOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchRankingOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchRankingOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchRankingOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FileSearchToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchToolDefinition() { } + public int? MaxResults { get { throw null; } set { } } + public FileSearchRankingOptions RankingOptions { get { throw null; } set { } } + + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FileSearchToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList NewVectorStores { get { throw null; } } + public System.Collections.Generic.IList VectorStoreIds { get { throw null; } } + + protected virtual FileSearchToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FunctionToolDefinition : ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionToolDefinition() { } + public FunctionToolDefinition(string name) { } + public string Description { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } set { } } + public bool? StrictParameterSchemaEnabled { get { throw null; } set { } } + + protected override ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class MessageCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public MessageCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual MessageCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct MessageCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageCollectionOrder(string value) { } + public static MessageCollectionOrder Ascending { get { throw null; } } + public static MessageCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(MessageCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageCollectionOrder left, MessageCollectionOrder right) { throw null; } + public static implicit operator MessageCollectionOrder(string value) { throw null; } + public static implicit operator MessageCollectionOrder?(string value) { throw null; } + public static bool operator !=(MessageCollectionOrder left, MessageCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public abstract partial class MessageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageContent() { } + public MessageImageDetail? ImageDetail { get { throw null; } } + public string ImageFileId { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TextAnnotations { get { throw null; } } + + public static MessageContent FromImageFileId(string imageFileId, MessageImageDetail? detail = null) { throw null; } + public static MessageContent FromImageUri(System.Uri imageUri, MessageImageDetail? detail = null) { throw null; } + public static MessageContent FromText(string text) { throw null; } + protected virtual MessageContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator MessageContent(string value) { throw null; } + protected virtual MessageContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class MessageContentUpdate : StreamingUpdate + { + internal MessageContentUpdate() { } + public MessageImageDetail? ImageDetail { get { throw null; } } + public string ImageFileId { get { throw null; } } + public string MessageId { get { throw null; } } + public int MessageIndex { get { throw null; } } + public string RefusalUpdate { get { throw null; } } + public MessageRole? Role { get { throw null; } } + public string Text { get { throw null; } } + public TextAnnotationUpdate TextAnnotation { get { throw null; } } + } + + public partial class MessageCreationAttachment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public MessageCreationAttachment(string fileId, System.Collections.Generic.IEnumerable tools) { } + public string FileId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + + protected virtual MessageCreationAttachment JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCreationAttachment PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCreationAttachment System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCreationAttachment System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class MessageCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Attachments { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual MessageCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class MessageDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageDeletionResult() { } + public bool Deleted { get { throw null; } } + public string MessageId { get { throw null; } } + + protected virtual MessageDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator MessageDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual MessageDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class MessageFailureDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageFailureDetails() { } + public MessageFailureReason Reason { get { throw null; } } + + protected virtual MessageFailureDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageFailureDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageFailureDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageFailureDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct MessageFailureReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageFailureReason(string value) { } + public static MessageFailureReason ContentFilter { get { throw null; } } + public static MessageFailureReason MaxTokens { get { throw null; } } + public static MessageFailureReason RunCancelled { get { throw null; } } + public static MessageFailureReason RunExpired { get { throw null; } } + public static MessageFailureReason RunFailed { get { throw null; } } + + public readonly bool Equals(MessageFailureReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageFailureReason left, MessageFailureReason right) { throw null; } + public static implicit operator MessageFailureReason(string value) { throw null; } + public static implicit operator MessageFailureReason?(string value) { throw null; } + public static bool operator !=(MessageFailureReason left, MessageFailureReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public enum MessageImageDetail + { Auto = 0, Low = 1, High = 2 } - public class MessageModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - protected virtual MessageModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual MessageModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum MessageRole { + + public partial class MessageModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual MessageModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual MessageModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum MessageRole + { User = 0, Assistant = 1 } - public readonly partial struct MessageStatus : IEquatable { - public MessageStatus(string value); - public static MessageStatus Completed { get; } - public static MessageStatus Incomplete { get; } - public static MessageStatus InProgress { get; } - public readonly bool Equals(MessageStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(MessageStatus left, MessageStatus right); - public static implicit operator MessageStatus(string value); - public static implicit operator MessageStatus?(string value); - public static bool operator !=(MessageStatus left, MessageStatus right); - public override readonly string ToString(); - } - public class MessageStatusUpdate : StreamingUpdate { - } - public abstract class RequiredAction { - public string FunctionArguments { get; } - public string FunctionName { get; } - public string ToolCallId { get; } - } - public class RequiredActionUpdate : RunUpdate { - public string FunctionArguments { get; } - public string FunctionName { get; } - public string ToolCallId { get; } - public ThreadRun GetThreadRun(); - } - public class RunCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public RunCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual RunCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RunCollectionOrder : IEquatable { - public RunCollectionOrder(string value); - public static RunCollectionOrder Ascending { get; } - public static RunCollectionOrder Descending { get; } - public readonly bool Equals(RunCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunCollectionOrder left, RunCollectionOrder right); - public static implicit operator RunCollectionOrder(string value); - public static implicit operator RunCollectionOrder?(string value); - public static bool operator !=(RunCollectionOrder left, RunCollectionOrder right); - public override readonly string ToString(); - } - public class RunCreationOptions : IJsonModel, IPersistableModel { - public string AdditionalInstructions { get; set; } - public IList AdditionalMessages { get; } - public bool? AllowParallelToolCalls { get; set; } - public string InstructionsOverride { get; set; } - public int? MaxInputTokenCount { get; set; } - public int? MaxOutputTokenCount { get; set; } - public IDictionary Metadata { get; } - public string ModelOverride { get; set; } - public float? NucleusSamplingFactor { get; set; } - public AssistantResponseFormat ResponseFormat { get; set; } - public float? Temperature { get; set; } - public ToolConstraint ToolConstraint { get; set; } - public IList ToolsOverride { get; } - public RunTruncationStrategy TruncationStrategy { get; set; } - protected virtual RunCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunError : IJsonModel, IPersistableModel { - public RunErrorCode Code { get; } - public string Message { get; } - protected virtual RunError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RunErrorCode : IEquatable { - public RunErrorCode(string value); - public static RunErrorCode InvalidPrompt { get; } - public static RunErrorCode RateLimitExceeded { get; } - public static RunErrorCode ServerError { get; } - public readonly bool Equals(RunErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunErrorCode left, RunErrorCode right); - public static implicit operator RunErrorCode(string value); - public static implicit operator RunErrorCode?(string value); - public static bool operator !=(RunErrorCode left, RunErrorCode right); - public override readonly string ToString(); - } - public class RunIncompleteDetails : IJsonModel, IPersistableModel { - public RunIncompleteReason? Reason { get; } - protected virtual RunIncompleteDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunIncompleteDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RunIncompleteReason : IEquatable { - public RunIncompleteReason(string value); - public static RunIncompleteReason MaxInputTokenCount { get; } - public static RunIncompleteReason MaxOutputTokenCount { get; } - public readonly bool Equals(RunIncompleteReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right); - public static implicit operator RunIncompleteReason(string value); - public static implicit operator RunIncompleteReason?(string value); - public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right); - public override readonly string ToString(); - } - public class RunModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - protected virtual RunModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RunStatus : IEquatable { - public RunStatus(string value); - public static RunStatus Cancelled { get; } - public static RunStatus Cancelling { get; } - public static RunStatus Completed { get; } - public static RunStatus Expired { get; } - public static RunStatus Failed { get; } - public static RunStatus Incomplete { get; } - public static RunStatus InProgress { get; } - public bool IsTerminal { get; } - public static RunStatus Queued { get; } - public static RunStatus RequiresAction { get; } - public readonly bool Equals(RunStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStatus left, RunStatus right); - public static implicit operator RunStatus(string value); - public static implicit operator RunStatus?(string value); - public static bool operator !=(RunStatus left, RunStatus right); - public override readonly string ToString(); - } - public class RunStep : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CompletedAt { get; } - public DateTimeOffset CreatedAt { get; } - public RunStepDetails Details { get; } - public DateTimeOffset? ExpiredAt { get; } - public DateTimeOffset? FailedAt { get; } - public string Id { get; } - public RunStepKind Kind { get; } - public RunStepError LastError { get; } - public IReadOnlyDictionary Metadata { get; } - public string RunId { get; } - public RunStepStatus Status { get; } - public string ThreadId { get; } - public RunStepTokenUsage Usage { get; } - protected virtual RunStep JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RunStep(ClientResult result); - protected virtual RunStep PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public abstract class RunStepCodeInterpreterOutput : IJsonModel, IPersistableModel { - public string ImageFileId { get; } - public string Logs { get; } - protected virtual RunStepCodeInterpreterOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepCodeInterpreterOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunStepCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public RunStepCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual RunStepCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RunStepCollectionOrder : IEquatable { - public RunStepCollectionOrder(string value); - public static RunStepCollectionOrder Ascending { get; } - public static RunStepCollectionOrder Descending { get; } - public readonly bool Equals(RunStepCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepCollectionOrder left, RunStepCollectionOrder right); - public static implicit operator RunStepCollectionOrder(string value); - public static implicit operator RunStepCollectionOrder?(string value); - public static bool operator !=(RunStepCollectionOrder left, RunStepCollectionOrder right); - public override readonly string ToString(); - } - public abstract class RunStepDetails : IJsonModel, IPersistableModel { - public string CreatedMessageId { get; } - public IReadOnlyList ToolCalls { get; } - protected virtual RunStepDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunStepDetailsUpdate : StreamingUpdate { - public string CodeInterpreterInput { get; } - public IReadOnlyList CodeInterpreterOutputs { get; } - public string CreatedMessageId { get; } - public FileSearchRankingOptions FileSearchRankingOptions { get; } - public IReadOnlyList FileSearchResults { get; } - public string FunctionArguments { get; } - public string FunctionName { get; } - public string FunctionOutput { get; } - public string StepId { get; } - public string ToolCallId { get; } - public int? ToolCallIndex { get; } - } - public class RunStepError : IJsonModel, IPersistableModel { - public RunStepErrorCode Code { get; } - public string Message { get; } - protected virtual RunStepError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RunStepErrorCode : IEquatable { - public RunStepErrorCode(string value); - public static RunStepErrorCode RateLimitExceeded { get; } - public static RunStepErrorCode ServerError { get; } - public readonly bool Equals(RunStepErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepErrorCode left, RunStepErrorCode right); - public static implicit operator RunStepErrorCode(string value); - public static implicit operator RunStepErrorCode?(string value); - public static bool operator !=(RunStepErrorCode left, RunStepErrorCode right); - public override readonly string ToString(); - } - public class RunStepFileSearchResult : IJsonModel, IPersistableModel { - public IReadOnlyList Content { get; } - public string FileId { get; } - public string FileName { get; } - public float Score { get; } - protected virtual RunStepFileSearchResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepFileSearchResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunStepFileSearchResultContent : IJsonModel, IPersistableModel { - public RunStepFileSearchResultContentKind Kind { get; } - public string Text { get; } - protected virtual RunStepFileSearchResultContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepFileSearchResultContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum RunStepFileSearchResultContentKind { + + public readonly partial struct MessageStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MessageStatus(string value) { } + public static MessageStatus Completed { get { throw null; } } + public static MessageStatus Incomplete { get { throw null; } } + public static MessageStatus InProgress { get { throw null; } } + + public readonly bool Equals(MessageStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(MessageStatus left, MessageStatus right) { throw null; } + public static implicit operator MessageStatus(string value) { throw null; } + public static implicit operator MessageStatus?(string value) { throw null; } + public static bool operator !=(MessageStatus left, MessageStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class MessageStatusUpdate : StreamingUpdate + { + internal MessageStatusUpdate() { } + } + + public abstract partial class RequiredAction + { + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ToolCallId { get { throw null; } } + } + public partial class RequiredActionUpdate : RunUpdate + { + internal RequiredActionUpdate() { } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ToolCallId { get { throw null; } } + + public ThreadRun GetThreadRun() { throw null; } + } + + public partial class RunCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public RunCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual RunCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RunCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunCollectionOrder(string value) { } + public static RunCollectionOrder Ascending { get { throw null; } } + public static RunCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(RunCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunCollectionOrder left, RunCollectionOrder right) { throw null; } + public static implicit operator RunCollectionOrder(string value) { throw null; } + public static implicit operator RunCollectionOrder?(string value) { throw null; } + public static bool operator !=(RunCollectionOrder left, RunCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RunCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AdditionalInstructions { get { throw null; } set { } } + public System.Collections.Generic.IList AdditionalMessages { get { throw null; } } + public bool? AllowParallelToolCalls { get { throw null; } set { } } + public string InstructionsOverride { get { throw null; } set { } } + public int? MaxInputTokenCount { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string ModelOverride { get { throw null; } set { } } + public float? NucleusSamplingFactor { get { throw null; } set { } } + public AssistantResponseFormat ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ToolConstraint ToolConstraint { get { throw null; } set { } } + public System.Collections.Generic.IList ToolsOverride { get { throw null; } } + public RunTruncationStrategy TruncationStrategy { get { throw null; } set { } } + + protected virtual RunCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunError() { } + public RunErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual RunError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RunErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunErrorCode(string value) { } + public static RunErrorCode InvalidPrompt { get { throw null; } } + public static RunErrorCode RateLimitExceeded { get { throw null; } } + public static RunErrorCode ServerError { get { throw null; } } + + public readonly bool Equals(RunErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunErrorCode left, RunErrorCode right) { throw null; } + public static implicit operator RunErrorCode(string value) { throw null; } + public static implicit operator RunErrorCode?(string value) { throw null; } + public static bool operator !=(RunErrorCode left, RunErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RunIncompleteDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunIncompleteDetails() { } + public RunIncompleteReason? Reason { get { throw null; } } + + protected virtual RunIncompleteDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunIncompleteDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunIncompleteDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunIncompleteDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RunIncompleteReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunIncompleteReason(string value) { } + public static RunIncompleteReason MaxInputTokenCount { get { throw null; } } + public static RunIncompleteReason MaxOutputTokenCount { get { throw null; } } + + public readonly bool Equals(RunIncompleteReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right) { throw null; } + public static implicit operator RunIncompleteReason(string value) { throw null; } + public static implicit operator RunIncompleteReason?(string value) { throw null; } + public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RunModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual RunModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RunStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStatus(string value) { } + public static RunStatus Cancelled { get { throw null; } } + public static RunStatus Cancelling { get { throw null; } } + public static RunStatus Completed { get { throw null; } } + public static RunStatus Expired { get { throw null; } } + public static RunStatus Failed { get { throw null; } } + public static RunStatus Incomplete { get { throw null; } } + public static RunStatus InProgress { get { throw null; } } + public bool IsTerminal { get { throw null; } } + public static RunStatus Queued { get { throw null; } } + public static RunStatus RequiresAction { get { throw null; } } + + public readonly bool Equals(RunStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStatus left, RunStatus right) { throw null; } + public static implicit operator RunStatus(string value) { throw null; } + public static implicit operator RunStatus?(string value) { throw null; } + public static bool operator !=(RunStatus left, RunStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RunStep : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStep() { } + public string AssistantId { get { throw null; } } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public RunStepDetails Details { get { throw null; } } + public System.DateTimeOffset? ExpiredAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public string Id { get { throw null; } } + public RunStepKind Kind { get { throw null; } } + public RunStepError LastError { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string RunId { get { throw null; } } + public RunStepStatus Status { get { throw null; } } + public string ThreadId { get { throw null; } } + public RunStepTokenUsage Usage { get { throw null; } } + + protected virtual RunStep JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RunStep(System.ClientModel.ClientResult result) { throw null; } + protected virtual RunStep PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStep System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStep System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public abstract partial class RunStepCodeInterpreterOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepCodeInterpreterOutput() { } + public string ImageFileId { get { throw null; } } + public string Logs { get { throw null; } } + + protected virtual RunStepCodeInterpreterOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepCodeInterpreterOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepCodeInterpreterOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepCodeInterpreterOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunStepCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public RunStepCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual RunStepCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RunStepCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepCollectionOrder(string value) { } + public static RunStepCollectionOrder Ascending { get { throw null; } } + public static RunStepCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(RunStepCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepCollectionOrder left, RunStepCollectionOrder right) { throw null; } + public static implicit operator RunStepCollectionOrder(string value) { throw null; } + public static implicit operator RunStepCollectionOrder?(string value) { throw null; } + public static bool operator !=(RunStepCollectionOrder left, RunStepCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public abstract partial class RunStepDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepDetails() { } + public string CreatedMessageId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + + protected virtual RunStepDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunStepDetailsUpdate : StreamingUpdate + { + internal RunStepDetailsUpdate() { } + public string CodeInterpreterInput { get { throw null; } } + public System.Collections.Generic.IReadOnlyList CodeInterpreterOutputs { get { throw null; } } + public string CreatedMessageId { get { throw null; } } + public FileSearchRankingOptions FileSearchRankingOptions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FileSearchResults { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string FunctionOutput { get { throw null; } } + public string StepId { get { throw null; } } + public string ToolCallId { get { throw null; } } + public int? ToolCallIndex { get { throw null; } } + } + + public partial class RunStepError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepError() { } + public RunStepErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual RunStepError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RunStepErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepErrorCode(string value) { } + public static RunStepErrorCode RateLimitExceeded { get { throw null; } } + public static RunStepErrorCode ServerError { get { throw null; } } + + public readonly bool Equals(RunStepErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepErrorCode left, RunStepErrorCode right) { throw null; } + public static implicit operator RunStepErrorCode(string value) { throw null; } + public static implicit operator RunStepErrorCode?(string value) { throw null; } + public static bool operator !=(RunStepErrorCode left, RunStepErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RunStepFileSearchResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepFileSearchResult() { } + public System.Collections.Generic.IReadOnlyList Content { get { throw null; } } + public string FileId { get { throw null; } } + public string FileName { get { throw null; } } + public float Score { get { throw null; } } + + protected virtual RunStepFileSearchResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepFileSearchResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepFileSearchResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepFileSearchResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunStepFileSearchResultContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepFileSearchResultContent() { } + public RunStepFileSearchResultContentKind Kind { get { throw null; } } + public string Text { get { throw null; } } + + protected virtual RunStepFileSearchResultContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepFileSearchResultContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepFileSearchResultContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepFileSearchResultContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum RunStepFileSearchResultContentKind + { Text = 0 } - public enum RunStepKind { + + public enum RunStepKind + { CreatedMessage = 0, ToolCall = 1 } - public readonly partial struct RunStepStatus : IEquatable { - public RunStepStatus(string value); - public static RunStepStatus Cancelled { get; } - public static RunStepStatus Completed { get; } - public static RunStepStatus Expired { get; } - public static RunStepStatus Failed { get; } - public static RunStepStatus InProgress { get; } - public readonly bool Equals(RunStepStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RunStepStatus left, RunStepStatus right); - public static implicit operator RunStepStatus(string value); - public static implicit operator RunStepStatus?(string value); - public static bool operator !=(RunStepStatus left, RunStepStatus right); - public override readonly string ToString(); - } - public class RunStepTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public int OutputTokenCount { get; } - public int TotalTokenCount { get; } - protected virtual RunStepTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunStepToolCall : IJsonModel, IPersistableModel { - public string CodeInterpreterInput { get; } - public IReadOnlyList CodeInterpreterOutputs { get; } - public FileSearchRankingOptions FileSearchRankingOptions { get; } - public IReadOnlyList FileSearchResults { get; } - public string FunctionArguments { get; } - public string FunctionName { get; } - public string FunctionOutput { get; } - public string Id { get; } - public RunStepToolCallKind Kind { get; } - protected virtual RunStepToolCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepToolCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum RunStepToolCallKind { + + public readonly partial struct RunStepStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RunStepStatus(string value) { } + public static RunStepStatus Cancelled { get { throw null; } } + public static RunStepStatus Completed { get { throw null; } } + public static RunStepStatus Expired { get { throw null; } } + public static RunStepStatus Failed { get { throw null; } } + public static RunStepStatus InProgress { get { throw null; } } + + public readonly bool Equals(RunStepStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RunStepStatus left, RunStepStatus right) { throw null; } + public static implicit operator RunStepStatus(string value) { throw null; } + public static implicit operator RunStepStatus?(string value) { throw null; } + public static bool operator !=(RunStepStatus left, RunStepStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RunStepTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual RunStepTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunStepToolCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepToolCall() { } + public string CodeInterpreterInput { get { throw null; } } + public System.Collections.Generic.IReadOnlyList CodeInterpreterOutputs { get { throw null; } } + public FileSearchRankingOptions FileSearchRankingOptions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FileSearchResults { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string FunctionOutput { get { throw null; } } + public string Id { get { throw null; } } + public RunStepToolCallKind Kind { get { throw null; } } + + protected virtual RunStepToolCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepToolCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepToolCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepToolCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum RunStepToolCallKind + { CodeInterpreter = 0, FileSearch = 1, Function = 2 } - public class RunStepUpdate : StreamingUpdate { - } - public class RunStepUpdateCodeInterpreterOutput : IJsonModel, IPersistableModel { - public string ImageFileId { get; } - public string Logs { get; } - public int OutputIndex { get; } - protected virtual RunStepUpdateCodeInterpreterOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunStepUpdateCodeInterpreterOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public int OutputTokenCount { get; } - public int TotalTokenCount { get; } - protected virtual RunTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunTruncationStrategy : IJsonModel, IPersistableModel { - public static RunTruncationStrategy Auto { get; } - public int? LastMessages { get; } - public static RunTruncationStrategy CreateLastMessagesStrategy(int lastMessageCount); - protected virtual RunTruncationStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunTruncationStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunUpdate : StreamingUpdate { - } - public abstract class StreamingUpdate { - public StreamingUpdateReason UpdateKind { get; } - } - public enum StreamingUpdateReason { + + public partial class RunStepUpdate : StreamingUpdate + { + internal RunStepUpdate() { } + } + + public partial class RunStepUpdateCodeInterpreterOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunStepUpdateCodeInterpreterOutput() { } + public string ImageFileId { get { throw null; } } + public string Logs { get { throw null; } } + public int OutputIndex { get { throw null; } } + + protected virtual RunStepUpdateCodeInterpreterOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunStepUpdateCodeInterpreterOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunStepUpdateCodeInterpreterOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunStepUpdateCodeInterpreterOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual RunTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunTruncationStrategy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunTruncationStrategy() { } + public static RunTruncationStrategy Auto { get { throw null; } } + public int? LastMessages { get { throw null; } } + + public static RunTruncationStrategy CreateLastMessagesStrategy(int lastMessageCount) { throw null; } + protected virtual RunTruncationStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunTruncationStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunTruncationStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunTruncationStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunUpdate : StreamingUpdate + { + internal RunUpdate() { } + } + + public abstract partial class StreamingUpdate + { + internal StreamingUpdate() { } + public StreamingUpdateReason UpdateKind { get { throw null; } } + } + public enum StreamingUpdateReason + { Unknown = 0, ThreadCreated = 1, RunCreated = 2, @@ -846,896 +1605,1368 @@ public enum StreamingUpdateReason { Error = 24, Done = 25 } - public class StreamingUpdate : StreamingUpdate where T : class { - public T Value { get; } - public static implicit operator T(StreamingUpdate update); - } - public class TextAnnotation { - public int EndIndex { get; } - public string InputFileId { get; } - public string OutputFileId { get; } - public int StartIndex { get; } - public string TextToReplace { get; } - } - public class TextAnnotationUpdate { - public int ContentIndex { get; } - public int? EndIndex { get; } - public string InputFileId { get; } - public string OutputFileId { get; } - public int? StartIndex { get; } - public string TextToReplace { get; } - } - public class ThreadCreationOptions : IJsonModel, IPersistableModel { - public IList InitialMessages { get; } - public IDictionary Metadata { get; } - public ToolResources ToolResources { get; set; } - protected virtual ThreadCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ThreadCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ThreadDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string ThreadId { get; } - protected virtual ThreadDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadDeletionResult(ClientResult result); - protected virtual ThreadDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ThreadInitializationMessage : MessageCreationOptions { - public ThreadInitializationMessage(MessageRole role, IEnumerable content); - public static implicit operator ThreadInitializationMessage(string initializationMessage); - } - public class ThreadMessage : IJsonModel, IPersistableModel { - public string AssistantId { get; } - public IReadOnlyList Attachments { get; } - public DateTimeOffset? CompletedAt { get; } - public IReadOnlyList Content { get; } - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public DateTimeOffset? IncompleteAt { get; } - public MessageFailureDetails IncompleteDetails { get; } - public IReadOnlyDictionary Metadata { get; } - public MessageRole Role { get; } - public string RunId { get; } - public MessageStatus Status { get; } - public string ThreadId { get; } - protected virtual ThreadMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadMessage(ClientResult result); - protected virtual ThreadMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ThreadModificationOptions : IJsonModel, IPersistableModel { - public IDictionary Metadata { get; } - public ToolResources ToolResources { get; set; } - protected virtual ThreadModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ThreadModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ThreadRun : IJsonModel, IPersistableModel { - public bool? AllowParallelToolCalls { get; } - public string AssistantId { get; } - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CompletedAt { get; } - public DateTimeOffset CreatedAt { get; } - public DateTimeOffset? ExpiresAt { get; } - public DateTimeOffset? FailedAt { get; } - public string Id { get; } - public RunIncompleteDetails IncompleteDetails { get; } - public string Instructions { get; } - public RunError LastError { get; } - public int? MaxInputTokenCount { get; } - public int? MaxOutputTokenCount { get; } - public IReadOnlyDictionary Metadata { get; } - public string Model { get; } - public float? NucleusSamplingFactor { get; } - public IReadOnlyList RequiredActions { get; } - public AssistantResponseFormat ResponseFormat { get; } - public DateTimeOffset? StartedAt { get; } - public RunStatus Status { get; } - public float? Temperature { get; } - public string ThreadId { get; } - public ToolConstraint ToolConstraint { get; } - public IReadOnlyList Tools { get; } - public RunTruncationStrategy TruncationStrategy { get; } - public RunTokenUsage Usage { get; } - protected virtual ThreadRun JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ThreadRun(ClientResult result); - protected virtual ThreadRun PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ThreadUpdate : StreamingUpdate { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public IReadOnlyDictionary Metadata { get; } - public ToolResources ToolResources { get; } - } - public class ToolConstraint : IJsonModel, IPersistableModel { - public ToolConstraint(ToolDefinition toolDefinition); - public static ToolConstraint Auto { get; } - public static ToolConstraint None { get; } - public static ToolConstraint Required { get; } - protected virtual ToolConstraint JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolConstraint PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ToolDefinition : IJsonModel, IPersistableModel { - public static CodeInterpreterToolDefinition CreateCodeInterpreter(); - public static FileSearchToolDefinition CreateFileSearch(int? maxResults = null); - public static FunctionToolDefinition CreateFunction(string name, string description = null, BinaryData parameters = null, bool? strictParameterSchemaEnabled = null); - protected virtual ToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ToolOutput : IJsonModel, IPersistableModel { - public ToolOutput(); - public ToolOutput(string toolCallId, string output); - public string Output { get; set; } - public string ToolCallId { get; set; } - protected virtual ToolOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ToolResources : IJsonModel, IPersistableModel { - public CodeInterpreterToolResources CodeInterpreter { get; set; } - public FileSearchToolResources FileSearch { get; set; } - protected virtual ToolResources JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ToolResources PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class VectorStoreCreationHelper : IJsonModel, IPersistableModel { - public VectorStoreCreationHelper(); - public VectorStoreCreationHelper(IEnumerable files); - public VectorStoreCreationHelper(IEnumerable fileIds); - public FileChunkingStrategy ChunkingStrategy { get; set; } - public IList FileIds { get; } - public IDictionary Metadata { get; } - protected virtual VectorStoreCreationHelper JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCreationHelper PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + public partial class StreamingUpdate : StreamingUpdate where T : class + { + internal StreamingUpdate() { } + public T Value { get { throw null; } } + + public static implicit operator T(StreamingUpdate update) { throw null; } + } + + public partial class TextAnnotation + { + internal TextAnnotation() { } + public int EndIndex { get { throw null; } } + public string InputFileId { get { throw null; } } + public string OutputFileId { get { throw null; } } + public int StartIndex { get { throw null; } } + public string TextToReplace { get { throw null; } } + } + public partial class TextAnnotationUpdate + { + internal TextAnnotationUpdate() { } + public int ContentIndex { get { throw null; } } + public int? EndIndex { get { throw null; } } + public string InputFileId { get { throw null; } } + public string OutputFileId { get { throw null; } } + public int? StartIndex { get { throw null; } } + public string TextToReplace { get { throw null; } } + } + public partial class ThreadCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList InitialMessages { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual ThreadCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ThreadCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ThreadDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadDeletionResult() { } + public bool Deleted { get { throw null; } } + public string ThreadId { get { throw null; } } + + protected virtual ThreadDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ThreadInitializationMessage : MessageCreationOptions + { + public ThreadInitializationMessage(MessageRole role, System.Collections.Generic.IEnumerable content) { } + public static implicit operator ThreadInitializationMessage(string initializationMessage) { throw null; } + } + + public partial class ThreadMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadMessage() { } + public string AssistantId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Attachments { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Content { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? IncompleteAt { get { throw null; } } + public MessageFailureDetails IncompleteDetails { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public MessageRole Role { get { throw null; } } + public string RunId { get { throw null; } } + public MessageStatus Status { get { throw null; } } + public string ThreadId { get { throw null; } } + + protected virtual ThreadMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadMessage(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ThreadModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } set { } } + + protected virtual ThreadModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ThreadModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ThreadRun : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ThreadRun() { } + public bool? AllowParallelToolCalls { get { throw null; } } + public string AssistantId { get { throw null; } } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public string Id { get { throw null; } } + public RunIncompleteDetails IncompleteDetails { get { throw null; } } + public string Instructions { get { throw null; } } + public RunError LastError { get { throw null; } } + public int? MaxInputTokenCount { get { throw null; } } + public int? MaxOutputTokenCount { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } } + public float? NucleusSamplingFactor { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredActions { get { throw null; } } + public AssistantResponseFormat ResponseFormat { get { throw null; } } + public System.DateTimeOffset? StartedAt { get { throw null; } } + public RunStatus Status { get { throw null; } } + public float? Temperature { get { throw null; } } + public string ThreadId { get { throw null; } } + public ToolConstraint ToolConstraint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public RunTruncationStrategy TruncationStrategy { get { throw null; } } + public RunTokenUsage Usage { get { throw null; } } + + protected virtual ThreadRun JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ThreadRun(System.ClientModel.ClientResult result) { throw null; } + protected virtual ThreadRun PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ThreadRun System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ThreadRun System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ThreadUpdate : StreamingUpdate + { + internal ThreadUpdate() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public ToolResources ToolResources { get { throw null; } } + } + + public partial class ToolConstraint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolConstraint(ToolDefinition toolDefinition) { } + public static ToolConstraint Auto { get { throw null; } } + public static ToolConstraint None { get { throw null; } } + public static ToolConstraint Required { get { throw null; } } + + protected virtual ToolConstraint JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolConstraint PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolConstraint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolConstraint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ToolDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ToolDefinition() { } + public static CodeInterpreterToolDefinition CreateCodeInterpreter() { throw null; } + public static FileSearchToolDefinition CreateFileSearch(int? maxResults = null) { throw null; } + public static FunctionToolDefinition CreateFunction(string name, string description = null, System.BinaryData parameters = null, bool? strictParameterSchemaEnabled = null) { throw null; } + protected virtual ToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ToolOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolOutput() { } + public ToolOutput(string toolCallId, string output) { } + public string Output { get { throw null; } set { } } + public string ToolCallId { get { throw null; } set { } } + + protected virtual ToolOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ToolResources : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolResources CodeInterpreter { get { throw null; } set { } } + public FileSearchToolResources FileSearch { get { throw null; } set { } } + + protected virtual ToolResources JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ToolResources PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolResources System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolResources System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class VectorStoreCreationHelper : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreCreationHelper() { } + public VectorStoreCreationHelper(System.Collections.Generic.IEnumerable files) { } + public VectorStoreCreationHelper(System.Collections.Generic.IEnumerable fileIds) { } + public VectorStores.FileChunkingStrategy ChunkingStrategy { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + + protected virtual VectorStoreCreationHelper JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCreationHelper PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCreationHelper System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCreationHelper System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Audio { - public class AudioClient { - protected AudioClient(); - protected internal AudioClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public AudioClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public AudioClient(string model, ApiKeyCredential credential); - public AudioClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public AudioClient(string model, AuthenticationPolicy authenticationPolicy); - public AudioClient(string model, string apiKey); - public Uri Endpoint { get; } - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateSpeech(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateSpeech(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateSpeechAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateSpeechAsync(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranscribeAudio(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult TranscribeAudio(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranscribeAudio(string audioFilePath, AudioTranscriptionOptions options = null); - public virtual Task TranscribeAudioAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> TranscribeAudioAsync(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> TranscribeAudioAsync(string audioFilePath, AudioTranscriptionOptions options = null); - public virtual CollectionResult TranscribeAudioStreaming(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult TranscribeAudioStreaming(string audioFilePath, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult TranscribeAudioStreamingAsync(Stream audio, string audioFilename, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult TranscribeAudioStreamingAsync(string audioFilePath, AudioTranscriptionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranslateAudio(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult TranslateAudio(Stream audio, string audioFilename, AudioTranslationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult TranslateAudio(string audioFilePath, AudioTranslationOptions options = null); - public virtual Task TranslateAudioAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> TranslateAudioAsync(Stream audio, string audioFilename, AudioTranslationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> TranslateAudioAsync(string audioFilePath, AudioTranslationOptions options = null); - } - [Flags] - public enum AudioTimestampGranularities { + +namespace OpenAI.Audio +{ + public partial class AudioClient + { + protected AudioClient() { } + public AudioClient(AudioClientSettings settings) { } + protected internal AudioClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public AudioClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public AudioClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public AudioClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public AudioClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public AudioClient(string model, string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateSpeech(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateSpeech(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateSpeechAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateSpeechAsync(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranscribeAudio(string audioFilePath, AudioTranscriptionOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task TranscribeAudioAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> TranscribeAudioAsync(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> TranscribeAudioAsync(string audioFilePath, AudioTranscriptionOptions options = null) { throw null; } + public virtual System.ClientModel.CollectionResult TranscribeAudioStreaming(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult TranscribeAudioStreaming(string audioFilePath, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult TranscribeAudioStreamingAsync(System.IO.Stream audio, string audioFilename, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult TranscribeAudioStreamingAsync(string audioFilePath, AudioTranscriptionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(System.IO.Stream audio, string audioFilename, AudioTranslationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult TranslateAudio(string audioFilePath, AudioTranslationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task TranslateAudioAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> TranslateAudioAsync(System.IO.Stream audio, string audioFilename, AudioTranslationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> TranslateAudioAsync(string audioFilePath, AudioTranslationOptions options = null) { throw null; } + } + public sealed partial class AudioClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Flags] + public enum AudioTimestampGranularities + { Default = 0, Word = 1, Segment = 2 } - public class AudioTokenLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - public string Token { get; } - public ReadOnlyMemory Utf8Bytes { get; } - protected virtual AudioTokenLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AudioTokenLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AudioTranscription : IJsonModel, IPersistableModel { - public TimeSpan? Duration { get; } - public string Language { get; } - public IReadOnlyList Segments { get; } - public string Text { get; } - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - public IReadOnlyList Words { get; } - protected virtual AudioTranscription JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AudioTranscription(ClientResult result); - protected virtual AudioTranscription PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct AudioTranscriptionFormat : IEquatable { - public AudioTranscriptionFormat(string value); - public static AudioTranscriptionFormat Simple { get; } - public static AudioTranscriptionFormat Srt { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranscriptionFormat Text { get; } - public static AudioTranscriptionFormat Verbose { get; } - public static AudioTranscriptionFormat Vtt { get; } - public readonly bool Equals(AudioTranscriptionFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right); - public static implicit operator AudioTranscriptionFormat(string value); - public static implicit operator AudioTranscriptionFormat?(string value); - public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right); - public override readonly string ToString(); - } - [Flags] - public enum AudioTranscriptionIncludes { + + public partial class AudioTokenLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTokenLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + public string Token { get { throw null; } } + public System.ReadOnlyMemory Utf8Bytes { get { throw null; } } + + protected virtual AudioTokenLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AudioTokenLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTokenLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTokenLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AudioTranscription : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTranscription() { } + public System.TimeSpan? Duration { get { throw null; } } + public string Language { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Segments { get { throw null; } } + public string Text { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Words { get { throw null; } } + + protected virtual AudioTranscription JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AudioTranscription(System.ClientModel.ClientResult result) { throw null; } + protected virtual AudioTranscription PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranscription System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranscription System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct AudioTranscriptionFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AudioTranscriptionFormat(string value) { } + public static AudioTranscriptionFormat Simple { get { throw null; } } + public static AudioTranscriptionFormat Srt { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranscriptionFormat Text { get { throw null; } } + public static AudioTranscriptionFormat Verbose { get { throw null; } } + public static AudioTranscriptionFormat Vtt { get { throw null; } } + + public readonly bool Equals(AudioTranscriptionFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right) { throw null; } + public static implicit operator AudioTranscriptionFormat(string value) { throw null; } + public static implicit operator AudioTranscriptionFormat?(string value) { throw null; } + public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + [System.Flags] + public enum AudioTranscriptionIncludes + { Default = 0, Logprobs = 1 } - public class AudioTranscriptionOptions : IJsonModel, IPersistableModel { - public AudioTranscriptionIncludes Includes { get; set; } - public string Language { get; set; } - public string Prompt { get; set; } - public AudioTranscriptionFormat? ResponseFormat { get; set; } - public float? Temperature { get; set; } - public AudioTimestampGranularities TimestampGranularities { get; set; } - protected virtual AudioTranscriptionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AudioTranscriptionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class AudioTranslation : IJsonModel, IPersistableModel { - public TimeSpan? Duration { get; } - public string Language { get; } - public IReadOnlyList Segments { get; } - public string Text { get; } - protected virtual AudioTranslation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator AudioTranslation(ClientResult result); - protected virtual AudioTranslation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct AudioTranslationFormat : IEquatable { - public AudioTranslationFormat(string value); - public static AudioTranslationFormat Simple { get; } - public static AudioTranslationFormat Srt { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranslationFormat Text { get; } - public static AudioTranslationFormat Verbose { get; } - public static AudioTranslationFormat Vtt { get; } - public readonly bool Equals(AudioTranslationFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right); - public static implicit operator AudioTranslationFormat(string value); - public static implicit operator AudioTranslationFormat?(string value); - public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right); - public override readonly string ToString(); - } - public class AudioTranslationOptions : IJsonModel, IPersistableModel { - public string Prompt { get; set; } - public AudioTranslationFormat? ResponseFormat { get; set; } - public float? Temperature { get; set; } - protected virtual AudioTranslationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual AudioTranslationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GeneratedSpeechFormat : IEquatable { - public GeneratedSpeechFormat(string value); - public static GeneratedSpeechFormat Aac { get; } - public static GeneratedSpeechFormat Flac { get; } - public static GeneratedSpeechFormat Mp3 { get; } - public static GeneratedSpeechFormat Opus { get; } - public static GeneratedSpeechFormat Pcm { get; } - public static GeneratedSpeechFormat Wav { get; } - public readonly bool Equals(GeneratedSpeechFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right); - public static implicit operator GeneratedSpeechFormat(string value); - public static implicit operator GeneratedSpeechFormat?(string value); - public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedSpeechVoice : IEquatable { - public GeneratedSpeechVoice(string value); - public static GeneratedSpeechVoice Alloy { get; } - public static GeneratedSpeechVoice Ash { get; } - public static GeneratedSpeechVoice Ballad { get; } - public static GeneratedSpeechVoice Coral { get; } - public static GeneratedSpeechVoice Echo { get; } - public static GeneratedSpeechVoice Fable { get; } - public static GeneratedSpeechVoice Nova { get; } - public static GeneratedSpeechVoice Onyx { get; } - public static GeneratedSpeechVoice Sage { get; } - public static GeneratedSpeechVoice Shimmer { get; } - public static GeneratedSpeechVoice Verse { get; } - public readonly bool Equals(GeneratedSpeechVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right); - public static implicit operator GeneratedSpeechVoice(string value); - public static implicit operator GeneratedSpeechVoice?(string value); - public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right); - public override readonly string ToString(); - } - public static class OpenAIAudioModelFactory { - public static AudioTranscription AudioTranscription(string language = null, TimeSpan? duration = null, string text = null, IEnumerable words = null, IEnumerable segments = null, IEnumerable transcriptionTokenLogProbabilities = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static AudioTranscription AudioTranscription(string language, TimeSpan? duration, string text, IEnumerable words, IEnumerable segments); - public static AudioTranslation AudioTranslation(string language = null, TimeSpan? duration = null, string text = null, IEnumerable segments = null); - public static TranscribedSegment TranscribedSegment(int id = 0, int seekOffset = 0, TimeSpan startTime = default, TimeSpan endTime = default, string text = null, ReadOnlyMemory tokenIds = default, float temperature = 0, float averageLogProbability = 0, float compressionRatio = 0, float noSpeechProbability = 0); - public static TranscribedWord TranscribedWord(string word = null, TimeSpan startTime = default, TimeSpan endTime = default); - } - public class SpeechGenerationOptions : IJsonModel, IPersistableModel { - public string Instructions { get; set; } - public GeneratedSpeechFormat? ResponseFormat { get; set; } - public float? SpeedRatio { get; set; } - protected virtual SpeechGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual SpeechGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public string Delta { get; } - public string SegmentId { get; } - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public string Text { get; } - public IReadOnlyList TranscriptionTokenLogProbabilities { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingAudioTranscriptionTextSegmentUpdate : StreamingAudioTranscriptionUpdate, IJsonModel, IPersistableModel { - public TimeSpan EndTime { get; } - public string SegmentId { get; } - public string SpeakerLabel { get; } - public TimeSpan StartTime { get; } - public string Text { get; } - protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingAudioTranscriptionUpdate : IJsonModel, IPersistableModel { - protected virtual StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingAudioTranscriptionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct StreamingAudioTranscriptionUpdateKind : IEquatable { - public StreamingAudioTranscriptionUpdateKind(string value); - public static StreamingAudioTranscriptionUpdateKind TranscriptTextDelta { get; } - public static StreamingAudioTranscriptionUpdateKind TranscriptTextDone { get; } - public static StreamingAudioTranscriptionUpdateKind TranscriptTextSegment { get; } - public readonly bool Equals(StreamingAudioTranscriptionUpdateKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right); - public static implicit operator StreamingAudioTranscriptionUpdateKind(string value); - public static implicit operator StreamingAudioTranscriptionUpdateKind?(string value); - public static bool operator !=(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right); - public override readonly string ToString(); - } - public readonly partial struct TranscribedSegment : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public float AverageLogProbability { get; } - public float CompressionRatio { get; } - public TimeSpan EndTime { get; } - public int Id { get; } - public float NoSpeechProbability { get; } - public int SeekOffset { get; } - public TimeSpan StartTime { get; } - public float Temperature { get; } - public string Text { get; } - public ReadOnlyMemory TokenIds { get; } - } - public readonly partial struct TranscribedWord : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public TimeSpan EndTime { get; } - public TimeSpan StartTime { get; } - public string Word { get; } + + public partial class AudioTranscriptionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AudioTranscriptionIncludes Includes { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Prompt { get { throw null; } set { } } + public AudioTranscriptionFormat? ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public AudioTimestampGranularities TimestampGranularities { get { throw null; } set { } } + + protected virtual AudioTranscriptionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AudioTranscriptionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranscriptionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranscriptionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class AudioTranslation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AudioTranslation() { } + public System.TimeSpan? Duration { get { throw null; } } + public string Language { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Segments { get { throw null; } } + public string Text { get { throw null; } } + + protected virtual AudioTranslation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator AudioTranslation(System.ClientModel.ClientResult result) { throw null; } + protected virtual AudioTranslation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranslation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranslation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct AudioTranslationFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AudioTranslationFormat(string value) { } + public static AudioTranslationFormat Simple { get { throw null; } } + public static AudioTranslationFormat Srt { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranslationFormat Text { get { throw null; } } + public static AudioTranslationFormat Verbose { get { throw null; } } + public static AudioTranslationFormat Vtt { get { throw null; } } + + public readonly bool Equals(AudioTranslationFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right) { throw null; } + public static implicit operator AudioTranslationFormat(string value) { throw null; } + public static implicit operator AudioTranslationFormat?(string value) { throw null; } + public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class AudioTranslationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Prompt { get { throw null; } set { } } + public AudioTranslationFormat? ResponseFormat { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + + protected virtual AudioTranslationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual AudioTranslationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AudioTranslationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AudioTranslationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GeneratedSpeechFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedSpeechFormat(string value) { } + public static GeneratedSpeechFormat Aac { get { throw null; } } + public static GeneratedSpeechFormat Flac { get { throw null; } } + public static GeneratedSpeechFormat Mp3 { get { throw null; } } + public static GeneratedSpeechFormat Opus { get { throw null; } } + public static GeneratedSpeechFormat Pcm { get { throw null; } } + public static GeneratedSpeechFormat Wav { get { throw null; } } + + public readonly bool Equals(GeneratedSpeechFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right) { throw null; } + public static implicit operator GeneratedSpeechFormat(string value) { throw null; } + public static implicit operator GeneratedSpeechFormat?(string value) { throw null; } + public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedSpeechVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedSpeechVoice(string value) { } + public static GeneratedSpeechVoice Alloy { get { throw null; } } + public static GeneratedSpeechVoice Ash { get { throw null; } } + public static GeneratedSpeechVoice Ballad { get { throw null; } } + public static GeneratedSpeechVoice Coral { get { throw null; } } + public static GeneratedSpeechVoice Echo { get { throw null; } } + public static GeneratedSpeechVoice Fable { get { throw null; } } + public static GeneratedSpeechVoice Nova { get { throw null; } } + public static GeneratedSpeechVoice Onyx { get { throw null; } } + public static GeneratedSpeechVoice Sage { get { throw null; } } + public static GeneratedSpeechVoice Shimmer { get { throw null; } } + public static GeneratedSpeechVoice Verse { get { throw null; } } + + public readonly bool Equals(GeneratedSpeechVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right) { throw null; } + public static implicit operator GeneratedSpeechVoice(string value) { throw null; } + public static implicit operator GeneratedSpeechVoice?(string value) { throw null; } + public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public static partial class OpenAIAudioModelFactory + { + public static AudioTranscription AudioTranscription(string language = null, System.TimeSpan? duration = null, string text = null, System.Collections.Generic.IEnumerable words = null, System.Collections.Generic.IEnumerable segments = null, System.Collections.Generic.IEnumerable transcriptionTokenLogProbabilities = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static AudioTranscription AudioTranscription(string language, System.TimeSpan? duration, string text, System.Collections.Generic.IEnumerable words, System.Collections.Generic.IEnumerable segments) { throw null; } + public static AudioTranslation AudioTranslation(string language = null, System.TimeSpan? duration = null, string text = null, System.Collections.Generic.IEnumerable segments = null) { throw null; } + public static TranscribedSegment TranscribedSegment(int id = 0, int seekOffset = 0, System.TimeSpan startTime = default, System.TimeSpan endTime = default, string text = null, System.ReadOnlyMemory tokenIds = default, float temperature = 0, float averageLogProbability = 0, float compressionRatio = 0, float noSpeechProbability = 0) { throw null; } + public static TranscribedWord TranscribedWord(string word = null, System.TimeSpan startTime = default, System.TimeSpan endTime = default) { throw null; } + } + public partial class SpeechGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Instructions { get { throw null; } set { } } + public GeneratedSpeechFormat? ResponseFormat { get { throw null; } set { } } + public float? SpeedRatio { get { throw null; } set { } } + + protected virtual SpeechGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual SpeechGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + SpeechGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + SpeechGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextDeltaUpdate() { } + public string Delta { get { throw null; } } + public string SegmentId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextDoneUpdate() { } + public string Text { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TranscriptionTokenLogProbabilities { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingAudioTranscriptionTextSegmentUpdate : StreamingAudioTranscriptionUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionTextSegmentUpdate() { } + public System.TimeSpan EndTime { get { throw null; } } + public string SegmentId { get { throw null; } } + public string SpeakerLabel { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public string Text { get { throw null; } } + + protected override StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionTextSegmentUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionTextSegmentUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingAudioTranscriptionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingAudioTranscriptionUpdate() { } + protected virtual StreamingAudioTranscriptionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingAudioTranscriptionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingAudioTranscriptionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingAudioTranscriptionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct StreamingAudioTranscriptionUpdateKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StreamingAudioTranscriptionUpdateKind(string value) { } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextDelta { get { throw null; } } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextDone { get { throw null; } } + public static StreamingAudioTranscriptionUpdateKind TranscriptTextSegment { get { throw null; } } + + public readonly bool Equals(StreamingAudioTranscriptionUpdateKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right) { throw null; } + public static implicit operator StreamingAudioTranscriptionUpdateKind(string value) { throw null; } + public static implicit operator StreamingAudioTranscriptionUpdateKind?(string value) { throw null; } + public static bool operator !=(StreamingAudioTranscriptionUpdateKind left, StreamingAudioTranscriptionUpdateKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct TranscribedSegment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public float AverageLogProbability { get { throw null; } } + public float CompressionRatio { get { throw null; } } + public System.TimeSpan EndTime { get { throw null; } } + public int Id { get { throw null; } } + public float NoSpeechProbability { get { throw null; } } + public int SeekOffset { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public float Temperature { get { throw null; } } + public string Text { get { throw null; } } + public System.ReadOnlyMemory TokenIds { get { throw null; } } + + readonly TranscribedSegment System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly TranscribedSegment System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct TranscribedWord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.TimeSpan EndTime { get { throw null; } } + public System.TimeSpan StartTime { get { throw null; } } + public string Word { get { throw null; } } + + readonly TranscribedWord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly TranscribedWord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Batch { - public class BatchClient { - protected BatchClient(); - public BatchClient(ApiKeyCredential credential, OpenAIClientOptions options); - public BatchClient(ApiKeyCredential credential); - public BatchClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public BatchClient(AuthenticationPolicy authenticationPolicy); - protected internal BatchClient(ClientPipeline pipeline, OpenAIClientOptions options); - public BatchClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual CreateBatchOperation CreateBatch(BinaryContent content, bool waitUntilCompleted, RequestOptions options = null); - public virtual Task CreateBatchAsync(BinaryContent content, bool waitUntilCompleted, RequestOptions options = null); - public virtual ClientResult GetBatch(string batchId, RequestOptions options); - public virtual Task GetBatchAsync(string batchId, RequestOptions options); - public virtual CollectionResult GetBatches(BatchCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetBatches(string after, int? limit, RequestOptions options); - public virtual AsyncCollectionResult GetBatchesAsync(BatchCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetBatchesAsync(string after, int? limit, RequestOptions options); - } - public class BatchCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual BatchCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual BatchCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class BatchJob : IJsonModel, IPersistableModel { - public DateTimeOffset? CancelledAt { get; } - public DateTimeOffset? CancellingAt { get; } - public DateTimeOffset? CompletedAt { get; } - public string CompletionWindow { get; } - public DateTimeOffset CreatedAt { get; } - public string Endpoint { get; } - public string ErrorFileId { get; } - public DateTimeOffset? ExpiredAt { get; } - public DateTimeOffset? ExpiresAt { get; } - public DateTimeOffset? FailedAt { get; } - public DateTimeOffset? FinalizingAt { get; } - public string Id { get; } - public DateTimeOffset? InProgressAt { get; } - public string InputFileId { get; } - public IDictionary Metadata { get; } - public string Object { get; } - public string OutputFileId { get; } - protected virtual BatchJob JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator BatchJob(ClientResult result); - protected virtual BatchJob PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CreateBatchOperation : OperationResult { - public string BatchId { get; } - public override ContinuationToken? RehydrationToken { get; protected set; } - public virtual ClientResult Cancel(RequestOptions? options); - public virtual Task CancelAsync(RequestOptions? options); - public virtual ClientResult GetBatch(RequestOptions? options); - public virtual Task GetBatchAsync(RequestOptions? options); - public static CreateBatchOperation Rehydrate(BatchClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static CreateBatchOperation Rehydrate(BatchClient client, string batchId, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(BatchClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(BatchClient client, string batchId, CancellationToken cancellationToken = default); - public override ClientResult UpdateStatus(RequestOptions? options = null); - public override ValueTask UpdateStatusAsync(RequestOptions? options = null); + +namespace OpenAI.Batch +{ + public partial class BatchClient + { + protected BatchClient() { } + public BatchClient(BatchClientSettings settings) { } + public BatchClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public BatchClient(System.ClientModel.ApiKeyCredential credential) { } + public BatchClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public BatchClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal BatchClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public BatchClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual CreateBatchOperation CreateBatch(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateBatchAsync(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetBatch(string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetBatchAsync(string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetBatches(BatchCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetBatches(string after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetBatchesAsync(BatchCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetBatchesAsync(string after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + public sealed partial class BatchClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class BatchCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual BatchCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual BatchCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + BatchCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + BatchCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class BatchJob : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal BatchJob() { } + public System.DateTimeOffset? CancelledAt { get { throw null; } } + public System.DateTimeOffset? CancellingAt { get { throw null; } } + public System.DateTimeOffset? CompletedAt { get { throw null; } } + public string CompletionWindow { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Endpoint { get { throw null; } } + public string ErrorFileId { get { throw null; } } + public System.DateTimeOffset? ExpiredAt { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public System.DateTimeOffset? FailedAt { get { throw null; } } + public System.DateTimeOffset? FinalizingAt { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? InProgressAt { get { throw null; } } + public string InputFileId { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Object { get { throw null; } } + public string OutputFileId { get { throw null; } } + + protected virtual BatchJob JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator BatchJob(System.ClientModel.ClientResult result) { throw null; } + protected virtual BatchJob PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + BatchJob System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + BatchJob System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CreateBatchOperation : System.ClientModel.Primitives.OperationResult + { + internal CreateBatchOperation() : base(default!) { } + public string BatchId { get { throw null; } } + public override System.ClientModel.ContinuationToken? RehydrationToken { get { throw null; } protected set { } } + + public virtual System.ClientModel.ClientResult Cancel(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.Threading.Tasks.Task CancelAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.ClientResult GetBatch(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.Threading.Tasks.Task GetBatchAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public static CreateBatchOperation Rehydrate(BatchClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static CreateBatchOperation Rehydrate(BatchClient client, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(BatchClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(BatchClient client, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.ClientModel.ClientResult UpdateStatus(System.ClientModel.Primitives.RequestOptions? options = null) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.ClientModel.Primitives.RequestOptions? options = null) { throw null; } } } -namespace OpenAI.Chat { - public class AssistantChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public AssistantChatMessage(ChatCompletion chatCompletion); - [Obsolete("This constructor is obsolete. Please use the constructor that takes an IEnumerable parameter instead.")] - public AssistantChatMessage(ChatFunctionCall functionCall); - public AssistantChatMessage(params ChatMessageContentPart[] contentParts); - public AssistantChatMessage(ChatOutputAudioReference outputAudioReference); - public AssistantChatMessage(IEnumerable contentParts); - public AssistantChatMessage(IEnumerable toolCalls); - public AssistantChatMessage(string content); - [Obsolete("This property is obsolete. Please use ToolCalls instead.")] - public ChatFunctionCall FunctionCall { get; set; } - public ChatOutputAudioReference OutputAudioReference { get; set; } - public string ParticipantName { get; set; } - public string Refusal { get; set; } - public IList ToolCalls { get; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatAudioOptions : IJsonModel, IPersistableModel { - public ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat); - public ChatOutputAudioFormat OutputAudioFormat { get; } - public ChatOutputAudioVoice OutputAudioVoice { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatAudioOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatAudioOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatClient { - protected ChatClient(); - protected internal ChatClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ChatClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ChatClient(string model, ApiKeyCredential credential); - public ChatClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ChatClient(string model, AuthenticationPolicy authenticationPolicy); - public ChatClient(string model, string apiKey); - public Uri Endpoint { get; } - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CompleteChat(params ChatMessage[] messages); - public virtual ClientResult CompleteChat(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CompleteChat(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> CompleteChatAsync(params ChatMessage[] messages); - public virtual Task CompleteChatAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CompleteChatAsync(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CompleteChatStreaming(params ChatMessage[] messages); - public virtual CollectionResult CompleteChatStreaming(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CompleteChatStreamingAsync(params ChatMessage[] messages); - public virtual AsyncCollectionResult CompleteChatStreamingAsync(IEnumerable messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteChatCompletion(string completionId, RequestOptions options); - public virtual ClientResult DeleteChatCompletion(string completionId, CancellationToken cancellationToken = default); - public virtual Task DeleteChatCompletionAsync(string completionId, RequestOptions options); - public virtual Task> DeleteChatCompletionAsync(string completionId, CancellationToken cancellationToken = default); - public virtual ClientResult GetChatCompletion(string completionId, RequestOptions options); - public virtual ClientResult GetChatCompletion(string completionId, CancellationToken cancellationToken = default); - public virtual Task GetChatCompletionAsync(string completionId, RequestOptions options); - public virtual Task> GetChatCompletionAsync(string completionId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetChatCompletionMessages(string completionId, string after, int? limit, string order, RequestOptions options); - public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, string after, int? limit, string order, RequestOptions options); - public virtual CollectionResult GetChatCompletions(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetChatCompletions(string after, int? limit, string order, IDictionary metadata, string model, RequestOptions options); - public virtual AsyncCollectionResult GetChatCompletionsAsync(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetChatCompletionsAsync(string after, int? limit, string order, IDictionary metadata, string model, RequestOptions options); - public virtual ClientResult UpdateChatCompletion(string completionId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult UpdateChatCompletion(string completionId, IDictionary metadata, CancellationToken cancellationToken = default); - public virtual Task UpdateChatCompletionAsync(string completionId, BinaryContent content, RequestOptions options = null); - public virtual Task> UpdateChatCompletionAsync(string completionId, IDictionary metadata, CancellationToken cancellationToken = default); - } - public class ChatCompletion : IJsonModel, IPersistableModel { - public IReadOnlyList Annotations { get; } - public ChatMessageContent Content { get; } - public IReadOnlyList ContentTokenLogProbabilities { get; } - public DateTimeOffset CreatedAt { get; } - public ChatFinishReason FinishReason { get; } - [Obsolete("This property is obsolete. Please use ToolCalls instead.")] - public ChatFunctionCall FunctionCall { get; } - public string Id { get; } - public string Model { get; } - public ChatOutputAudio OutputAudio { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public IReadOnlyList RefusalTokenLogProbabilities { get; } - public ChatMessageRole Role { get; } - public ChatServiceTier? ServiceTier { get; } - public string SystemFingerprint { get; } - public IReadOnlyList ToolCalls { get; } - public ChatTokenUsage Usage { get; } - protected virtual ChatCompletion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ChatCompletion(ClientResult result); - protected virtual ChatCompletion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatCompletionCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public ChatCompletionCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatCompletionCollectionOrder : IEquatable { - public ChatCompletionCollectionOrder(string value); - public static ChatCompletionCollectionOrder Ascending { get; } - public static ChatCompletionCollectionOrder Descending { get; } - public readonly bool Equals(ChatCompletionCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right); - public static implicit operator ChatCompletionCollectionOrder(string value); - public static implicit operator ChatCompletionCollectionOrder?(string value); - public static bool operator !=(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right); - public override readonly string ToString(); - } - public class ChatCompletionDeletionResult : IJsonModel, IPersistableModel { - public string ChatCompletionId { get; } - public bool Deleted { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ChatCompletionDeletionResult(ClientResult result); - protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatCompletionMessageCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ChatCompletionMessageCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatCompletionMessageCollectionOrder : IEquatable { - public ChatCompletionMessageCollectionOrder(string value); - public static ChatCompletionMessageCollectionOrder Ascending { get; } - public static ChatCompletionMessageCollectionOrder Descending { get; } - public readonly bool Equals(ChatCompletionMessageCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right); - public static implicit operator ChatCompletionMessageCollectionOrder(string value); - public static implicit operator ChatCompletionMessageCollectionOrder?(string value); - public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right); - public override readonly string ToString(); - } - public class ChatCompletionMessageListDatum : IJsonModel, IPersistableModel { - public IReadOnlyList Annotations { get; } - public string Content { get; } - public IList ContentParts { get; } - public string Id { get; } - public ChatOutputAudio OutputAudio { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public IReadOnlyList ToolCalls { get; } - protected virtual ChatCompletionMessageListDatum JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionMessageListDatum PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatCompletionOptions : IJsonModel, IPersistableModel { - public bool? AllowParallelToolCalls { get; set; } - public ChatAudioOptions AudioOptions { get; set; } - public string EndUserId { get; set; } - public float? FrequencyPenalty { get; set; } - [Obsolete("This property is obsolete. Please use ToolChoice instead.")] - public ChatFunctionChoice FunctionChoice { get; set; } - [Obsolete("This property is obsolete. Please use Tools instead.")] - public IList Functions { get; } - public bool? IncludeLogProbabilities { get; set; } - public IDictionary LogitBiases { get; } - public int? MaxOutputTokenCount { get; set; } - public IDictionary Metadata { get; } - public ChatOutputPrediction OutputPrediction { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public float? PresencePenalty { get; set; } - public ChatReasoningEffortLevel? ReasoningEffortLevel { get; set; } - public ChatResponseFormat ResponseFormat { get; set; } - public ChatResponseModalities ResponseModalities { get; set; } - public string SafetyIdentifier { get; set; } - public long? Seed { get; set; } - public ChatServiceTier? ServiceTier { get; set; } - public IList StopSequences { get; } - public bool? StoredOutputEnabled { get; set; } - public float? Temperature { get; set; } - public ChatToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - public ChatWebSearchOptions WebSearchOptions { get; set; } - protected virtual ChatCompletionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatCompletionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatFinishReason { + +namespace OpenAI.Chat +{ + public partial class AssistantChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AssistantChatMessage(ChatCompletion chatCompletion) { } + [System.Obsolete("This constructor is obsolete. Please use the constructor that takes an IEnumerable parameter instead.")] + public AssistantChatMessage(ChatFunctionCall functionCall) { } + public AssistantChatMessage(params ChatMessageContentPart[] contentParts) { } + public AssistantChatMessage(ChatOutputAudioReference outputAudioReference) { } + public AssistantChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public AssistantChatMessage(System.Collections.Generic.IEnumerable toolCalls) { } + public AssistantChatMessage(string content) { } + [System.Obsolete("This property is obsolete. Please use ToolCalls instead.")] + public ChatFunctionCall FunctionCall { get { throw null; } set { } } + public ChatOutputAudioReference OutputAudioReference { get { throw null; } set { } } + public string ParticipantName { get { throw null; } set { } } + public string Refusal { get { throw null; } set { } } + public System.Collections.Generic.IList ToolCalls { get { throw null; } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AssistantChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AssistantChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatAudioOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat) { } + public ChatOutputAudioFormat OutputAudioFormat { get { throw null; } } + public ChatOutputAudioVoice OutputAudioVoice { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatAudioOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatAudioOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatAudioOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatAudioOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatClient + { + protected ChatClient() { } + public ChatClient(ChatClientSettings settings) { } + protected internal ChatClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ChatClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ChatClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public ChatClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ChatClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ChatClient(string model, string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CompleteChat(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.ClientResult CompleteChat(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CompleteChat(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CompleteChatAsync(params ChatMessage[] messages) { throw null; } + public virtual System.Threading.Tasks.Task CompleteChatAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CompleteChatAsync(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CompleteChatStreaming(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.CollectionResult CompleteChatStreaming(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CompleteChatStreamingAsync(params ChatMessage[] messages) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CompleteChatStreamingAsync(System.Collections.Generic.IEnumerable messages, ChatCompletionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteChatCompletion(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteChatCompletion(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteChatCompletionAsync(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteChatCompletionAsync(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetChatCompletion(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetChatCompletion(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetChatCompletionAsync(string completionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetChatCompletionAsync(string completionId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetChatCompletionMessages(string completionId, string after, int? limit, string order, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetChatCompletionMessagesAsync(string completionId, string after, int? limit, string order, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetChatCompletions(ChatCompletionCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetChatCompletions(string after, int? limit, string order, System.Collections.Generic.IDictionary metadata, string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetChatCompletionsAsync(ChatCompletionCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetChatCompletionsAsync(string after, int? limit, string order, System.Collections.Generic.IDictionary metadata, string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult UpdateChatCompletion(string completionId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateChatCompletion(string completionId, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task UpdateChatCompletionAsync(string completionId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateChatCompletionAsync(string completionId, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public sealed partial class ChatClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ChatCompletion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletion() { } + public System.Collections.Generic.IReadOnlyList Annotations { get { throw null; } } + public ChatMessageContent Content { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ContentTokenLogProbabilities { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ChatFinishReason FinishReason { get { throw null; } } + + [System.Obsolete("This property is obsolete. Please use ToolCalls instead.")] + public ChatFunctionCall FunctionCall { get { throw null; } } + public string Id { get { throw null; } } + public string Model { get { throw null; } } + public ChatOutputAudio OutputAudio { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RefusalTokenLogProbabilities { get { throw null; } } + public ChatMessageRole Role { get { throw null; } } + public ChatServiceTier? ServiceTier { get { throw null; } } + public string SystemFingerprint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + public ChatTokenUsage Usage { get { throw null; } } + + protected virtual ChatCompletion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ChatCompletion(System.ClientModel.ClientResult result) { throw null; } + protected virtual ChatCompletion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatCompletionCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public ChatCompletionCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatCompletionCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatCompletionCollectionOrder(string value) { } + public static ChatCompletionCollectionOrder Ascending { get { throw null; } } + public static ChatCompletionCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ChatCompletionCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right) { throw null; } + public static implicit operator ChatCompletionCollectionOrder(string value) { throw null; } + public static implicit operator ChatCompletionCollectionOrder?(string value) { throw null; } + public static bool operator !=(ChatCompletionCollectionOrder left, ChatCompletionCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatCompletionDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletionDeletionResult() { } + public string ChatCompletionId { get { throw null; } } + public bool Deleted { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ChatCompletionDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatCompletionMessageCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ChatCompletionMessageCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionMessageCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionMessageCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatCompletionMessageCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatCompletionMessageCollectionOrder(string value) { } + public static ChatCompletionMessageCollectionOrder Ascending { get { throw null; } } + public static ChatCompletionMessageCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ChatCompletionMessageCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right) { throw null; } + public static implicit operator ChatCompletionMessageCollectionOrder(string value) { throw null; } + public static implicit operator ChatCompletionMessageCollectionOrder?(string value) { throw null; } + public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatCompletionMessageListDatum : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatCompletionMessageListDatum() { } + public System.Collections.Generic.IReadOnlyList Annotations { get { throw null; } } + public string Content { get { throw null; } } + public System.Collections.Generic.IList ContentParts { get { throw null; } } + public string Id { get { throw null; } } + public ChatOutputAudio OutputAudio { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCalls { get { throw null; } } + + protected virtual ChatCompletionMessageListDatum JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionMessageListDatum PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionMessageListDatum System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionMessageListDatum System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatCompletionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? AllowParallelToolCalls { get { throw null; } set { } } + public ChatAudioOptions AudioOptions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public float? FrequencyPenalty { get { throw null; } set { } } + + [System.Obsolete("This property is obsolete. Please use ToolChoice instead.")] + public ChatFunctionChoice FunctionChoice { get { throw null; } set { } } + + [System.Obsolete("This property is obsolete. Please use Tools instead.")] + public System.Collections.Generic.IList Functions { get { throw null; } } + public bool? IncludeLogProbabilities { get { throw null; } set { } } + public System.Collections.Generic.IDictionary LogitBiases { get { throw null; } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public ChatOutputPrediction OutputPrediction { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public float? PresencePenalty { get { throw null; } set { } } + public ChatReasoningEffortLevel? ReasoningEffortLevel { get { throw null; } set { } } + public ChatResponseFormat ResponseFormat { get { throw null; } set { } } + public ChatResponseModalities ResponseModalities { get { throw null; } set { } } + public string SafetyIdentifier { get { throw null; } set { } } + public long? Seed { get { throw null; } set { } } + public ChatServiceTier? ServiceTier { get { throw null; } set { } } + public System.Collections.Generic.IList StopSequences { get { throw null; } } + public bool? StoredOutputEnabled { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ChatToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + public ChatWebSearchOptions WebSearchOptions { get { throw null; } set { } } + + protected virtual ChatCompletionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatCompletionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatCompletionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatCompletionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatFinishReason + { Stop = 0, Length = 1, ContentFilter = 2, ToolCalls = 3, FunctionCall = 4 } - [Obsolete("This class is obsolete. Please use ChatTool instead.")] - public class ChatFunction : IJsonModel, IPersistableModel { - public ChatFunction(string functionName); - public string FunctionDescription { get; set; } - public string FunctionName { get; } - public BinaryData FunctionParameters { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatFunction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatFunction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ChatToolCall instead.")] - public class ChatFunctionCall : IJsonModel, IPersistableModel { - public ChatFunctionCall(string functionName, BinaryData functionArguments); - public BinaryData FunctionArguments { get; } - public string FunctionName { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatFunctionCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatFunctionCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ChatToolChoice instead.")] - public class ChatFunctionChoice : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ChatFunctionChoice CreateAutoChoice(); - public static ChatFunctionChoice CreateNamedChoice(string functionName); - public static ChatFunctionChoice CreateNoneChoice(); - protected virtual ChatFunctionChoice JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatFunctionChoice PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatImageDetailLevel : IEquatable { - public ChatImageDetailLevel(string value); - public static ChatImageDetailLevel Auto { get; } - public static ChatImageDetailLevel High { get; } - public static ChatImageDetailLevel Low { get; } - public readonly bool Equals(ChatImageDetailLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right); - public static implicit operator ChatImageDetailLevel(string value); - public static implicit operator ChatImageDetailLevel?(string value); - public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right); - public override readonly string ToString(); - } - public readonly partial struct ChatInputAudioFormat : IEquatable { - public ChatInputAudioFormat(string value); - public static ChatInputAudioFormat Mp3 { get; } - public static ChatInputAudioFormat Wav { get; } - public readonly bool Equals(ChatInputAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right); - public static implicit operator ChatInputAudioFormat(string value); - public static implicit operator ChatInputAudioFormat?(string value); - public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right); - public override readonly string ToString(); - } - public class ChatInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int CachedTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatMessage : IJsonModel, IPersistableModel { - public ChatMessageContent Content { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static AssistantChatMessage CreateAssistantMessage(ChatCompletion chatCompletion); - public static AssistantChatMessage CreateAssistantMessage(ChatFunctionCall functionCall); - public static AssistantChatMessage CreateAssistantMessage(params ChatMessageContentPart[] contentParts); - public static AssistantChatMessage CreateAssistantMessage(ChatOutputAudioReference outputAudioReference); - public static AssistantChatMessage CreateAssistantMessage(IEnumerable contentParts); - public static AssistantChatMessage CreateAssistantMessage(IEnumerable toolCalls); - public static AssistantChatMessage CreateAssistantMessage(string content); - public static DeveloperChatMessage CreateDeveloperMessage(params ChatMessageContentPart[] contentParts); - public static DeveloperChatMessage CreateDeveloperMessage(IEnumerable contentParts); - public static DeveloperChatMessage CreateDeveloperMessage(string content); - [Obsolete("This method is obsolete. Please use CreateToolMessage instead.")] - public static FunctionChatMessage CreateFunctionMessage(string functionName, string content); - public static SystemChatMessage CreateSystemMessage(params ChatMessageContentPart[] contentParts); - public static SystemChatMessage CreateSystemMessage(IEnumerable contentParts); - public static SystemChatMessage CreateSystemMessage(string content); - public static ToolChatMessage CreateToolMessage(string toolCallId, params ChatMessageContentPart[] contentParts); - public static ToolChatMessage CreateToolMessage(string toolCallId, IEnumerable contentParts); - public static ToolChatMessage CreateToolMessage(string toolCallId, string content); - public static UserChatMessage CreateUserMessage(params ChatMessageContentPart[] contentParts); - public static UserChatMessage CreateUserMessage(IEnumerable contentParts); - public static UserChatMessage CreateUserMessage(string content); - protected virtual ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ChatMessage(string content); - protected virtual ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatMessageAnnotation : IJsonModel, IPersistableModel { - public int EndIndex { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public int StartIndex { get; } - public string WebResourceTitle { get; } - public Uri WebResourceUri { get; } - protected virtual ChatMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatMessageContent : ObjectModel.Collection { - public ChatMessageContent(); - public ChatMessageContent(params ChatMessageContentPart[] contentParts); - public ChatMessageContent(IEnumerable contentParts); - public ChatMessageContent(string content); - } - public class ChatMessageContentPart : IJsonModel, IPersistableModel { - public BinaryData FileBytes { get; } - public string FileBytesMediaType { get; } - public string FileId { get; } - public string Filename { get; } - public BinaryData ImageBytes { get; } - public string ImageBytesMediaType { get; } - public ChatImageDetailLevel? ImageDetailLevel { get; } - public Uri ImageUri { get; } - public BinaryData InputAudioBytes { get; } - public ChatInputAudioFormat? InputAudioFormat { get; } - public ChatMessageContentPartKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public string Text { get; } - public static ChatMessageContentPart CreateFilePart(BinaryData fileBytes, string fileBytesMediaType, string filename); - public static ChatMessageContentPart CreateFilePart(string fileId); - public static ChatMessageContentPart CreateImagePart(BinaryData imageBytes, string imageBytesMediaType, ChatImageDetailLevel? imageDetailLevel = null); - public static ChatMessageContentPart CreateImagePart(Uri imageUri, ChatImageDetailLevel? imageDetailLevel = null); - public static ChatMessageContentPart CreateInputAudioPart(BinaryData inputAudioBytes, ChatInputAudioFormat inputAudioFormat); - public static ChatMessageContentPart CreateRefusalPart(string refusal); - public static ChatMessageContentPart CreateTextPart(string text); - protected virtual ChatMessageContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ChatMessageContentPart(string text); - protected virtual ChatMessageContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatMessageContentPartKind { + + [System.Obsolete("This class is obsolete. Please use ChatTool instead.")] + public partial class ChatFunction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatFunction(string functionName) { } + public string FunctionDescription { get { throw null; } set { } } + public string FunctionName { get { throw null; } } + public System.BinaryData FunctionParameters { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatFunction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatFunction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ChatToolCall instead.")] + public partial class ChatFunctionCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatFunctionCall(string functionName, System.BinaryData functionArguments) { } + public System.BinaryData FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatFunctionCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatFunctionCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunctionCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunctionCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ChatToolChoice instead.")] + public partial class ChatFunctionChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatFunctionChoice() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatFunctionChoice CreateAutoChoice() { throw null; } + public static ChatFunctionChoice CreateNamedChoice(string functionName) { throw null; } + public static ChatFunctionChoice CreateNoneChoice() { throw null; } + protected virtual ChatFunctionChoice JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatFunctionChoice PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatFunctionChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatFunctionChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatImageDetailLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatImageDetailLevel(string value) { } + public static ChatImageDetailLevel Auto { get { throw null; } } + public static ChatImageDetailLevel High { get { throw null; } } + public static ChatImageDetailLevel Low { get { throw null; } } + + public readonly bool Equals(ChatImageDetailLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right) { throw null; } + public static implicit operator ChatImageDetailLevel(string value) { throw null; } + public static implicit operator ChatImageDetailLevel?(string value) { throw null; } + public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct ChatInputAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatInputAudioFormat(string value) { } + public static ChatInputAudioFormat Mp3 { get { throw null; } } + public static ChatInputAudioFormat Wav { get { throw null; } } + + public readonly bool Equals(ChatInputAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right) { throw null; } + public static implicit operator ChatInputAudioFormat(string value) { throw null; } + public static implicit operator ChatInputAudioFormat?(string value) { throw null; } + public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatInputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int CachedTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessage() { } + public ChatMessageContent Content { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static AssistantChatMessage CreateAssistantMessage(ChatCompletion chatCompletion) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(ChatFunctionCall functionCall) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(ChatOutputAudioReference outputAudioReference) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(System.Collections.Generic.IEnumerable toolCalls) { throw null; } + public static AssistantChatMessage CreateAssistantMessage(string content) { throw null; } + public static DeveloperChatMessage CreateDeveloperMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static DeveloperChatMessage CreateDeveloperMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static DeveloperChatMessage CreateDeveloperMessage(string content) { throw null; } + [System.Obsolete("This method is obsolete. Please use CreateToolMessage instead.")] + public static FunctionChatMessage CreateFunctionMessage(string functionName, string content) { throw null; } + public static SystemChatMessage CreateSystemMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static SystemChatMessage CreateSystemMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static SystemChatMessage CreateSystemMessage(string content) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, params ChatMessageContentPart[] contentParts) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static ToolChatMessage CreateToolMessage(string toolCallId, string content) { throw null; } + public static UserChatMessage CreateUserMessage(params ChatMessageContentPart[] contentParts) { throw null; } + public static UserChatMessage CreateUserMessage(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static UserChatMessage CreateUserMessage(string content) { throw null; } + protected virtual ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ChatMessage(string content) { throw null; } + protected virtual ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatMessageAnnotation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessageAnnotation() { } + public int EndIndex { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int StartIndex { get { throw null; } } + public string WebResourceTitle { get { throw null; } } + public System.Uri WebResourceUri { get { throw null; } } + + protected virtual ChatMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatMessageContent : System.Collections.ObjectModel.Collection + { + public ChatMessageContent() { } + public ChatMessageContent(params ChatMessageContentPart[] contentParts) { } + public ChatMessageContent(System.Collections.Generic.IEnumerable contentParts) { } + public ChatMessageContent(string content) { } + } + + public partial class ChatMessageContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatMessageContentPart() { } + public System.BinaryData FileBytes { get { throw null; } } + public string FileBytesMediaType { get { throw null; } } + public string FileId { get { throw null; } } + public string Filename { get { throw null; } } + public System.BinaryData ImageBytes { get { throw null; } } + public string ImageBytesMediaType { get { throw null; } } + public ChatImageDetailLevel? ImageDetailLevel { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + public System.BinaryData InputAudioBytes { get { throw null; } } + public ChatInputAudioFormat? InputAudioFormat { get { throw null; } } + public ChatMessageContentPartKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + + public static ChatMessageContentPart CreateFilePart(System.BinaryData fileBytes, string fileBytesMediaType, string filename) { throw null; } + public static ChatMessageContentPart CreateFilePart(string fileId) { throw null; } + public static ChatMessageContentPart CreateImagePart(System.BinaryData imageBytes, string imageBytesMediaType, ChatImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ChatMessageContentPart CreateImagePart(System.Uri imageUri, ChatImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ChatMessageContentPart CreateInputAudioPart(System.BinaryData inputAudioBytes, ChatInputAudioFormat inputAudioFormat) { throw null; } + public static ChatMessageContentPart CreateRefusalPart(string refusal) { throw null; } + public static ChatMessageContentPart CreateTextPart(string text) { throw null; } + protected virtual ChatMessageContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ChatMessageContentPart(string text) { throw null; } + protected virtual ChatMessageContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatMessageContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatMessageContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatMessageContentPartKind + { Text = 0, Refusal = 1, Image = 2, InputAudio = 3, File = 4 } - public enum ChatMessageRole { + + public enum ChatMessageRole + { System = 0, User = 1, Assistant = 2, @@ -1743,719 +2974,1177 @@ public enum ChatMessageRole { Function = 4, Developer = 5 } - public class ChatOutputAudio : IJsonModel, IPersistableModel { - public BinaryData AudioBytes { get; } - public DateTimeOffset ExpiresAt { get; } - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string Transcript { get; } - protected virtual ChatOutputAudio JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputAudio PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatOutputAudioFormat : IEquatable { - public ChatOutputAudioFormat(string value); - public static ChatOutputAudioFormat Aac { get; } - public static ChatOutputAudioFormat Flac { get; } - public static ChatOutputAudioFormat Mp3 { get; } - public static ChatOutputAudioFormat Opus { get; } - public static ChatOutputAudioFormat Pcm16 { get; } - public static ChatOutputAudioFormat Wav { get; } - public readonly bool Equals(ChatOutputAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatOutputAudioFormat left, ChatOutputAudioFormat right); - public static implicit operator ChatOutputAudioFormat(string value); - public static implicit operator ChatOutputAudioFormat?(string value); - public static bool operator !=(ChatOutputAudioFormat left, ChatOutputAudioFormat right); - public override readonly string ToString(); - } - public class ChatOutputAudioReference : IJsonModel, IPersistableModel { - public ChatOutputAudioReference(string id); - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatOutputAudioReference JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputAudioReference PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatOutputAudioVoice : IEquatable { - public ChatOutputAudioVoice(string value); - public static ChatOutputAudioVoice Alloy { get; } - public static ChatOutputAudioVoice Ash { get; } - public static ChatOutputAudioVoice Ballad { get; } - public static ChatOutputAudioVoice Coral { get; } - public static ChatOutputAudioVoice Echo { get; } - public static ChatOutputAudioVoice Fable { get; } - public static ChatOutputAudioVoice Nova { get; } - public static ChatOutputAudioVoice Onyx { get; } - public static ChatOutputAudioVoice Sage { get; } - public static ChatOutputAudioVoice Shimmer { get; } - public static ChatOutputAudioVoice Verse { get; } - public readonly bool Equals(ChatOutputAudioVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right); - public static implicit operator ChatOutputAudioVoice(string value); - public static implicit operator ChatOutputAudioVoice?(string value); - public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right); - public override readonly string ToString(); - } - public class ChatOutputPrediction : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ChatOutputPrediction CreateStaticContentPrediction(IEnumerable staticContentParts); - public static ChatOutputPrediction CreateStaticContentPrediction(string staticContent); - protected virtual ChatOutputPrediction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputPrediction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatOutputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AcceptedPredictionTokenCount { get; } - public int AudioTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public int ReasoningTokenCount { get; } - public int RejectedPredictionTokenCount { get; } - protected virtual ChatOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ChatReasoningEffortLevel : IEquatable { - public ChatReasoningEffortLevel(string value); - public static ChatReasoningEffortLevel High { get; } - public static ChatReasoningEffortLevel Low { get; } - public static ChatReasoningEffortLevel Medium { get; } - public static ChatReasoningEffortLevel Minimal { get; } - public static ChatReasoningEffortLevel None { get; } - public readonly bool Equals(ChatReasoningEffortLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right); - public static implicit operator ChatReasoningEffortLevel(string value); - public static implicit operator ChatReasoningEffortLevel?(string value); - public static bool operator !=(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right); - public override readonly string ToString(); - } - public class ChatResponseFormat : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ChatResponseFormat CreateJsonObjectFormat(); - public static ChatResponseFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null); - public static ChatResponseFormat CreateTextFormat(); - protected virtual ChatResponseFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatResponseFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Flags] - public enum ChatResponseModalities { + + public partial class ChatOutputAudio : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputAudio() { } + public System.BinaryData AudioBytes { get { throw null; } } + public System.DateTimeOffset ExpiresAt { get { throw null; } } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Transcript { get { throw null; } } + + protected virtual ChatOutputAudio JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputAudio PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputAudio System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputAudio System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatOutputAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatOutputAudioFormat(string value) { } + public static ChatOutputAudioFormat Aac { get { throw null; } } + public static ChatOutputAudioFormat Flac { get { throw null; } } + public static ChatOutputAudioFormat Mp3 { get { throw null; } } + public static ChatOutputAudioFormat Opus { get { throw null; } } + public static ChatOutputAudioFormat Pcm16 { get { throw null; } } + public static ChatOutputAudioFormat Wav { get { throw null; } } + + public readonly bool Equals(ChatOutputAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatOutputAudioFormat left, ChatOutputAudioFormat right) { throw null; } + public static implicit operator ChatOutputAudioFormat(string value) { throw null; } + public static implicit operator ChatOutputAudioFormat?(string value) { throw null; } + public static bool operator !=(ChatOutputAudioFormat left, ChatOutputAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatOutputAudioReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ChatOutputAudioReference(string id) { } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatOutputAudioReference JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputAudioReference PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputAudioReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputAudioReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatOutputAudioVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatOutputAudioVoice(string value) { } + public static ChatOutputAudioVoice Alloy { get { throw null; } } + public static ChatOutputAudioVoice Ash { get { throw null; } } + public static ChatOutputAudioVoice Ballad { get { throw null; } } + public static ChatOutputAudioVoice Coral { get { throw null; } } + public static ChatOutputAudioVoice Echo { get { throw null; } } + public static ChatOutputAudioVoice Fable { get { throw null; } } + public static ChatOutputAudioVoice Nova { get { throw null; } } + public static ChatOutputAudioVoice Onyx { get { throw null; } } + public static ChatOutputAudioVoice Sage { get { throw null; } } + public static ChatOutputAudioVoice Shimmer { get { throw null; } } + public static ChatOutputAudioVoice Verse { get { throw null; } } + + public readonly bool Equals(ChatOutputAudioVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right) { throw null; } + public static implicit operator ChatOutputAudioVoice(string value) { throw null; } + public static implicit operator ChatOutputAudioVoice?(string value) { throw null; } + public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatOutputPrediction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputPrediction() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatOutputPrediction CreateStaticContentPrediction(System.Collections.Generic.IEnumerable staticContentParts) { throw null; } + public static ChatOutputPrediction CreateStaticContentPrediction(string staticContent) { throw null; } + protected virtual ChatOutputPrediction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputPrediction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputPrediction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputPrediction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatOutputTokenUsageDetails() { } + public int AcceptedPredictionTokenCount { get { throw null; } } + public int AudioTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int ReasoningTokenCount { get { throw null; } } + public int RejectedPredictionTokenCount { get { throw null; } } + + protected virtual ChatOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ChatReasoningEffortLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatReasoningEffortLevel(string value) { } + public static ChatReasoningEffortLevel High { get { throw null; } } + public static ChatReasoningEffortLevel Low { get { throw null; } } + public static ChatReasoningEffortLevel Medium { get { throw null; } } + public static ChatReasoningEffortLevel Minimal { get { throw null; } } + public static ChatReasoningEffortLevel None { get { throw null; } } + + public readonly bool Equals(ChatReasoningEffortLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right) { throw null; } + public static implicit operator ChatReasoningEffortLevel(string value) { throw null; } + public static implicit operator ChatReasoningEffortLevel?(string value) { throw null; } + public static bool operator !=(ChatReasoningEffortLevel left, ChatReasoningEffortLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatResponseFormat : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatResponseFormat() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatResponseFormat CreateJsonObjectFormat() { throw null; } + public static ChatResponseFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, System.BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null) { throw null; } + public static ChatResponseFormat CreateTextFormat() { throw null; } + protected virtual ChatResponseFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatResponseFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatResponseFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatResponseFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Flags] + public enum ChatResponseModalities + { Default = 0, Text = 1, Audio = 2 } - public readonly partial struct ChatServiceTier : IEquatable { - public ChatServiceTier(string value); - public static ChatServiceTier Auto { get; } - public static ChatServiceTier Default { get; } - public static ChatServiceTier Flex { get; } - public static ChatServiceTier Scale { get; } - public readonly bool Equals(ChatServiceTier other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ChatServiceTier left, ChatServiceTier right); - public static implicit operator ChatServiceTier(string value); - public static implicit operator ChatServiceTier?(string value); - public static bool operator !=(ChatServiceTier left, ChatServiceTier right); - public override readonly string ToString(); - } - public class ChatTokenLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string Token { get; } - public IReadOnlyList TopLogProbabilities { get; } - public ReadOnlyMemory? Utf8Bytes { get; } - protected virtual ChatTokenLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatTokenLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTokenTopLogProbabilityDetails : IJsonModel, IPersistableModel { - public float LogProbability { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string Token { get; } - public ReadOnlyMemory? Utf8Bytes { get; } - protected virtual ChatTokenTopLogProbabilityDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatTokenTopLogProbabilityDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public ChatInputTokenUsageDetails InputTokenDetails { get; } - public int OutputTokenCount { get; } - public ChatOutputTokenUsageDetails OutputTokenDetails { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; } - protected virtual ChatTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatTool : IJsonModel, IPersistableModel { - public string FunctionDescription { get; } - public string FunctionName { get; } - public BinaryData FunctionParameters { get; } - public bool? FunctionSchemaIsStrict { get; } - public ChatToolKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ChatTool CreateFunctionTool(string functionName, string functionDescription = null, BinaryData functionParameters = null, bool? functionSchemaIsStrict = null); - protected virtual ChatTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ChatToolCall : IJsonModel, IPersistableModel { - public BinaryData FunctionArguments { get; } - public string FunctionName { get; } - public string Id { get; set; } - public ChatToolCallKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ChatToolCall CreateFunctionToolCall(string id, string functionName, BinaryData functionArguments); - protected virtual ChatToolCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatToolCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatToolCallKind { + + public readonly partial struct ChatServiceTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChatServiceTier(string value) { } + public static ChatServiceTier Auto { get { throw null; } } + public static ChatServiceTier Default { get { throw null; } } + public static ChatServiceTier Flex { get { throw null; } } + public static ChatServiceTier Scale { get { throw null; } } + + public readonly bool Equals(ChatServiceTier other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ChatServiceTier left, ChatServiceTier right) { throw null; } + public static implicit operator ChatServiceTier(string value) { throw null; } + public static implicit operator ChatServiceTier?(string value) { throw null; } + public static bool operator !=(ChatServiceTier left, ChatServiceTier right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ChatTokenLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Token { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TopLogProbabilities { get { throw null; } } + public System.ReadOnlyMemory? Utf8Bytes { get { throw null; } } + + protected virtual ChatTokenLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatTokenLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTokenTopLogProbabilityDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenTopLogProbabilityDetails() { } + public float LogProbability { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Token { get { throw null; } } + public System.ReadOnlyMemory? Utf8Bytes { get { throw null; } } + + protected virtual ChatTokenTopLogProbabilityDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatTokenTopLogProbabilityDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenTopLogProbabilityDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenTopLogProbabilityDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public ChatInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public ChatOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual ChatTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatTool() { } + public string FunctionDescription { get { throw null; } } + public string FunctionName { get { throw null; } } + public System.BinaryData FunctionParameters { get { throw null; } } + public bool? FunctionSchemaIsStrict { get { throw null; } } + public ChatToolKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatTool CreateFunctionTool(string functionName, string functionDescription = null, System.BinaryData functionParameters = null, bool? functionSchemaIsStrict = null) { throw null; } + protected virtual ChatTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ChatToolCall : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatToolCall() { } + public System.BinaryData FunctionArguments { get { throw null; } } + public string FunctionName { get { throw null; } } + public string Id { get { throw null; } set { } } + public ChatToolCallKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatToolCall CreateFunctionToolCall(string id, string functionName, System.BinaryData functionArguments) { throw null; } + protected virtual ChatToolCall JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatToolCall PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatToolCall System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatToolCall System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatToolCallKind + { Function = 0 } - public class ChatToolChoice : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ChatToolChoice CreateAutoChoice(); - public static ChatToolChoice CreateFunctionChoice(string functionName); - public static ChatToolChoice CreateNoneChoice(); - public static ChatToolChoice CreateRequiredChoice(); - protected virtual ChatToolChoice JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatToolChoice PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ChatToolKind { + + public partial class ChatToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ChatToolChoice() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ChatToolChoice CreateAutoChoice() { throw null; } + public static ChatToolChoice CreateFunctionChoice(string functionName) { throw null; } + public static ChatToolChoice CreateNoneChoice() { throw null; } + public static ChatToolChoice CreateRequiredChoice() { throw null; } + protected virtual ChatToolChoice JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatToolChoice PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ChatToolKind + { Function = 0 } - public class ChatWebSearchOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ChatWebSearchOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ChatWebSearchOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class DeveloperChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public DeveloperChatMessage(params ChatMessageContentPart[] contentParts); - public DeveloperChatMessage(IEnumerable contentParts); - public DeveloperChatMessage(string content); - public string ParticipantName { get; set; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use ToolChatMessage instead.")] - public class FunctionChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public FunctionChatMessage(string functionName, string content); - public string FunctionName { get; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIChatModelFactory { - public static ChatCompletion ChatCompletion(string id = null, ChatFinishReason finishReason = ChatFinishReason.Stop, ChatMessageContent content = null, string refusal = null, IEnumerable toolCalls = null, ChatMessageRole role = ChatMessageRole.System, ChatFunctionCall functionCall = null, IEnumerable contentTokenLogProbabilities = null, IEnumerable refusalTokenLogProbabilities = null, DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, ChatOutputAudio outputAudio = null, IEnumerable messageAnnotations = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatCompletion ChatCompletion(string id, ChatFinishReason finishReason, ChatMessageContent content, string refusal, IEnumerable toolCalls, ChatMessageRole role, ChatFunctionCall functionCall, IEnumerable contentTokenLogProbabilities, IEnumerable refusalTokenLogProbabilities, DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage); - public static ChatCompletionMessageListDatum ChatCompletionMessageListDatum(string id, string content, string refusal, ChatMessageRole role, IList contentParts = null, IList toolCalls = null, IList annotations = null, string functionName = null, string functionArguments = null, ChatOutputAudio outputAudio = null); - public static ChatInputTokenUsageDetails ChatInputTokenUsageDetails(int audioTokenCount = 0, int cachedTokenCount = 0); - public static ChatMessageAnnotation ChatMessageAnnotation(int startIndex = 0, int endIndex = 0, Uri webResourceUri = null, string webResourceTitle = null); - public static ChatOutputAudio ChatOutputAudio(BinaryData audioBytes, string id = null, string transcript = null, DateTimeOffset expiresAt = default); - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount = 0, int audioTokenCount = 0, int acceptedPredictionTokenCount = 0, int rejectedPredictionTokenCount = 0); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount, int audioTokenCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount); - public static ChatTokenLogProbabilityDetails ChatTokenLogProbabilityDetails(string token = null, float logProbability = 0, ReadOnlyMemory? utf8Bytes = null, IEnumerable topLogProbabilities = null); - public static ChatTokenTopLogProbabilityDetails ChatTokenTopLogProbabilityDetails(string token = null, float logProbability = 0, ReadOnlyMemory? utf8Bytes = null); - public static ChatTokenUsage ChatTokenUsage(int outputTokenCount = 0, int inputTokenCount = 0, int totalTokenCount = 0, ChatOutputTokenUsageDetails outputTokenDetails = null, ChatInputTokenUsageDetails inputTokenDetails = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ChatTokenUsage ChatTokenUsage(int outputTokenCount, int inputTokenCount, int totalTokenCount, ChatOutputTokenUsageDetails outputTokenDetails); - public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId = null, ChatMessageContent contentUpdate = null, StreamingChatFunctionCallUpdate functionCallUpdate = null, IEnumerable toolCallUpdates = null, ChatMessageRole? role = null, string refusalUpdate = null, IEnumerable contentTokenLogProbabilities = null, IEnumerable refusalTokenLogProbabilities = null, ChatFinishReason? finishReason = null, DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, StreamingChatOutputAudioUpdate outputAudioUpdate = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId, ChatMessageContent contentUpdate, StreamingChatFunctionCallUpdate functionCallUpdate, IEnumerable toolCallUpdates, ChatMessageRole? role, string refusalUpdate, IEnumerable contentTokenLogProbabilities, IEnumerable refusalTokenLogProbabilities, ChatFinishReason? finishReason, DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage); - [Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] - public static StreamingChatFunctionCallUpdate StreamingChatFunctionCallUpdate(string functionName = null, BinaryData functionArgumentsUpdate = null); - public static StreamingChatOutputAudioUpdate StreamingChatOutputAudioUpdate(string id = null, DateTimeOffset? expiresAt = null, string transcriptUpdate = null, BinaryData audioBytesUpdate = null); - public static StreamingChatToolCallUpdate StreamingChatToolCallUpdate(int index = 0, string toolCallId = null, ChatToolCallKind kind = ChatToolCallKind.Function, string functionName = null, BinaryData functionArgumentsUpdate = null); - } - public class StreamingChatCompletionUpdate : IJsonModel, IPersistableModel { - public string CompletionId { get; } - public IReadOnlyList ContentTokenLogProbabilities { get; } - public ChatMessageContent ContentUpdate { get; } - public DateTimeOffset CreatedAt { get; } - public ChatFinishReason? FinishReason { get; } - [Obsolete("This property is obsolete. Please use ToolCallUpdates instead.")] - public StreamingChatFunctionCallUpdate FunctionCallUpdate { get; } - public string Model { get; } - public StreamingChatOutputAudioUpdate OutputAudioUpdate { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public IReadOnlyList RefusalTokenLogProbabilities { get; } - public string RefusalUpdate { get; } - public ChatMessageRole? Role { get; } - public ChatServiceTier? ServiceTier { get; } - public string SystemFingerprint { get; } - public IReadOnlyList ToolCallUpdates { get; } - public ChatTokenUsage Usage { get; } - protected virtual StreamingChatCompletionUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingChatCompletionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] - public class StreamingChatFunctionCallUpdate : IJsonModel, IPersistableModel { - public BinaryData FunctionArgumentsUpdate { get; } - public string FunctionName { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual StreamingChatFunctionCallUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingChatFunctionCallUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingChatOutputAudioUpdate : IJsonModel, IPersistableModel { - public BinaryData AudioBytesUpdate { get; } - public DateTimeOffset? ExpiresAt { get; } - public string Id { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string TranscriptUpdate { get; } - protected virtual StreamingChatOutputAudioUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingChatOutputAudioUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingChatToolCallUpdate : IJsonModel, IPersistableModel { - public BinaryData FunctionArgumentsUpdate { get; } - public string FunctionName { get; } - public int Index { get; } - public ChatToolCallKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string ToolCallId { get; } - protected virtual StreamingChatToolCallUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingChatToolCallUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class SystemChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public SystemChatMessage(params ChatMessageContentPart[] contentParts); - public SystemChatMessage(IEnumerable contentParts); - public SystemChatMessage(string content); - public string ParticipantName { get; set; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ToolChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] contentParts); - public ToolChatMessage(string toolCallId, IEnumerable contentParts); - public ToolChatMessage(string toolCallId, string content); - public string ToolCallId { get; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class UserChatMessage : ChatMessage, IJsonModel, IPersistableModel { - public UserChatMessage(params ChatMessageContentPart[] contentParts); - public UserChatMessage(IEnumerable contentParts); - public UserChatMessage(string content); - public string ParticipantName { get; set; } - protected override ChatMessage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ChatMessage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + public partial class ChatWebSearchOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ChatWebSearchOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ChatWebSearchOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ChatWebSearchOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ChatWebSearchOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class DeveloperChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DeveloperChatMessage(params ChatMessageContentPart[] contentParts) { } + public DeveloperChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public DeveloperChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeveloperChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeveloperChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use ToolChatMessage instead.")] + public partial class FunctionChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionChatMessage(string functionName, string content) { } + public string FunctionName { get { throw null; } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIChatModelFactory + { + public static ChatCompletion ChatCompletion(string id = null, ChatFinishReason finishReason = ChatFinishReason.Stop, ChatMessageContent content = null, string refusal = null, System.Collections.Generic.IEnumerable toolCalls = null, ChatMessageRole role = ChatMessageRole.System, ChatFunctionCall functionCall = null, System.Collections.Generic.IEnumerable contentTokenLogProbabilities = null, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities = null, System.DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, ChatOutputAudio outputAudio = null, System.Collections.Generic.IEnumerable messageAnnotations = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatCompletion ChatCompletion(string id, ChatFinishReason finishReason, ChatMessageContent content, string refusal, System.Collections.Generic.IEnumerable toolCalls, ChatMessageRole role, ChatFunctionCall functionCall, System.Collections.Generic.IEnumerable contentTokenLogProbabilities, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities, System.DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage) { throw null; } + public static ChatCompletionMessageListDatum ChatCompletionMessageListDatum(string id, string content, string refusal, ChatMessageRole role, System.Collections.Generic.IList contentParts = null, System.Collections.Generic.IList toolCalls = null, System.Collections.Generic.IList annotations = null, string functionName = null, string functionArguments = null, ChatOutputAudio outputAudio = null) { throw null; } + public static ChatInputTokenUsageDetails ChatInputTokenUsageDetails(int audioTokenCount = 0, int cachedTokenCount = 0) { throw null; } + public static ChatMessageAnnotation ChatMessageAnnotation(int startIndex = 0, int endIndex = 0, System.Uri webResourceUri = null, string webResourceTitle = null) { throw null; } + public static ChatOutputAudio ChatOutputAudio(System.BinaryData audioBytes, string id = null, string transcript = null, System.DateTimeOffset expiresAt = default) { throw null; } + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount = 0, int audioTokenCount = 0, int acceptedPredictionTokenCount = 0, int rejectedPredictionTokenCount = 0) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount, int audioTokenCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reasoningTokenCount) { throw null; } + public static ChatTokenLogProbabilityDetails ChatTokenLogProbabilityDetails(string token = null, float logProbability = 0, System.ReadOnlyMemory? utf8Bytes = null, System.Collections.Generic.IEnumerable topLogProbabilities = null) { throw null; } + public static ChatTokenTopLogProbabilityDetails ChatTokenTopLogProbabilityDetails(string token = null, float logProbability = 0, System.ReadOnlyMemory? utf8Bytes = null) { throw null; } + public static ChatTokenUsage ChatTokenUsage(int outputTokenCount = 0, int inputTokenCount = 0, int totalTokenCount = 0, ChatOutputTokenUsageDetails outputTokenDetails = null, ChatInputTokenUsageDetails inputTokenDetails = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ChatTokenUsage ChatTokenUsage(int outputTokenCount, int inputTokenCount, int totalTokenCount, ChatOutputTokenUsageDetails outputTokenDetails) { throw null; } + public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId = null, ChatMessageContent contentUpdate = null, StreamingChatFunctionCallUpdate functionCallUpdate = null, System.Collections.Generic.IEnumerable toolCallUpdates = null, ChatMessageRole? role = null, string refusalUpdate = null, System.Collections.Generic.IEnumerable contentTokenLogProbabilities = null, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities = null, ChatFinishReason? finishReason = null, System.DateTimeOffset createdAt = default, string model = null, ChatServiceTier? serviceTier = null, string systemFingerprint = null, ChatTokenUsage usage = null, StreamingChatOutputAudioUpdate outputAudioUpdate = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(string completionId, ChatMessageContent contentUpdate, StreamingChatFunctionCallUpdate functionCallUpdate, System.Collections.Generic.IEnumerable toolCallUpdates, ChatMessageRole? role, string refusalUpdate, System.Collections.Generic.IEnumerable contentTokenLogProbabilities, System.Collections.Generic.IEnumerable refusalTokenLogProbabilities, ChatFinishReason? finishReason, System.DateTimeOffset createdAt, string model, string systemFingerprint, ChatTokenUsage usage) { throw null; } + [System.Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] + public static StreamingChatFunctionCallUpdate StreamingChatFunctionCallUpdate(string functionName = null, System.BinaryData functionArgumentsUpdate = null) { throw null; } + public static StreamingChatOutputAudioUpdate StreamingChatOutputAudioUpdate(string id = null, System.DateTimeOffset? expiresAt = null, string transcriptUpdate = null, System.BinaryData audioBytesUpdate = null) { throw null; } + public static StreamingChatToolCallUpdate StreamingChatToolCallUpdate(int index = 0, string toolCallId = null, ChatToolCallKind kind = ChatToolCallKind.Function, string functionName = null, System.BinaryData functionArgumentsUpdate = null) { throw null; } + } + public partial class StreamingChatCompletionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatCompletionUpdate() { } + public string CompletionId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ContentTokenLogProbabilities { get { throw null; } } + public ChatMessageContent ContentUpdate { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ChatFinishReason? FinishReason { get { throw null; } } + + [System.Obsolete("This property is obsolete. Please use ToolCallUpdates instead.")] + public StreamingChatFunctionCallUpdate FunctionCallUpdate { get { throw null; } } + public string Model { get { throw null; } } + public StreamingChatOutputAudioUpdate OutputAudioUpdate { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RefusalTokenLogProbabilities { get { throw null; } } + public string RefusalUpdate { get { throw null; } } + public ChatMessageRole? Role { get { throw null; } } + public ChatServiceTier? ServiceTier { get { throw null; } } + public string SystemFingerprint { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ToolCallUpdates { get { throw null; } } + public ChatTokenUsage Usage { get { throw null; } } + + protected virtual StreamingChatCompletionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingChatCompletionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatCompletionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatCompletionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.Obsolete("This class is obsolete. Please use StreamingChatToolCallUpdate instead.")] + public partial class StreamingChatFunctionCallUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatFunctionCallUpdate() { } + public System.BinaryData FunctionArgumentsUpdate { get { throw null; } } + public string FunctionName { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual StreamingChatFunctionCallUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingChatFunctionCallUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatFunctionCallUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatFunctionCallUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingChatOutputAudioUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatOutputAudioUpdate() { } + public System.BinaryData AudioBytesUpdate { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public string Id { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string TranscriptUpdate { get { throw null; } } + + protected virtual StreamingChatOutputAudioUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingChatOutputAudioUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatOutputAudioUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatOutputAudioUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingChatToolCallUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingChatToolCallUpdate() { } + public System.BinaryData FunctionArgumentsUpdate { get { throw null; } } + public string FunctionName { get { throw null; } } + public int Index { get { throw null; } } + public ChatToolCallKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ToolCallId { get { throw null; } } + + protected virtual StreamingChatToolCallUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingChatToolCallUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingChatToolCallUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingChatToolCallUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class SystemChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SystemChatMessage(params ChatMessageContentPart[] contentParts) { } + public SystemChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public SystemChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + SystemChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + SystemChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ToolChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] contentParts) { } + public ToolChatMessage(string toolCallId, System.Collections.Generic.IEnumerable contentParts) { } + public ToolChatMessage(string toolCallId, string content) { } + public string ToolCallId { get { throw null; } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ToolChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ToolChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class UserChatMessage : ChatMessage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UserChatMessage(params ChatMessageContentPart[] contentParts) { } + public UserChatMessage(System.Collections.Generic.IEnumerable contentParts) { } + public UserChatMessage(string content) { } + public string ParticipantName { get { throw null; } set { } } + + protected override ChatMessage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ChatMessage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + UserChatMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + UserChatMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} + +namespace OpenAI.Containers +{ + public partial class ContainerClient + { + protected ContainerClient() { } + public ContainerClient(ContainerClientSettings settings) { } + public ContainerClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ContainerClient(System.ClientModel.ApiKeyCredential credential) { } + public ContainerClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ContainerClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal ContainerClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public ContainerClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateContainer(CreateContainerBody body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateContainer(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateContainerAsync(CreateContainerBody body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateContainerAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateContainerFile(string containerId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateContainerFileAsync(string containerId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainer(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainer(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteContainerAsync(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteContainerAsync(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DownloadContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DownloadContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DownloadContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetContainer(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetContainer(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetContainerAsync(string containerId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerAsync(string containerId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetContainerFile(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetContainerFile(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetContainerFileAsync(string containerId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerFileAsync(string containerId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetContainerFiles(string containerId, ContainerFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetContainerFiles(string containerId, int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetContainerFilesAsync(string containerId, ContainerFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetContainerFilesAsync(string containerId, int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetContainers(ContainerCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetContainers(int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetContainersAsync(ContainerCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetContainersAsync(int? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + public sealed partial class ContainerClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ContainerCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ContainerCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual ContainerCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ContainerCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerCollectionOrder(string value) { } + public static ContainerCollectionOrder Ascending { get { throw null; } } + public static ContainerCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ContainerCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ContainerCollectionOrder left, ContainerCollectionOrder right) { throw null; } + public static implicit operator ContainerCollectionOrder(string value) { throw null; } + public static implicit operator ContainerCollectionOrder?(string value) { throw null; } + public static bool operator !=(ContainerCollectionOrder left, ContainerCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ContainerFileCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public ContainerCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual ContainerFileCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerFileCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ContainerFileResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerFileResource() { } + public int Bytes { get { throw null; } } + public string ContainerId { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + public string Path { get { throw null; } } + public string Source { get { throw null; } } + + protected virtual ContainerFileResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ContainerFileResource(System.ClientModel.ClientResult result) { throw null; } + protected virtual ContainerFileResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ContainerResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerResource() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public ContainerResourceExpiresAfter ExpiresAfter { get { throw null; } } + public string Id { get { throw null; } } + public string Name { get { throw null; } } + public string Object { get { throw null; } } + public string Status { get { throw null; } } + + protected virtual ContainerResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ContainerResource(System.ClientModel.ClientResult result) { throw null; } + protected virtual ContainerResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerResource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ContainerResourceExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ContainerResourceExpiresAfter() { } + public string Anchor { get { throw null; } } + public int? Minutes { get { throw null; } } + + protected virtual ContainerResourceExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ContainerResourceExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerResourceExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerResourceExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CreateContainerBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateContainerBody(string name) { } + public CreateContainerBodyExpiresAfter ExpiresAfter { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public string Name { get { throw null; } } + + protected virtual CreateContainerBody JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(CreateContainerBody createContainerBody) { throw null; } + protected virtual CreateContainerBody PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerBody System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerBody System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CreateContainerBodyExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateContainerBodyExpiresAfter(int minutes) { } + public string Anchor { get { throw null; } } + public int Minutes { get { throw null; } } + + protected virtual CreateContainerBodyExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CreateContainerBodyExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerBodyExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerBodyExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CreateContainerFileBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.BinaryData File { get { throw null; } set { } } + public string FileId { get { throw null; } set { } } + + protected virtual CreateContainerFileBody JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CreateContainerFileBody PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateContainerFileBody System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateContainerFileBody System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class DeleteContainerFileResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DeleteContainerFileResponse() { } + public bool Deleted { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + + protected virtual DeleteContainerFileResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator DeleteContainerFileResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual DeleteContainerFileResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeleteContainerFileResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeleteContainerFileResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class DeleteContainerResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DeleteContainerResponse() { } + public bool Deleted { get { throw null; } } + public string Id { get { throw null; } } + public string Object { get { throw null; } } + + protected virtual DeleteContainerResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator DeleteContainerResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual DeleteContainerResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + DeleteContainerResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + DeleteContainerResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Containers { - public class ContainerClient { - protected ContainerClient(); - public ContainerClient(ApiKeyCredential credential, OpenAIClientOptions options); - public ContainerClient(ApiKeyCredential credential); - public ContainerClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ContainerClient(AuthenticationPolicy authenticationPolicy); - protected internal ContainerClient(ClientPipeline pipeline, OpenAIClientOptions options); - public ContainerClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateContainer(CreateContainerBody body, CancellationToken cancellationToken = default); - public virtual ClientResult CreateContainer(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateContainerAsync(CreateContainerBody body, CancellationToken cancellationToken = default); - public virtual Task CreateContainerAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateContainerFile(string containerId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateContainerFileAsync(string containerId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult DeleteContainer(string containerId, RequestOptions options); - public virtual ClientResult DeleteContainer(string containerId, CancellationToken cancellationToken = default); - public virtual Task DeleteContainerAsync(string containerId, RequestOptions options); - public virtual Task> DeleteContainerAsync(string containerId, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult DeleteContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task DeleteContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> DeleteContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult DownloadContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult DownloadContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task DownloadContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> DownloadContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetContainer(string containerId, RequestOptions options); - public virtual ClientResult GetContainer(string containerId, CancellationToken cancellationToken = default); - public virtual Task GetContainerAsync(string containerId, RequestOptions options); - public virtual Task> GetContainerAsync(string containerId, CancellationToken cancellationToken = default); - public virtual ClientResult GetContainerFile(string containerId, string fileId, RequestOptions options); - public virtual ClientResult GetContainerFile(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual Task GetContainerFileAsync(string containerId, string fileId, RequestOptions options); - public virtual Task> GetContainerFileAsync(string containerId, string fileId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainerFiles(string containerId, ContainerFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainerFiles(string containerId, int? limit, string order, string after, RequestOptions options); - public virtual AsyncCollectionResult GetContainerFilesAsync(string containerId, ContainerFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetContainerFilesAsync(string containerId, int? limit, string order, string after, RequestOptions options); - public virtual CollectionResult GetContainers(ContainerCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetContainers(int? limit, string order, string after, RequestOptions options); - public virtual AsyncCollectionResult GetContainersAsync(ContainerCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetContainersAsync(int? limit, string order, string after, RequestOptions options); - } - public class ContainerCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ContainerCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual ContainerCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ContainerCollectionOrder : IEquatable { - public ContainerCollectionOrder(string value); - public static ContainerCollectionOrder Ascending { get; } - public static ContainerCollectionOrder Descending { get; } - public readonly bool Equals(ContainerCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ContainerCollectionOrder left, ContainerCollectionOrder right); - public static implicit operator ContainerCollectionOrder(string value); - public static implicit operator ContainerCollectionOrder?(string value); - public static bool operator !=(ContainerCollectionOrder left, ContainerCollectionOrder right); - public override readonly string ToString(); - } - public class ContainerFileCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public ContainerCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual ContainerFileCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerFileCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ContainerFileResource : IJsonModel, IPersistableModel { - public int Bytes { get; } - public string ContainerId { get; } - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string Object { get; } - public string Path { get; } - public string Source { get; } - protected virtual ContainerFileResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ContainerFileResource(ClientResult result); - protected virtual ContainerFileResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ContainerResource : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public ContainerResourceExpiresAfter ExpiresAfter { get; } - public string Id { get; } - public string Name { get; } - public string Object { get; } - public string Status { get; } - protected virtual ContainerResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ContainerResource(ClientResult result); - protected virtual ContainerResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ContainerResourceExpiresAfter : IJsonModel, IPersistableModel { - public string Anchor { get; } - public int? Minutes { get; } - protected virtual ContainerResourceExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ContainerResourceExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CreateContainerBody : IJsonModel, IPersistableModel { - public CreateContainerBody(string name); - public CreateContainerBodyExpiresAfter ExpiresAfter { get; set; } - public IList FileIds { get; } - public string Name { get; } - protected virtual CreateContainerBody JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(CreateContainerBody createContainerBody); - protected virtual CreateContainerBody PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CreateContainerBodyExpiresAfter : IJsonModel, IPersistableModel { - public CreateContainerBodyExpiresAfter(int minutes); - public string Anchor { get; } - public int Minutes { get; } - protected virtual CreateContainerBodyExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CreateContainerBodyExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CreateContainerFileBody : IJsonModel, IPersistableModel { - public BinaryData File { get; set; } - public string FileId { get; set; } - protected virtual CreateContainerFileBody JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CreateContainerFileBody PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class DeleteContainerFileResponse : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string Id { get; } - public string Object { get; } - protected virtual DeleteContainerFileResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator DeleteContainerFileResponse(ClientResult result); - protected virtual DeleteContainerFileResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class DeleteContainerResponse : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string Id { get; } - public string Object { get; } - protected virtual DeleteContainerResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator DeleteContainerResponse(ClientResult result); - protected virtual DeleteContainerResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + +namespace OpenAI.Conversations +{ + public partial class ConversationClient + { + protected ConversationClient() { } + public ConversationClient(ConversationClientSettings settings) { } + public ConversationClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ConversationClient(System.ClientModel.ApiKeyCredential credential) { } + public ConversationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ConversationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal ConversationClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public ConversationClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateConversation(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateConversationAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateConversationItems(string conversationId, System.ClientModel.BinaryContent content, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateConversationItemsAsync(string conversationId, System.ClientModel.BinaryContent content, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteConversation(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConversationAsync(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteConversationItem(string conversationId, string itemId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConversationItemAsync(string conversationId, string itemId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetConversation(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConversationAsync(string conversationId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetConversationItem(string conversationId, string itemId, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConversationItemAsync(string conversationId, string itemId, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetConversationItems(string conversationId, long? limit = null, string order = null, string after = null, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConversationItemsAsync(string conversationId, long? limit = null, string order = null, string after = null, System.Collections.Generic.IEnumerable include = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateConversation(string conversationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateConversationAsync(string conversationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + public sealed partial class ConversationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public readonly partial struct IncludedConversationItemProperty : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IncludedConversationItemProperty(string value) { } + public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get { throw null; } } + public static IncludedConversationItemProperty ComputerCallOutputImageUri { get { throw null; } } + public static IncludedConversationItemProperty FileSearchCallResults { get { throw null; } } + public static IncludedConversationItemProperty MessageInputImageUri { get { throw null; } } + public static IncludedConversationItemProperty MessageOutputTextLogprobs { get { throw null; } } + public static IncludedConversationItemProperty ReasoningEncryptedContent { get { throw null; } } + public static IncludedConversationItemProperty WebSearchCallActionSources { get { throw null; } } + public static IncludedConversationItemProperty WebSearchCallResults { get { throw null; } } + + public readonly bool Equals(IncludedConversationItemProperty other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right) { throw null; } + public static implicit operator IncludedConversationItemProperty(string value) { throw null; } + public static implicit operator IncludedConversationItemProperty?(string value) { throw null; } + public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right) { throw null; } + public override readonly string ToString() { throw null; } } } -namespace OpenAI.Conversations { - public class ConversationClient { - protected ConversationClient(); - public ConversationClient(ApiKeyCredential credential, OpenAIClientOptions options); - public ConversationClient(ApiKeyCredential credential); - public ConversationClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ConversationClient(AuthenticationPolicy authenticationPolicy); - protected internal ConversationClient(ClientPipeline pipeline, OpenAIClientOptions options); - public ConversationClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateConversation(BinaryContent content, RequestOptions options = null); - public virtual Task CreateConversationAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateConversationItems(string conversationId, BinaryContent content, IEnumerable include = null, RequestOptions options = null); - public virtual Task CreateConversationItemsAsync(string conversationId, BinaryContent content, IEnumerable include = null, RequestOptions options = null); - public virtual ClientResult DeleteConversation(string conversationId, RequestOptions options = null); - public virtual Task DeleteConversationAsync(string conversationId, RequestOptions options = null); - public virtual ClientResult DeleteConversationItem(string conversationId, string itemId, RequestOptions options = null); - public virtual Task DeleteConversationItemAsync(string conversationId, string itemId, RequestOptions options = null); - public virtual ClientResult GetConversation(string conversationId, RequestOptions options = null); - public virtual Task GetConversationAsync(string conversationId, RequestOptions options = null); - public virtual ClientResult GetConversationItem(string conversationId, string itemId, IEnumerable include = null, RequestOptions options = null); - public virtual Task GetConversationItemAsync(string conversationId, string itemId, IEnumerable include = null, RequestOptions options = null); - public virtual CollectionResult GetConversationItems(string conversationId, long? limit = null, string order = null, string after = null, IEnumerable include = null, RequestOptions options = null); - public virtual AsyncCollectionResult GetConversationItemsAsync(string conversationId, long? limit = null, string order = null, string after = null, IEnumerable include = null, RequestOptions options = null); - public virtual ClientResult UpdateConversation(string conversationId, BinaryContent content, RequestOptions options = null); - public virtual Task UpdateConversationAsync(string conversationId, BinaryContent content, RequestOptions options = null); - } - public readonly partial struct IncludedConversationItemProperty : IEquatable { - public IncludedConversationItemProperty(string value); - public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get; } - public static IncludedConversationItemProperty ComputerCallOutputImageUri { get; } - public static IncludedConversationItemProperty FileSearchCallResults { get; } - public static IncludedConversationItemProperty MessageInputImageUri { get; } - public static IncludedConversationItemProperty MessageOutputTextLogprobs { get; } - public static IncludedConversationItemProperty ReasoningEncryptedContent { get; } - public static IncludedConversationItemProperty WebSearchCallActionSources { get; } - public static IncludedConversationItemProperty WebSearchCallResults { get; } - public readonly bool Equals(IncludedConversationItemProperty other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right); - public static implicit operator IncludedConversationItemProperty(string value); - public static implicit operator IncludedConversationItemProperty?(string value); - public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right); - public override readonly string ToString(); + +namespace OpenAI.DependencyInjection +{ + public static partial class OpenAIHostBuilderExtensions + { + public static System.ClientModel.Primitives.IClientBuilder AddAssistantClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddAudioClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddBatchClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddChatClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddContainerClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddConversationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddEmbeddingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddEvaluationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddFineTuningClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddGraderClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddImageClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedAssistantClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedAudioClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedBatchClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedChatClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedContainerClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedConversationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedEmbeddingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedEvaluationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedFineTuningClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedGraderClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedImageClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedModerationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedOpenAIFileClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedOpenAIModelClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedRealtimeClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedVectorStoreClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddKeyedVideoClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddModerationClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddOpenAIFileClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddOpenAIModelClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddRealtimeClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddVectorStoreClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } + public static System.ClientModel.Primitives.IClientBuilder AddVideoClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName) { throw null; } } } -namespace OpenAI.Embeddings { - public class EmbeddingClient { - protected EmbeddingClient(); - protected internal EmbeddingClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public EmbeddingClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public EmbeddingClient(string model, ApiKeyCredential credential); - public EmbeddingClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public EmbeddingClient(string model, AuthenticationPolicy authenticationPolicy); - public EmbeddingClient(string model, string apiKey); - public Uri Endpoint { get; } - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateEmbedding(string input, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateEmbeddingAsync(string input, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateEmbeddings(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateEmbeddings(IEnumerable> inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateEmbeddings(IEnumerable inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateEmbeddingsAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateEmbeddingsAsync(IEnumerable> inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateEmbeddingsAsync(IEnumerable inputs, EmbeddingGenerationOptions options = null, CancellationToken cancellationToken = default); - } - public class EmbeddingGenerationOptions : IJsonModel, IPersistableModel { - public int? Dimensions { get; set; } - public string EndUserId { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual EmbeddingGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual EmbeddingGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class EmbeddingTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; } - protected virtual EmbeddingTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual EmbeddingTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIEmbedding : IJsonModel, IPersistableModel { - public int Index { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual OpenAIEmbedding JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual OpenAIEmbedding PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - public ReadOnlyMemory ToFloats(); - } - public class OpenAIEmbeddingCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - public string Model { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public EmbeddingTokenUsage Usage { get; } - protected virtual OpenAIEmbeddingCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator OpenAIEmbeddingCollection(ClientResult result); - protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIEmbeddingsModelFactory { - public static EmbeddingTokenUsage EmbeddingTokenUsage(int inputTokenCount = 0, int totalTokenCount = 0); - public static OpenAIEmbedding OpenAIEmbedding(int index = 0, IEnumerable vector = null); - public static OpenAIEmbeddingCollection OpenAIEmbeddingCollection(IEnumerable items = null, string model = null, EmbeddingTokenUsage usage = null); + +namespace OpenAI.Embeddings +{ + public partial class EmbeddingClient + { + protected EmbeddingClient() { } + public EmbeddingClient(EmbeddingClientSettings settings) { } + protected internal EmbeddingClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public EmbeddingClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public EmbeddingClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public EmbeddingClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public EmbeddingClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public EmbeddingClient(string model, string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateEmbedding(string input, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingAsync(string input, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.Collections.Generic.IEnumerable> inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateEmbeddings(System.Collections.Generic.IEnumerable inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateEmbeddingsAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingsAsync(System.Collections.Generic.IEnumerable> inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateEmbeddingsAsync(System.Collections.Generic.IEnumerable inputs, EmbeddingGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public sealed partial class EmbeddingClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class EmbeddingGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int? Dimensions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual EmbeddingGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual EmbeddingGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + EmbeddingGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + EmbeddingGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class EmbeddingTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal EmbeddingTokenUsage() { } + public int InputTokenCount { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual EmbeddingTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual EmbeddingTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + EmbeddingTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + EmbeddingTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIEmbedding : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIEmbedding() { } + public int Index { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual OpenAIEmbedding JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual OpenAIEmbedding PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIEmbedding System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIEmbedding System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public System.ReadOnlyMemory ToFloats() { throw null; } + } + + public partial class OpenAIEmbeddingCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIEmbeddingCollection() : base(default!) { } + public string Model { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public EmbeddingTokenUsage Usage { get { throw null; } } + + protected virtual OpenAIEmbeddingCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator OpenAIEmbeddingCollection(System.ClientModel.ClientResult result) { throw null; } + protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIEmbeddingCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIEmbeddingCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIEmbeddingsModelFactory + { + public static EmbeddingTokenUsage EmbeddingTokenUsage(int inputTokenCount = 0, int totalTokenCount = 0) { throw null; } + public static OpenAIEmbedding OpenAIEmbedding(int index = 0, System.Collections.Generic.IEnumerable vector = null) { throw null; } + public static OpenAIEmbeddingCollection OpenAIEmbeddingCollection(System.Collections.Generic.IEnumerable items = null, string model = null, EmbeddingTokenUsage usage = null) { throw null; } } } -namespace OpenAI.Evals { - public class EvaluationClient { - protected EvaluationClient(); - public EvaluationClient(ApiKeyCredential credential, OpenAIClientOptions options); - public EvaluationClient(ApiKeyCredential credential); - public EvaluationClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public EvaluationClient(AuthenticationPolicy authenticationPolicy); - protected internal EvaluationClient(ClientPipeline pipeline, OpenAIClientOptions options); - public EvaluationClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task CancelEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult CreateEvaluation(BinaryContent content, RequestOptions options = null); - public virtual Task CreateEvaluationAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateEvaluationRun(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual Task CreateEvaluationRunAsync(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteEvaluation(string evaluationId, RequestOptions options); - public virtual Task DeleteEvaluationAsync(string evaluationId, RequestOptions options); - public virtual ClientResult DeleteEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task DeleteEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult GetEvaluation(string evaluationId, RequestOptions options); - public virtual Task GetEvaluationAsync(string evaluationId, RequestOptions options); - public virtual ClientResult GetEvaluationRun(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual Task GetEvaluationRunAsync(string evaluationId, string evaluationRunId, RequestOptions options); - public virtual ClientResult GetEvaluationRunOutputItem(string evaluationId, string evaluationRunId, string outputItemId, RequestOptions options); - public virtual Task GetEvaluationRunOutputItemAsync(string evaluationId, string evaluationRunId, string outputItemId, RequestOptions options); - public virtual ClientResult GetEvaluationRunOutputItems(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, RequestOptions options); - public virtual Task GetEvaluationRunOutputItemsAsync(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, RequestOptions options); - public virtual ClientResult GetEvaluationRuns(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, RequestOptions options); - public virtual Task GetEvaluationRunsAsync(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, RequestOptions options); - public virtual ClientResult GetEvaluations(int? limit, string orderBy, string order, string after, RequestOptions options); - public virtual Task GetEvaluationsAsync(int? limit, string orderBy, string order, string after, RequestOptions options); - public virtual ClientResult UpdateEvaluation(string evaluationId, BinaryContent content, RequestOptions options = null); - public virtual Task UpdateEvaluationAsync(string evaluationId, BinaryContent content, RequestOptions options = null); + +namespace OpenAI.Evals +{ + public partial class EvaluationClient + { + protected EvaluationClient() { } + public EvaluationClient(EvaluationClientSettings settings) { } + public EvaluationClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public EvaluationClient(System.ClientModel.ApiKeyCredential credential) { } + public EvaluationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public EvaluationClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal EvaluationClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public EvaluationClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task CancelEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CreateEvaluation(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateEvaluationAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateEvaluationRun(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateEvaluationRunAsync(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteEvaluation(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteEvaluationAsync(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluation(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationAsync(string evaluationId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRun(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunAsync(string evaluationId, string evaluationRunId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRunOutputItem(string evaluationId, string evaluationRunId, string outputItemId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunOutputItemAsync(string evaluationId, string evaluationRunId, string outputItemId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRunOutputItems(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunOutputItemsAsync(string evaluationId, string evaluationRunId, int? limit, string order, string after, string outputItemStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluationRuns(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationRunsAsync(string evaluationId, int? limit, string order, string after, string evaluationRunStatus, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetEvaluations(int? limit, string orderBy, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetEvaluationsAsync(int? limit, string orderBy, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult UpdateEvaluation(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateEvaluationAsync(string evaluationId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + public sealed partial class EvaluationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } } } -namespace OpenAI.Files { - public class FileDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string FileId { get; } - protected virtual FileDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator FileDeletionResult(ClientResult result); - protected virtual FileDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum FilePurpose { + +namespace OpenAI.Files +{ + public partial class FileDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileDeletionResult() { } + public bool Deleted { get { throw null; } } + public string FileId { get { throw null; } } + + protected virtual FileDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator FileDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual FileDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum FilePurpose + { Assistants = 0, AssistantsOutput = 1, Batch = 2, @@ -2466,758 +4155,1156 @@ public enum FilePurpose { UserData = 7, Evaluations = 8 } - [Obsolete("This struct is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] - public enum FileStatus { + + [System.Obsolete("This struct is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] + public enum FileStatus + { Uploaded = 0, Processed = 1, Error = 2 } - public readonly partial struct FileUploadPurpose : IEquatable { - public FileUploadPurpose(string value); - public static FileUploadPurpose Assistants { get; } - public static FileUploadPurpose Batch { get; } - public static FileUploadPurpose Evaluations { get; } - public static FileUploadPurpose FineTune { get; } - public static FileUploadPurpose UserData { get; } - public static FileUploadPurpose Vision { get; } - public readonly bool Equals(FileUploadPurpose other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileUploadPurpose left, FileUploadPurpose right); - public static implicit operator FileUploadPurpose(string value); - public static implicit operator FileUploadPurpose?(string value); - public static bool operator !=(FileUploadPurpose left, FileUploadPurpose right); - public override readonly string ToString(); - } - public class OpenAIFile : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public DateTimeOffset? ExpiresAt { get; } - public string Filename { get; } - public string Id { get; } - public FilePurpose Purpose { get; } - [EditorBrowsable(EditorBrowsableState.Never)] - public int? SizeInBytes { get; } - public long? SizeInBytesLong { get; } - [Obsolete("This property is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] - public FileStatus Status { get; } - [Obsolete("This property is obsolete. For details on why a fine-tuning training file failed validation, see the `error` field on the fine-tuning job.")] - public string StatusDetails { get; } - protected virtual OpenAIFile JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator OpenAIFile(ClientResult result); - protected virtual OpenAIFile PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIFileClient { - protected OpenAIFileClient(); - public OpenAIFileClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIFileClient(ApiKeyCredential credential); - public OpenAIFileClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public OpenAIFileClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIFileClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIFileClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult AddUploadPart(string uploadId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task AddUploadPartAsync(string uploadId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult CancelUpload(string uploadId, RequestOptions options = null); - public virtual Task CancelUploadAsync(string uploadId, RequestOptions options = null); - public virtual ClientResult CompleteUpload(string uploadId, BinaryContent content, RequestOptions options = null); - public virtual Task CompleteUploadAsync(string uploadId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateUpload(BinaryContent content, RequestOptions options = null); - public virtual Task CreateUploadAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteFile(string fileId, RequestOptions options); - public virtual ClientResult DeleteFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task DeleteFileAsync(string fileId, RequestOptions options); - public virtual Task> DeleteFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult DownloadFile(string fileId, RequestOptions options); - public virtual ClientResult DownloadFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task DownloadFileAsync(string fileId, RequestOptions options); - public virtual Task> DownloadFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetFile(string fileId, RequestOptions options); - public virtual ClientResult GetFile(string fileId, CancellationToken cancellationToken = default); - public virtual Task GetFileAsync(string fileId, RequestOptions options); - public virtual Task> GetFileAsync(string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetFiles(FilePurpose purpose, CancellationToken cancellationToken = default); - public virtual ClientResult GetFiles(string purpose, RequestOptions options); - public virtual ClientResult GetFiles(string purpose, long? limit, string order, string after, RequestOptions options); - public virtual ClientResult GetFiles(CancellationToken cancellationToken = default); - public virtual Task> GetFilesAsync(FilePurpose purpose, CancellationToken cancellationToken = default); - public virtual Task GetFilesAsync(string purpose, RequestOptions options); - public virtual Task GetFilesAsync(string purpose, long? limit, string order, string after, RequestOptions options); - public virtual Task> GetFilesAsync(CancellationToken cancellationToken = default); - public virtual ClientResult UploadFile(BinaryData file, string filename, FileUploadPurpose purpose); - public virtual ClientResult UploadFile(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult UploadFile(Stream file, string filename, FileUploadPurpose purpose, CancellationToken cancellationToken = default); - public virtual ClientResult UploadFile(string filePath, FileUploadPurpose purpose); - public virtual Task> UploadFileAsync(BinaryData file, string filename, FileUploadPurpose purpose); - public virtual Task UploadFileAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> UploadFileAsync(Stream file, string filename, FileUploadPurpose purpose, CancellationToken cancellationToken = default); - public virtual Task> UploadFileAsync(string filePath, FileUploadPurpose purpose); - } - public class OpenAIFileCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - protected virtual OpenAIFileCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator OpenAIFileCollection(ClientResult result); - protected virtual OpenAIFileCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIFilesModelFactory { - public static FileDeletionResult FileDeletionResult(string fileId = null, bool deleted = false); - public static OpenAIFileCollection OpenAIFileCollection(IEnumerable items = null); - public static OpenAIFile OpenAIFileInfo(string id = null, int? sizeInBytes = null, DateTimeOffset createdAt = default, string filename = null, FilePurpose purpose = FilePurpose.Assistants, FileStatus status = FileStatus.Uploaded, string statusDetails = null, DateTimeOffset? expiresAt = null, long? sizeInBytesLong = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static OpenAIFile OpenAIFileInfo(string id, int? sizeInBytes, DateTimeOffset createdAt, string filename, FilePurpose purpose, FileStatus status, string statusDetails); + + public readonly partial struct FileUploadPurpose : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileUploadPurpose(string value) { } + public static FileUploadPurpose Assistants { get { throw null; } } + public static FileUploadPurpose Batch { get { throw null; } } + public static FileUploadPurpose Evaluations { get { throw null; } } + public static FileUploadPurpose FineTune { get { throw null; } } + public static FileUploadPurpose UserData { get { throw null; } } + public static FileUploadPurpose Vision { get { throw null; } } + + public readonly bool Equals(FileUploadPurpose other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileUploadPurpose left, FileUploadPurpose right) { throw null; } + public static implicit operator FileUploadPurpose(string value) { throw null; } + public static implicit operator FileUploadPurpose?(string value) { throw null; } + public static bool operator !=(FileUploadPurpose left, FileUploadPurpose right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class OpenAIFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIFile() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public string Filename { get { throw null; } } + public string Id { get { throw null; } } + public FilePurpose Purpose { get { throw null; } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int? SizeInBytes { get { throw null; } } + public long? SizeInBytesLong { get { throw null; } } + + [System.Obsolete("This property is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.")] + public FileStatus Status { get { throw null; } } + + [System.Obsolete("This property is obsolete. For details on why a fine-tuning training file failed validation, see the `error` field on the fine-tuning job.")] + public string StatusDetails { get { throw null; } } + + protected virtual OpenAIFile JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator OpenAIFile(System.ClientModel.ClientResult result) { throw null; } + protected virtual OpenAIFile PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIFileClient + { + protected OpenAIFileClient() { } + public OpenAIFileClient(OpenAIFileClientSettings settings) { } + public OpenAIFileClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIFileClient(System.ClientModel.ApiKeyCredential credential) { } + public OpenAIFileClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public OpenAIFileClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIFileClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIFileClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult AddUploadPart(string uploadId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AddUploadPartAsync(string uploadId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CancelUpload(string uploadId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CancelUploadAsync(string uploadId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CompleteUpload(string uploadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CompleteUploadAsync(string uploadId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateUpload(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateUploadAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DownloadFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DownloadFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DownloadFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFile(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetFile(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetFileAsync(string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetFileAsync(string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(FilePurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(string purpose, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(string purpose, long? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetFiles(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GetFilesAsync(FilePurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetFilesAsync(string purpose, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetFilesAsync(string purpose, long? limit, string order, string after, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetFilesAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.BinaryData file, string filename, FileUploadPurpose purpose) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(System.IO.Stream file, string filename, FileUploadPurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult UploadFile(string filePath, FileUploadPurpose purpose) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(System.BinaryData file, string filename, FileUploadPurpose purpose) { throw null; } + public virtual System.Threading.Tasks.Task UploadFileAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(System.IO.Stream file, string filename, FileUploadPurpose purpose, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> UploadFileAsync(string filePath, FileUploadPurpose purpose) { throw null; } + } + public sealed partial class OpenAIFileClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class OpenAIFileCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIFileCollection() : base(default!) { } + protected virtual OpenAIFileCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator OpenAIFileCollection(System.ClientModel.ClientResult result) { throw null; } + protected virtual OpenAIFileCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIFileCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIFileCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIFilesModelFactory + { + public static FileDeletionResult FileDeletionResult(string fileId = null, bool deleted = false) { throw null; } + public static OpenAIFileCollection OpenAIFileCollection(System.Collections.Generic.IEnumerable items = null) { throw null; } + public static OpenAIFile OpenAIFileInfo(string id = null, int? sizeInBytes = null, System.DateTimeOffset createdAt = default, string filename = null, FilePurpose purpose = FilePurpose.Assistants, FileStatus status = FileStatus.Uploaded, string statusDetails = null, System.DateTimeOffset? expiresAt = null, long? sizeInBytesLong = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static OpenAIFile OpenAIFileInfo(string id, int? sizeInBytes, System.DateTimeOffset createdAt, string filename, FilePurpose purpose, FileStatus status, string statusDetails) { throw null; } } } -namespace OpenAI.FineTuning { - public class FineTuningCheckpoint : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string JobId { get; } - public FineTuningCheckpointMetrics Metrics { get; } - public string ModelId { get; } - public int StepNumber { get; } - protected virtual FineTuningCheckpoint JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningCheckpoint PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - public override string ToString(); - } - public class FineTuningCheckpointMetrics : IJsonModel, IPersistableModel { - public float? FullValidLoss { get; } - public float? FullValidMeanTokenAccuracy { get; } - public int StepNumber { get; } - public float? TrainLoss { get; } - public float? TrainMeanTokenAccuracy { get; } - public float? ValidLoss { get; } - public float? ValidMeanTokenAccuracy { get; } - protected virtual FineTuningCheckpointMetrics JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningCheckpointMetrics PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FineTuningClient { - protected FineTuningClient(); - public FineTuningClient(ApiKeyCredential credential, OpenAIClientOptions options); - public FineTuningClient(ApiKeyCredential credential); - public FineTuningClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public FineTuningClient(AuthenticationPolicy authenticationPolicy); - protected internal FineTuningClient(ClientPipeline pipeline, OpenAIClientOptions options); - protected internal FineTuningClient(ClientPipeline pipeline, Uri endpoint); - public FineTuningClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateFineTuningCheckpointPermission(string fineTunedModelCheckpoint, BinaryContent content, RequestOptions options = null); - public virtual Task CreateFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteFineTuningCheckpointPermission(string fineTunedModelCheckpoint, string permissionId, RequestOptions options); - public virtual Task DeleteFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, string permissionId, RequestOptions options); - public virtual FineTuningJob FineTune(BinaryContent content, bool waitUntilCompleted, RequestOptions options); - public virtual FineTuningJob FineTune(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, CancellationToken cancellationToken = default); - public virtual Task FineTuneAsync(BinaryContent content, bool waitUntilCompleted, RequestOptions options); - public virtual Task FineTuneAsync(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GetFineTuningCheckpointPermissions(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, RequestOptions options); - public virtual Task GetFineTuningCheckpointPermissionsAsync(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, RequestOptions options); - public virtual FineTuningJob GetJob(string jobId, CancellationToken cancellationToken = default); - public virtual Task GetJobAsync(string jobId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetJobs(FineTuningJobCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetJobsAsync(FineTuningJobCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult PauseFineTuningJob(string fineTuningJobId, RequestOptions options); - public virtual Task PauseFineTuningJobAsync(string fineTuningJobId, RequestOptions options); - public virtual ClientResult ResumeFineTuningJob(string fineTuningJobId, RequestOptions options); - public virtual Task ResumeFineTuningJobAsync(string fineTuningJobId, RequestOptions options); - } - public class FineTuningError : IJsonModel, IPersistableModel { - public string Code { get; } - public string InvalidParameter { get; } - public string Message { get; } - protected virtual FineTuningError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FineTuningEvent : IJsonModel, IPersistableModel { + +namespace OpenAI.FineTuning +{ + public partial class FineTuningCheckpoint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningCheckpoint() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string JobId { get { throw null; } } + public FineTuningCheckpointMetrics Metrics { get { throw null; } } + public string ModelId { get { throw null; } } + public int StepNumber { get { throw null; } } + + protected virtual FineTuningCheckpoint JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningCheckpoint PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningCheckpoint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningCheckpoint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public override string ToString() { throw null; } + } + + public partial class FineTuningCheckpointMetrics : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningCheckpointMetrics() { } + public float? FullValidLoss { get { throw null; } } + public float? FullValidMeanTokenAccuracy { get { throw null; } } + public int StepNumber { get { throw null; } } + public float? TrainLoss { get { throw null; } } + public float? TrainMeanTokenAccuracy { get { throw null; } } + public float? ValidLoss { get { throw null; } } + public float? ValidMeanTokenAccuracy { get { throw null; } } + + protected virtual FineTuningCheckpointMetrics JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningCheckpointMetrics PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningCheckpointMetrics System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningCheckpointMetrics System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FineTuningClient + { + protected FineTuningClient() { } + public FineTuningClient(FineTuningClientSettings settings) { } + public FineTuningClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public FineTuningClient(System.ClientModel.ApiKeyCredential credential) { } + public FineTuningClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public FineTuningClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal FineTuningClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + protected internal FineTuningClient(System.ClientModel.Primitives.ClientPipeline pipeline, System.Uri endpoint) { } + public FineTuningClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateFineTuningCheckpointPermission(string fineTunedModelCheckpoint, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteFineTuningCheckpointPermission(string fineTunedModelCheckpoint, string permissionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFineTuningCheckpointPermissionAsync(string fineTunedModelCheckpoint, string permissionId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob FineTune(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob FineTune(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task FineTuneAsync(System.ClientModel.BinaryContent content, bool waitUntilCompleted, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task FineTuneAsync(string baseModel, string trainingFileId, bool waitUntilCompleted, FineTuningOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetFineTuningCheckpointPermissions(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task GetFineTuningCheckpointPermissionsAsync(string fineTunedModelCheckpoint, string after, int? limit, string order, string projectId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual FineTuningJob GetJob(string jobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetJobAsync(string jobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetJobs(FineTuningJobCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetJobsAsync(FineTuningJobCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult PauseFineTuningJob(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task PauseFineTuningJobAsync(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult ResumeFineTuningJob(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task ResumeFineTuningJobAsync(string fineTuningJobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + } + public sealed partial class FineTuningClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class FineTuningError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningError() { } + public string Code { get { throw null; } } + public string InvalidParameter { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual FineTuningError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FineTuningEvent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningEvent() { } public string Level; - public DateTimeOffset CreatedAt { get; } - public BinaryData Data { get; } - public string Id { get; } - public FineTuningJobEventKind? Kind { get; } - public string Message { get; } - protected virtual FineTuningEvent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningEvent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct FineTuningHyperparameters : IJsonModel, IPersistableModel, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - } - public class FineTuningIntegration : IJsonModel, IPersistableModel { - protected virtual FineTuningIntegration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningIntegration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FineTuningJob : OperationResult { + public System.DateTimeOffset CreatedAt { get { throw null; } } + public System.BinaryData Data { get { throw null; } } + public string Id { get { throw null; } } + public FineTuningJobEventKind? Kind { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual FineTuningEvent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningEvent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningEvent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningEvent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct FineTuningHyperparameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public int BatchSize { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + readonly FineTuningHyperparameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly object System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + readonly FineTuningHyperparameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly object System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + readonly System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FineTuningIntegration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningIntegration() { } + protected virtual FineTuningIntegration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningIntegration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningIntegration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningIntegration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FineTuningJob : System.ClientModel.Primitives.OperationResult + { + internal FineTuningJob() : base(default!) { } public string? Value; - public string BaseModel { get; } - public int BillableTrainedTokenCount { get; } - public DateTimeOffset? EstimatedFinishAt { get; } - [Obsolete("This property is deprecated. Use the MethodHyperparameters property instead.")] - public FineTuningHyperparameters Hyperparameters { get; } - public IReadOnlyList Integrations { get; } - public string JobId { get; } - public IDictionary Metadata { get; } - public MethodHyperparameters? MethodHyperparameters { get; } - public override ContinuationToken? RehydrationToken { get; protected set; } - public IReadOnlyList ResultFileIds { get; } - public int? Seed { get; } - public FineTuningStatus Status { get; } - public string TrainingFileId { get; } - public FineTuningTrainingMethod? TrainingMethod { get; } - public string? UserProvidedSuffix { get; } - public string ValidationFileId { get; } - public virtual ClientResult Cancel(RequestOptions options); - public virtual ClientResult CancelAndUpdate(CancellationToken cancellationToken = default); - public virtual Task CancelAndUpdateAsync(CancellationToken cancellationToken = default); - public virtual Task CancelAsync(RequestOptions options); - public virtual CollectionResult GetCheckpoints(GetCheckpointsOptions? options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetCheckpoints(string? after, int? limit, RequestOptions? options); - public virtual AsyncCollectionResult GetCheckpointsAsync(GetCheckpointsOptions? options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetCheckpointsAsync(string? after, int? limit, RequestOptions? options); - public virtual CollectionResult GetEvents(GetEventsOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetEvents(string? after, int? limit, RequestOptions options); - public virtual AsyncCollectionResult GetEventsAsync(GetEventsOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetEventsAsync(string? after, int? limit, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, ContinuationToken rehydrationToken, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, RequestOptions options); - public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(FineTuningClient client, ContinuationToken rehydrationToken, RequestOptions options); - public static Task RehydrateAsync(FineTuningClient client, ContinuationToken rehydrationToken, CancellationToken cancellationToken = default); - public static Task RehydrateAsync(FineTuningClient client, string JobId, RequestOptions options); - public static Task RehydrateAsync(FineTuningClient client, string JobId, CancellationToken cancellationToken = default); - public override ClientResult UpdateStatus(RequestOptions? options); - public ClientResult UpdateStatus(CancellationToken cancellationToken = default); - public override ValueTask UpdateStatusAsync(RequestOptions? options); - public ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default); - public override void WaitForCompletion(CancellationToken cancellationToken = default); - public override ValueTask WaitForCompletionAsync(CancellationToken cancellationToken = default); - } - public class FineTuningJobCollectionOptions { - public string AfterJobId { get; set; } - public int? PageSize { get; set; } - } - public readonly partial struct FineTuningJobEventKind : IEquatable { - public FineTuningJobEventKind(string value); - public static FineTuningJobEventKind Message { get; } - public static FineTuningJobEventKind Metrics { get; } - public readonly bool Equals(FineTuningJobEventKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FineTuningJobEventKind left, FineTuningJobEventKind right); - public static implicit operator FineTuningJobEventKind(string value); - public static implicit operator FineTuningJobEventKind?(string value); - public static bool operator !=(FineTuningJobEventKind left, FineTuningJobEventKind right); - public override readonly string ToString(); - } - public class FineTuningOptions : IJsonModel, IPersistableModel { - public IList Integrations { get; } - public IDictionary Metadata { get; } - public int? Seed { get; set; } - public string Suffix { get; set; } - public FineTuningTrainingMethod TrainingMethod { get; set; } - public string ValidationFile { get; set; } - protected virtual FineTuningOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct FineTuningStatus : IEquatable, IEquatable { - public FineTuningStatus(string value); - public static FineTuningStatus Cancelled { get; } - public static FineTuningStatus Failed { get; } - public bool InProgress { get; } - public static FineTuningStatus Queued { get; } - public static FineTuningStatus Running { get; } - public static FineTuningStatus Succeeded { get; } - public static FineTuningStatus ValidatingFiles { get; } - public readonly bool Equals(FineTuningStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - public readonly bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FineTuningStatus left, FineTuningStatus right); - public static implicit operator FineTuningStatus(string value); - public static implicit operator FineTuningStatus?(string value); - public static bool operator !=(FineTuningStatus left, FineTuningStatus right); - public override readonly string ToString(); - } - public class FineTuningTrainingMethod : IJsonModel, IPersistableModel { - public static FineTuningTrainingMethod CreateDirectPreferenceOptimization(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null, HyperparameterBetaFactor betaFactor = null); - public static FineTuningTrainingMethod CreateSupervised(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null); - protected virtual FineTuningTrainingMethod JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuningTrainingMethod PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class GetCheckpointsOptions { - public string AfterCheckpointId { get; set; } - public int? PageSize { get; set; } - } - public class GetEventsOptions { - public string AfterEventId { get; set; } - public int? PageSize { get; set; } - } - public class HyperparameterBatchSize : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterBatchSize(int batchSize); - public static HyperparameterBatchSize CreateAuto(); - public static HyperparameterBatchSize CreateSize(int batchSize); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterBatchSize first, HyperparameterBatchSize second); - public static implicit operator HyperparameterBatchSize(int batchSize); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterBatchSize first, HyperparameterBatchSize second); - } - public class HyperparameterBetaFactor : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterBetaFactor(int beta); - public static HyperparameterBetaFactor CreateAuto(); - public static HyperparameterBetaFactor CreateBeta(int beta); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterBetaFactor first, HyperparameterBetaFactor second); - public static implicit operator HyperparameterBetaFactor(int beta); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterBetaFactor first, HyperparameterBetaFactor second); - } - public class HyperparameterEpochCount : IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterEpochCount(int epochCount); - public static HyperparameterEpochCount CreateAuto(); - public static HyperparameterEpochCount CreateEpochCount(int epochCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterEpochCount first, HyperparameterEpochCount second); - public static implicit operator HyperparameterEpochCount(int epochCount); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterEpochCount first, HyperparameterEpochCount second); - } - public class HyperparameterLearningRate : IEquatable, IEquatable, IEquatable, IJsonModel, IPersistableModel { - public HyperparameterLearningRate(double learningRateMultiplier); - public static HyperparameterLearningRate CreateAuto(); - public static HyperparameterLearningRate CreateMultiplier(double learningRateMultiplier); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(double other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(int other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object other); - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(string other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode(); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(HyperparameterLearningRate first, HyperparameterLearningRate second); - public static implicit operator HyperparameterLearningRate(double learningRateMultiplier); - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(HyperparameterLearningRate first, HyperparameterLearningRate second); - } - public class HyperparametersForDPO : MethodHyperparameters, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public float Beta { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - protected virtual HyperparametersForDPO JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual HyperparametersForDPO PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class HyperparametersForSupervised : MethodHyperparameters, IJsonModel, IPersistableModel { - public int BatchSize { get; } - public int EpochCount { get; } - public float LearningRateMultiplier { get; } - protected virtual HyperparametersForSupervised JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual HyperparametersForSupervised PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class MethodHyperparameters { - } - public class WeightsAndBiasesIntegration : FineTuningIntegration, IJsonModel, IPersistableModel { - public WeightsAndBiasesIntegration(string projectName); - public string DisplayName { get; set; } - public string EntityName { get; set; } - public string ProjectName { get; set; } - public IList Tags { get; } - protected override FineTuningIntegration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override FineTuningIntegration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + public string BaseModel { get { throw null; } } + public int BillableTrainedTokenCount { get { throw null; } } + public System.DateTimeOffset? EstimatedFinishAt { get { throw null; } } + + [System.Obsolete("This property is deprecated. Use the MethodHyperparameters property instead.")] + public FineTuningHyperparameters Hyperparameters { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Integrations { get { throw null; } } + public string JobId { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public MethodHyperparameters? MethodHyperparameters { get { throw null; } } + public override System.ClientModel.ContinuationToken? RehydrationToken { get { throw null; } protected set { } } + public System.Collections.Generic.IReadOnlyList ResultFileIds { get { throw null; } } + public int? Seed { get { throw null; } } + public FineTuningStatus Status { get { throw null; } } + public string TrainingFileId { get { throw null; } } + public FineTuningTrainingMethod? TrainingMethod { get { throw null; } } + public string? UserProvidedSuffix { get { throw null; } } + public string ValidationFileId { get { throw null; } } + + public virtual System.ClientModel.ClientResult Cancel(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelAndUpdate(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelAndUpdateAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetCheckpoints(GetCheckpointsOptions? options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetCheckpoints(string? after, int? limit, System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetCheckpointsAsync(GetCheckpointsOptions? options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetCheckpointsAsync(string? after, int? limit, System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public virtual System.ClientModel.CollectionResult GetEvents(GetEventsOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetEvents(string? after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetEventsAsync(GetEventsOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetEventsAsync(string? after, int? limit, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static FineTuningJob Rehydrate(FineTuningClient client, string JobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, System.ClientModel.ContinuationToken rehydrationToken, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, string JobId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public static System.Threading.Tasks.Task RehydrateAsync(FineTuningClient client, string JobId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.ClientModel.ClientResult UpdateStatus(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public System.ClientModel.ClientResult UpdateStatus(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.ClientModel.Primitives.RequestOptions? options) { throw null; } + public System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override void WaitForCompletion(System.Threading.CancellationToken cancellationToken = default) { } + public override System.Threading.Tasks.ValueTask WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + + public partial class FineTuningJobCollectionOptions + { + public string AfterJobId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + public readonly partial struct FineTuningJobEventKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FineTuningJobEventKind(string value) { } + public static FineTuningJobEventKind Message { get { throw null; } } + public static FineTuningJobEventKind Metrics { get { throw null; } } + + public readonly bool Equals(FineTuningJobEventKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FineTuningJobEventKind left, FineTuningJobEventKind right) { throw null; } + public static implicit operator FineTuningJobEventKind(string value) { throw null; } + public static implicit operator FineTuningJobEventKind?(string value) { throw null; } + public static bool operator !=(FineTuningJobEventKind left, FineTuningJobEventKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class FineTuningOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Integrations { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public int? Seed { get { throw null; } set { } } + public string Suffix { get { throw null; } set { } } + public FineTuningTrainingMethod TrainingMethod { get { throw null; } set { } } + public string ValidationFile { get { throw null; } set { } } + + protected virtual FineTuningOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct FineTuningStatus : System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FineTuningStatus(string value) { } + public static FineTuningStatus Cancelled { get { throw null; } } + public static FineTuningStatus Failed { get { throw null; } } + public bool InProgress { get { throw null; } } + public static FineTuningStatus Queued { get { throw null; } } + public static FineTuningStatus Running { get { throw null; } } + public static FineTuningStatus Succeeded { get { throw null; } } + public static FineTuningStatus ValidatingFiles { get { throw null; } } + + public readonly bool Equals(FineTuningStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + public readonly bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FineTuningStatus left, FineTuningStatus right) { throw null; } + public static implicit operator FineTuningStatus(string value) { throw null; } + public static implicit operator FineTuningStatus?(string value) { throw null; } + public static bool operator !=(FineTuningStatus left, FineTuningStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class FineTuningTrainingMethod : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FineTuningTrainingMethod() { } + public static FineTuningTrainingMethod CreateDirectPreferenceOptimization(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null, HyperparameterBetaFactor betaFactor = null) { throw null; } + public static FineTuningTrainingMethod CreateSupervised(HyperparameterBatchSize batchSize = null, HyperparameterEpochCount epochCount = null, HyperparameterLearningRate learningRate = null) { throw null; } + protected virtual FineTuningTrainingMethod JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuningTrainingMethod PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuningTrainingMethod System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuningTrainingMethod System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class GetCheckpointsOptions + { + public string AfterCheckpointId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + public partial class GetEventsOptions + { + public string AfterEventId { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + } + public partial class HyperparameterBatchSize : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterBatchSize(int batchSize) { } + public static HyperparameterBatchSize CreateAuto() { throw null; } + public static HyperparameterBatchSize CreateSize(int batchSize) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterBatchSize first, HyperparameterBatchSize second) { throw null; } + public static implicit operator HyperparameterBatchSize(int batchSize) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterBatchSize first, HyperparameterBatchSize second) { throw null; } + HyperparameterBatchSize System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterBatchSize System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class HyperparameterBetaFactor : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterBetaFactor(int beta) { } + public static HyperparameterBetaFactor CreateAuto() { throw null; } + public static HyperparameterBetaFactor CreateBeta(int beta) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterBetaFactor first, HyperparameterBetaFactor second) { throw null; } + public static implicit operator HyperparameterBetaFactor(int beta) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterBetaFactor first, HyperparameterBetaFactor second) { throw null; } + HyperparameterBetaFactor System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterBetaFactor System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class HyperparameterEpochCount : System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterEpochCount(int epochCount) { } + public static HyperparameterEpochCount CreateAuto() { throw null; } + public static HyperparameterEpochCount CreateEpochCount(int epochCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterEpochCount first, HyperparameterEpochCount second) { throw null; } + public static implicit operator HyperparameterEpochCount(int epochCount) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterEpochCount first, HyperparameterEpochCount second) { throw null; } + HyperparameterEpochCount System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterEpochCount System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class HyperparameterLearningRate : System.IEquatable, System.IEquatable, System.IEquatable, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HyperparameterLearningRate(double learningRateMultiplier) { } + public static HyperparameterLearningRate CreateAuto() { throw null; } + public static HyperparameterLearningRate CreateMultiplier(double learningRateMultiplier) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(double other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(int other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(string other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(HyperparameterLearningRate first, HyperparameterLearningRate second) { throw null; } + public static implicit operator HyperparameterLearningRate(double learningRateMultiplier) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(HyperparameterLearningRate first, HyperparameterLearningRate second) { throw null; } + HyperparameterLearningRate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparameterLearningRate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class HyperparametersForDPO : MethodHyperparameters, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int BatchSize { get { throw null; } } + public float Beta { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + protected virtual HyperparametersForDPO JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual HyperparametersForDPO PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + HyperparametersForDPO System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparametersForDPO System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class HyperparametersForSupervised : MethodHyperparameters, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int BatchSize { get { throw null; } } + public int EpochCount { get { throw null; } } + public float LearningRateMultiplier { get { throw null; } } + + protected virtual HyperparametersForSupervised JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual HyperparametersForSupervised PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + HyperparametersForSupervised System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + HyperparametersForSupervised System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class MethodHyperparameters + { + } + public partial class WeightsAndBiasesIntegration : FineTuningIntegration, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WeightsAndBiasesIntegration(string projectName) { } + public string DisplayName { get { throw null; } set { } } + public string EntityName { get { throw null; } set { } } + public string ProjectName { get { throw null; } set { } } + public System.Collections.Generic.IList Tags { get { throw null; } } + + protected override FineTuningIntegration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override FineTuningIntegration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WeightsAndBiasesIntegration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WeightsAndBiasesIntegration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Graders { - public class FineTuneReinforcementHyperparameters : IJsonModel, IPersistableModel { - public BinaryData BatchSize { get; set; } - public BinaryData ComputeMultiplier { get; set; } - public BinaryData EvalInterval { get; set; } - public BinaryData EvalSamples { get; set; } - public BinaryData LearningRateMultiplier { get; set; } - public BinaryData NEpochs { get; set; } - protected virtual FineTuneReinforcementHyperparameters JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FineTuneReinforcementHyperparameters PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - [PersistableModelProxy(typeof(UnknownGrader))] - public class Grader : IJsonModel, IPersistableModel { - protected virtual Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class GraderClient { - protected GraderClient(); - public GraderClient(ApiKeyCredential credential, OpenAIClientOptions options); - public GraderClient(ApiKeyCredential credential); - public GraderClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public GraderClient(AuthenticationPolicy authenticationPolicy); - protected internal GraderClient(ClientPipeline pipeline, OpenAIClientOptions options); - public GraderClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult RunGrader(BinaryContent content, RequestOptions options = null); - public virtual Task RunGraderAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult ValidateGrader(BinaryContent content, RequestOptions options = null); - public virtual Task ValidateGraderAsync(BinaryContent content, RequestOptions options = null); - } - public class GraderLabelModel : Grader, IJsonModel, IPersistableModel { - public IList Labels { get; } - public string Model { get; set; } - public string Name { get; set; } - public IList PassingLabels { get; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class GraderMulti : Grader, IJsonModel, IPersistableModel { - public GraderMulti(string name, BinaryData graders, string calculateOutput); - public string CalculateOutput { get; set; } - public BinaryData Graders { get; set; } - public string Name { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class GraderPython : Grader, IJsonModel, IPersistableModel { - public GraderPython(string name, string source); - public string ImageTag { get; set; } - public string Name { get; set; } - public string Source { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class GraderScoreModel : Grader, IJsonModel, IPersistableModel { - public string Model { get; set; } - public string Name { get; set; } - public IList Range { get; } - public BinaryData SamplingParams { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class GraderStringCheck : Grader, IJsonModel, IPersistableModel { - public GraderStringCheck(string name, string input, string reference, GraderStringCheckOperation operation); - public string Input { get; set; } - public string Name { get; set; } - public GraderStringCheckOperation Operation { get; set; } - public string Reference { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GraderStringCheckOperation : IEquatable { - public GraderStringCheckOperation(string value); - public static GraderStringCheckOperation Eq { get; } - public static GraderStringCheckOperation Ilike { get; } - public static GraderStringCheckOperation Like { get; } - public static GraderStringCheckOperation Ne { get; } - public readonly bool Equals(GraderStringCheckOperation other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right); - public static implicit operator GraderStringCheckOperation(string value); - public static implicit operator GraderStringCheckOperation?(string value); - public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right); - public override readonly string ToString(); - } - public class GraderTextSimilarity : Grader, IJsonModel, IPersistableModel { - public GraderTextSimilarity(string name, string input, string reference, GraderTextSimilarityEvaluationMetric evaluationMetric); - public GraderTextSimilarityEvaluationMetric EvaluationMetric { get; set; } - public string Input { get; set; } - public string Name { get; set; } - public string Reference { get; set; } - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GraderTextSimilarityEvaluationMetric : IEquatable { - public GraderTextSimilarityEvaluationMetric(string value); - public static GraderTextSimilarityEvaluationMetric Bleu { get; } - public static GraderTextSimilarityEvaluationMetric FuzzyMatch { get; } - public static GraderTextSimilarityEvaluationMetric Gleu { get; } - public static GraderTextSimilarityEvaluationMetric Meteor { get; } - public static GraderTextSimilarityEvaluationMetric Rouge1 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge2 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge3 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge4 { get; } - public static GraderTextSimilarityEvaluationMetric Rouge5 { get; } - public static GraderTextSimilarityEvaluationMetric RougeL { get; } - public readonly bool Equals(GraderTextSimilarityEvaluationMetric other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); - public static implicit operator GraderTextSimilarityEvaluationMetric(string value); - public static implicit operator GraderTextSimilarityEvaluationMetric?(string value); - public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); - public override readonly string ToString(); - } - public readonly partial struct GraderType : IEquatable { - public GraderType(string value); - public static GraderType LabelModel { get; } - public static GraderType Multi { get; } - public static GraderType Python { get; } - public static GraderType ScoreModel { get; } - public static GraderType StringCheck { get; } - public static GraderType TextSimilarity { get; } - public readonly bool Equals(GraderType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GraderType left, GraderType right); - public static implicit operator GraderType(string value); - public static implicit operator GraderType?(string value); - public static bool operator !=(GraderType left, GraderType right); - public override readonly string ToString(); - } - public class RunGraderRequest : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - public BinaryData Item { get; } - public string ModelSample { get; } - protected virtual RunGraderRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunGraderResponse : IJsonModel, IPersistableModel { - public RunGraderResponseMetadata Metadata { get; } - public BinaryData ModelGraderTokenUsagePerModel { get; } - public float Reward { get; } - public BinaryData SubRewards { get; } - protected virtual RunGraderResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RunGraderResponse(ClientResult result); - protected virtual RunGraderResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunGraderResponseMetadata : IJsonModel, IPersistableModel { - public RunGraderResponseMetadataErrors Errors { get; } - public float ExecutionTime { get; } - public string Kind { get; } - public string Name { get; } - public string SampledModelName { get; } - public BinaryData Scores { get; } - public int? TokenUsage { get; } - protected virtual RunGraderResponseMetadata JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderResponseMetadata PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RunGraderResponseMetadataErrors : IJsonModel, IPersistableModel { - public bool FormulaParseError { get; } - public bool InvalidVariableError { get; } - public bool ModelGraderParseError { get; } - public bool ModelGraderRefusalError { get; } - public bool ModelGraderServerError { get; } - public string ModelGraderServerErrorDetails { get; } - public bool OtherError { get; } - public bool PythonGraderRuntimeError { get; } - public string PythonGraderRuntimeErrorDetails { get; } - public bool PythonGraderServerError { get; } - public string PythonGraderServerErrorType { get; } - public bool SampleParseError { get; } - public bool TruncatedObservationError { get; } - public bool UnresponsiveRewardError { get; } - protected virtual RunGraderResponseMetadataErrors JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RunGraderResponseMetadataErrors PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class UnknownGrader : Grader, IJsonModel, IPersistableModel { - protected override Grader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override Grader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ValidateGraderRequest : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - protected virtual ValidateGraderRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ValidateGraderRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ValidateGraderResponse : IJsonModel, IPersistableModel { - public BinaryData Grader { get; } - protected virtual ValidateGraderResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ValidateGraderResponse(ClientResult result); - protected virtual ValidateGraderResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + +namespace OpenAI.Graders +{ + public partial class FineTuneReinforcementHyperparameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.BinaryData BatchSize { get { throw null; } set { } } + public System.BinaryData ComputeMultiplier { get { throw null; } set { } } + public System.BinaryData EvalInterval { get { throw null; } set { } } + public System.BinaryData EvalSamples { get { throw null; } set { } } + public System.BinaryData LearningRateMultiplier { get { throw null; } set { } } + public System.BinaryData NEpochs { get { throw null; } set { } } + + protected virtual FineTuneReinforcementHyperparameters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FineTuneReinforcementHyperparameters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FineTuneReinforcementHyperparameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FineTuneReinforcementHyperparameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + [System.ClientModel.Primitives.PersistableModelProxy(typeof(UnknownGrader))] + public partial class Grader : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal Grader() { } + protected virtual Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Grader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Grader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class GraderClient + { + protected GraderClient() { } + public GraderClient(GraderClientSettings settings) { } + public GraderClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public GraderClient(System.ClientModel.ApiKeyCredential credential) { } + public GraderClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public GraderClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal GraderClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public GraderClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult RunGrader(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RunGraderAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ValidateGrader(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ValidateGraderAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + public sealed partial class GraderClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class GraderLabelModel : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GraderLabelModel() { } + public System.Collections.Generic.IList Labels { get { throw null; } } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList PassingLabels { get { throw null; } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderLabelModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderLabelModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class GraderMulti : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderMulti(string name, System.BinaryData graders, string calculateOutput) { } + public string CalculateOutput { get { throw null; } set { } } + public System.BinaryData Graders { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderMulti System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderMulti System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class GraderPython : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderPython(string name, string source) { } + public string ImageTag { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Source { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderPython System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderPython System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class GraderScoreModel : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GraderScoreModel() { } + public string Model { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Range { get { throw null; } } + public System.BinaryData SamplingParams { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderScoreModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderScoreModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class GraderStringCheck : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderStringCheck(string name, string input, string reference, GraderStringCheckOperation operation) { } + public string Input { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public GraderStringCheckOperation Operation { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderStringCheck System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderStringCheck System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GraderStringCheckOperation : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderStringCheckOperation(string value) { } + public static GraderStringCheckOperation Eq { get { throw null; } } + public static GraderStringCheckOperation Ilike { get { throw null; } } + public static GraderStringCheckOperation Like { get { throw null; } } + public static GraderStringCheckOperation Ne { get { throw null; } } + + public readonly bool Equals(GraderStringCheckOperation other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right) { throw null; } + public static implicit operator GraderStringCheckOperation(string value) { throw null; } + public static implicit operator GraderStringCheckOperation?(string value) { throw null; } + public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class GraderTextSimilarity : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GraderTextSimilarity(string name, string input, string reference, GraderTextSimilarityEvaluationMetric evaluationMetric) { } + public GraderTextSimilarityEvaluationMetric EvaluationMetric { get { throw null; } set { } } + public string Input { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GraderTextSimilarity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GraderTextSimilarity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GraderTextSimilarityEvaluationMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderTextSimilarityEvaluationMetric(string value) { } + public static GraderTextSimilarityEvaluationMetric Bleu { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric FuzzyMatch { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Gleu { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Meteor { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge1 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge2 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge3 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge4 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric Rouge5 { get { throw null; } } + public static GraderTextSimilarityEvaluationMetric RougeL { get { throw null; } } + + public readonly bool Equals(GraderTextSimilarityEvaluationMetric other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right) { throw null; } + public static implicit operator GraderTextSimilarityEvaluationMetric(string value) { throw null; } + public static implicit operator GraderTextSimilarityEvaluationMetric?(string value) { throw null; } + public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GraderType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GraderType(string value) { } + public static GraderType LabelModel { get { throw null; } } + public static GraderType Multi { get { throw null; } } + public static GraderType Python { get { throw null; } } + public static GraderType ScoreModel { get { throw null; } } + public static GraderType StringCheck { get { throw null; } } + public static GraderType TextSimilarity { get { throw null; } } + + public readonly bool Equals(GraderType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GraderType left, GraderType right) { throw null; } + public static implicit operator GraderType(string value) { throw null; } + public static implicit operator GraderType?(string value) { throw null; } + public static bool operator !=(GraderType left, GraderType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RunGraderRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderRequest() { } + public System.BinaryData Grader { get { throw null; } } + public System.BinaryData Item { get { throw null; } } + public string ModelSample { get { throw null; } } + + protected virtual RunGraderRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunGraderResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponse() { } + public RunGraderResponseMetadata Metadata { get { throw null; } } + public System.BinaryData ModelGraderTokenUsagePerModel { get { throw null; } } + public float Reward { get { throw null; } } + public System.BinaryData SubRewards { get { throw null; } } + + protected virtual RunGraderResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RunGraderResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual RunGraderResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunGraderResponseMetadata : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponseMetadata() { } + public RunGraderResponseMetadataErrors Errors { get { throw null; } } + public float ExecutionTime { get { throw null; } } + public string Kind { get { throw null; } } + public string Name { get { throw null; } } + public string SampledModelName { get { throw null; } } + public System.BinaryData Scores { get { throw null; } } + public int? TokenUsage { get { throw null; } } + + protected virtual RunGraderResponseMetadata JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderResponseMetadata PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponseMetadata System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponseMetadata System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RunGraderResponseMetadataErrors : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RunGraderResponseMetadataErrors() { } + public bool FormulaParseError { get { throw null; } } + public bool InvalidVariableError { get { throw null; } } + public bool ModelGraderParseError { get { throw null; } } + public bool ModelGraderRefusalError { get { throw null; } } + public bool ModelGraderServerError { get { throw null; } } + public string ModelGraderServerErrorDetails { get { throw null; } } + public bool OtherError { get { throw null; } } + public bool PythonGraderRuntimeError { get { throw null; } } + public string PythonGraderRuntimeErrorDetails { get { throw null; } } + public bool PythonGraderServerError { get { throw null; } } + public string PythonGraderServerErrorType { get { throw null; } } + public bool SampleParseError { get { throw null; } } + public bool TruncatedObservationError { get { throw null; } } + public bool UnresponsiveRewardError { get { throw null; } } + + protected virtual RunGraderResponseMetadataErrors JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RunGraderResponseMetadataErrors PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RunGraderResponseMetadataErrors System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RunGraderResponseMetadataErrors System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class UnknownGrader : Grader, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal UnknownGrader() { } + protected override Grader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override Grader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Grader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Grader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ValidateGraderRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidateGraderRequest() { } + public System.BinaryData Grader { get { throw null; } } + + protected virtual ValidateGraderRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ValidateGraderRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ValidateGraderRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ValidateGraderRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ValidateGraderResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidateGraderResponse() { } + public System.BinaryData Grader { get { throw null; } } + + protected virtual ValidateGraderResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ValidateGraderResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual ValidateGraderResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ValidateGraderResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ValidateGraderResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Images { - public class GeneratedImage : IJsonModel, IPersistableModel { - public BinaryData ImageBytes { get; } - public Uri ImageUri { get; } - public string RevisedPrompt { get; } - protected virtual GeneratedImage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual GeneratedImage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GeneratedImageBackground : IEquatable { - public GeneratedImageBackground(string value); - public static GeneratedImageBackground Auto { get; } - public static GeneratedImageBackground Opaque { get; } - public static GeneratedImageBackground Transparent { get; } - public readonly bool Equals(GeneratedImageBackground other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageBackground left, GeneratedImageBackground right); - public static implicit operator GeneratedImageBackground(string value); - public static implicit operator GeneratedImageBackground?(string value); - public static bool operator !=(GeneratedImageBackground left, GeneratedImageBackground right); - public override readonly string ToString(); - } - public class GeneratedImageCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - public GeneratedImageBackground? Background { get; } - public DateTimeOffset CreatedAt { get; } - public GeneratedImageFileFormat? OutputFileFormat { get; } - public GeneratedImageQuality? Quality { get; } - public GeneratedImageSize? Size { get; } - public ImageTokenUsage Usage { get; } - protected virtual GeneratedImageCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator GeneratedImageCollection(ClientResult result); - protected virtual GeneratedImageCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GeneratedImageFileFormat : IEquatable { - public GeneratedImageFileFormat(string value); - public static GeneratedImageFileFormat Jpeg { get; } - public static GeneratedImageFileFormat Png { get; } - public static GeneratedImageFileFormat Webp { get; } - public readonly bool Equals(GeneratedImageFileFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageFileFormat left, GeneratedImageFileFormat right); - public static implicit operator GeneratedImageFileFormat(string value); - public static implicit operator GeneratedImageFileFormat?(string value); - public static bool operator !=(GeneratedImageFileFormat left, GeneratedImageFileFormat right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageFormat : IEquatable { - public GeneratedImageFormat(string value); - public static GeneratedImageFormat Bytes { get; } - public static GeneratedImageFormat Uri { get; } - public readonly bool Equals(GeneratedImageFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageFormat left, GeneratedImageFormat right); - public static implicit operator GeneratedImageFormat(string value); - public static implicit operator GeneratedImageFormat?(string value); - public static bool operator !=(GeneratedImageFormat left, GeneratedImageFormat right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageModerationLevel : IEquatable { - public GeneratedImageModerationLevel(string value); - public static GeneratedImageModerationLevel Auto { get; } - public static GeneratedImageModerationLevel Low { get; } - public readonly bool Equals(GeneratedImageModerationLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right); - public static implicit operator GeneratedImageModerationLevel(string value); - public static implicit operator GeneratedImageModerationLevel?(string value); - public static bool operator !=(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageQuality : IEquatable { - public GeneratedImageQuality(string value); - public static GeneratedImageQuality Auto { get; } - public static GeneratedImageQuality HD { get; } - public static GeneratedImageQuality High { get; } - public static GeneratedImageQuality Low { get; } - public static GeneratedImageQuality Medium { get; } - public static GeneratedImageQuality Standard { get; } - public readonly bool Equals(GeneratedImageQuality other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageQuality left, GeneratedImageQuality right); - public static implicit operator GeneratedImageQuality(string value); - public static implicit operator GeneratedImageQuality?(string value); - public static bool operator !=(GeneratedImageQuality left, GeneratedImageQuality right); - public override readonly string ToString(); - } - public readonly partial struct GeneratedImageSize : IEquatable { + +namespace OpenAI.Images +{ + public partial class GeneratedImage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GeneratedImage() { } + public System.BinaryData ImageBytes { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + public string RevisedPrompt { get { throw null; } } + + protected virtual GeneratedImage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual GeneratedImage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GeneratedImage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GeneratedImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GeneratedImageBackground : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageBackground(string value) { } + public static GeneratedImageBackground Auto { get { throw null; } } + public static GeneratedImageBackground Opaque { get { throw null; } } + public static GeneratedImageBackground Transparent { get { throw null; } } + + public readonly bool Equals(GeneratedImageBackground other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageBackground left, GeneratedImageBackground right) { throw null; } + public static implicit operator GeneratedImageBackground(string value) { throw null; } + public static implicit operator GeneratedImageBackground?(string value) { throw null; } + public static bool operator !=(GeneratedImageBackground left, GeneratedImageBackground right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class GeneratedImageCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal GeneratedImageCollection() : base(default!) { } + public GeneratedImageBackground? Background { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } } + public GeneratedImageQuality? Quality { get { throw null; } } + public GeneratedImageSize? Size { get { throw null; } } + public ImageTokenUsage Usage { get { throw null; } } + + protected virtual GeneratedImageCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator GeneratedImageCollection(System.ClientModel.ClientResult result) { throw null; } + protected virtual GeneratedImageCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GeneratedImageCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GeneratedImageCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GeneratedImageFileFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageFileFormat(string value) { } + public static GeneratedImageFileFormat Jpeg { get { throw null; } } + public static GeneratedImageFileFormat Png { get { throw null; } } + public static GeneratedImageFileFormat Webp { get { throw null; } } + + public readonly bool Equals(GeneratedImageFileFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageFileFormat left, GeneratedImageFileFormat right) { throw null; } + public static implicit operator GeneratedImageFileFormat(string value) { throw null; } + public static implicit operator GeneratedImageFileFormat?(string value) { throw null; } + public static bool operator !=(GeneratedImageFileFormat left, GeneratedImageFileFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageFormat(string value) { } + public static GeneratedImageFormat Bytes { get { throw null; } } + public static GeneratedImageFormat Uri { get { throw null; } } + + public readonly bool Equals(GeneratedImageFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageFormat left, GeneratedImageFormat right) { throw null; } + public static implicit operator GeneratedImageFormat(string value) { throw null; } + public static implicit operator GeneratedImageFormat?(string value) { throw null; } + public static bool operator !=(GeneratedImageFormat left, GeneratedImageFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageModerationLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageModerationLevel(string value) { } + public static GeneratedImageModerationLevel Auto { get { throw null; } } + public static GeneratedImageModerationLevel Low { get { throw null; } } + + public readonly bool Equals(GeneratedImageModerationLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right) { throw null; } + public static implicit operator GeneratedImageModerationLevel(string value) { throw null; } + public static implicit operator GeneratedImageModerationLevel?(string value) { throw null; } + public static bool operator !=(GeneratedImageModerationLevel left, GeneratedImageModerationLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageQuality : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageQuality(string value) { } + public static GeneratedImageQuality Auto { get { throw null; } } + public static GeneratedImageQuality HD { get { throw null; } } + public static GeneratedImageQuality High { get { throw null; } } + public static GeneratedImageQuality Low { get { throw null; } } + public static GeneratedImageQuality Medium { get { throw null; } } + public static GeneratedImageQuality Standard { get { throw null; } } + + public readonly bool Equals(GeneratedImageQuality other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageQuality left, GeneratedImageQuality right) { throw null; } + public static implicit operator GeneratedImageQuality(string value) { throw null; } + public static implicit operator GeneratedImageQuality?(string value) { throw null; } + public static bool operator !=(GeneratedImageQuality left, GeneratedImageQuality right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; public static readonly GeneratedImageSize W1024xH1024; public static readonly GeneratedImageSize W1024xH1536; public static readonly GeneratedImageSize W1024xH1792; @@ -3225,1116 +5312,1778 @@ public class GeneratedImageCollection : ObjectModel.ReadOnlyCollection { - public GeneratedImageStyle(string value); - public static GeneratedImageStyle Natural { get; } - public static GeneratedImageStyle Vivid { get; } - public readonly bool Equals(GeneratedImageStyle other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GeneratedImageStyle left, GeneratedImageStyle right); - public static implicit operator GeneratedImageStyle(string value); - public static implicit operator GeneratedImageStyle?(string value); - public static bool operator !=(GeneratedImageStyle left, GeneratedImageStyle right); - public override readonly string ToString(); - } - public class ImageClient { - protected ImageClient(); - protected internal ImageClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ImageClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ImageClient(string model, ApiKeyCredential credential); - public ImageClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ImageClient(string model, AuthenticationPolicy authenticationPolicy); - public ImageClient(string model, string apiKey); - public Uri Endpoint { get; } - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult GenerateImage(string prompt, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageAsync(string prompt, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(Stream image, string imageFilename, string prompt, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdit(string imageFilePath, string prompt, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdit(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null); - public virtual Task> GenerateImageEditAsync(Stream image, string imageFilename, string prompt, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditAsync(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditAsync(string imageFilePath, string prompt, ImageEditOptions options = null); - public virtual Task> GenerateImageEditAsync(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdits(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult GenerateImageEdits(Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdits(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageEdits(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null); - public virtual ClientResult GenerateImageEdits(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null); - public virtual Task GenerateImageEditsAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> GenerateImageEditsAsync(Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditsAsync(Stream image, string imageFilename, string prompt, Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageEditsAsync(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null); - public virtual Task> GenerateImageEditsAsync(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null); - public virtual ClientResult GenerateImages(BinaryContent content, RequestOptions options = null); - public virtual ClientResult GenerateImages(string prompt, int imageCount, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task GenerateImagesAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> GenerateImagesAsync(string prompt, int imageCount, ImageGenerationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariation(Stream image, string imageFilename, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariation(string imageFilePath, ImageVariationOptions options = null); - public virtual Task> GenerateImageVariationAsync(Stream image, string imageFilename, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageVariationAsync(string imageFilePath, ImageVariationOptions options = null); - public virtual ClientResult GenerateImageVariations(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult GenerateImageVariations(Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult GenerateImageVariations(string imageFilePath, int imageCount, ImageVariationOptions options = null); - public virtual Task GenerateImageVariationsAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task> GenerateImageVariationsAsync(Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task> GenerateImageVariationsAsync(string imageFilePath, int imageCount, ImageVariationOptions options = null); - } - public class ImageEditOptions : IJsonModel, IPersistableModel { - public GeneratedImageBackground? Background { get; set; } - public string EndUserId { get; set; } - public ImageInputFidelity? InputFidelity { get; set; } - public int? OutputCompressionFactor { get; set; } - public GeneratedImageFileFormat? OutputFileFormat { get; set; } - public GeneratedImageQuality? Quality { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - protected virtual ImageEditOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageEditOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageGenerationOptions : IJsonModel, IPersistableModel { - public GeneratedImageBackground? Background { get; set; } - public string EndUserId { get; set; } - public GeneratedImageModerationLevel? ModerationLevel { get; set; } - public int? OutputCompressionFactor { get; set; } - public GeneratedImageFileFormat? OutputFileFormat { get; set; } - public GeneratedImageQuality? Quality { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - public GeneratedImageStyle? Style { get; set; } - protected virtual ImageGenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageGenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ImageInputFidelity : IEquatable { - public ImageInputFidelity(string value); - public static ImageInputFidelity High { get; } - public static ImageInputFidelity Low { get; } - public readonly bool Equals(ImageInputFidelity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageInputFidelity left, ImageInputFidelity right); - public static implicit operator ImageInputFidelity(string value); - public static implicit operator ImageInputFidelity?(string value); - public static bool operator !=(ImageInputFidelity left, ImageInputFidelity right); - public override readonly string ToString(); - } - public class ImageInputTokenUsageDetails : IJsonModel, IPersistableModel { - public long ImageTokenCount { get; } - public long TextTokenCount { get; } - protected virtual ImageInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageOutputTokenUsageDetails : IJsonModel, IPersistableModel { - public long ImageTokenCount { get; } - public long TextTokenCount { get; } - protected virtual ImageOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageTokenUsage : IJsonModel, IPersistableModel { - public long InputTokenCount { get; } - public ImageInputTokenUsageDetails InputTokenDetails { get; } - public long OutputTokenCount { get; } - public ImageOutputTokenUsageDetails OutputTokenDetails { get; } - public long TotalTokenCount { get; } - protected virtual ImageTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ImageVariationOptions : IJsonModel, IPersistableModel { - public string EndUserId { get; set; } - public GeneratedImageFormat? ResponseFormat { get; set; } - public GeneratedImageSize? Size { get; set; } - protected virtual ImageVariationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageVariationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIImagesModelFactory { - public static GeneratedImage GeneratedImage(BinaryData imageBytes = null, Uri imageUri = null, string revisedPrompt = null); - public static GeneratedImageCollection GeneratedImageCollection(DateTimeOffset createdAt = default, IEnumerable items = null, GeneratedImageBackground? background = null, GeneratedImageFileFormat? outputFileFormat = null, GeneratedImageSize? size = null, GeneratedImageQuality? quality = null, ImageTokenUsage usage = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static GeneratedImageCollection GeneratedImageCollection(DateTimeOffset createdAt, IEnumerable items); - public static ImageInputTokenUsageDetails ImageInputTokenUsageDetails(long textTokenCount = 0, long imageTokenCount = 0); - public static ImageTokenUsage ImageTokenUsage(long inputTokenCount = 0, long outputTokenCount = 0, long totalTokenCount = 0, ImageInputTokenUsageDetails inputTokenDetails = null, ImageOutputTokenUsageDetails outputTokenDetails = null); + public GeneratedImageSize(int width, int height) { } + public static GeneratedImageSize Auto { get { throw null; } } + + public readonly bool Equals(GeneratedImageSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageSize left, GeneratedImageSize right) { throw null; } + public static bool operator !=(GeneratedImageSize left, GeneratedImageSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct GeneratedImageStyle : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GeneratedImageStyle(string value) { } + public static GeneratedImageStyle Natural { get { throw null; } } + public static GeneratedImageStyle Vivid { get { throw null; } } + + public readonly bool Equals(GeneratedImageStyle other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GeneratedImageStyle left, GeneratedImageStyle right) { throw null; } + public static implicit operator GeneratedImageStyle(string value) { throw null; } + public static implicit operator GeneratedImageStyle?(string value) { throw null; } + public static bool operator !=(GeneratedImageStyle left, GeneratedImageStyle right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ImageClient + { + protected ImageClient() { } + public ImageClient(ImageClientSettings settings) { } + protected internal ImageClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ImageClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ImageClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public ImageClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ImageClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ImageClient(string model, string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult GenerateImage(string prompt, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageAsync(string prompt, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(System.IO.Stream image, string imageFilename, string prompt, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(string imageFilePath, string prompt, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdit(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(System.IO.Stream image, string imageFilename, string prompt, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(string imageFilePath, string prompt, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditAsync(string imageFilePath, string prompt, string maskFilePath, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.IO.Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageEdits(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImageEditsAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(System.IO.Stream image, string imageFilename, string prompt, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(System.IO.Stream image, string imageFilename, string prompt, System.IO.Stream mask, string maskFilename, int imageCount, ImageEditOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(string imageFilePath, string prompt, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageEditsAsync(string imageFilePath, string prompt, string maskFilePath, int imageCount, ImageEditOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImages(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImages(string prompt, int imageCount, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImagesAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImagesAsync(string prompt, int imageCount, ImageGenerationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariation(System.IO.Stream image, string imageFilename, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariation(string imageFilePath, ImageVariationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationAsync(System.IO.Stream image, string imageFilename, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationAsync(string imageFilePath, ImageVariationOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(System.IO.Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GenerateImageVariations(string imageFilePath, int imageCount, ImageVariationOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GenerateImageVariationsAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationsAsync(System.IO.Stream image, string imageFilename, int imageCount, ImageVariationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateImageVariationsAsync(string imageFilePath, int imageCount, ImageVariationOptions options = null) { throw null; } + } + public sealed partial class ImageClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ImageEditOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GeneratedImageBackground? Background { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public ImageInputFidelity? InputFidelity { get { throw null; } set { } } + public int? OutputCompressionFactor { get { throw null; } set { } } + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } set { } } + public GeneratedImageQuality? Quality { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + + protected virtual ImageEditOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageEditOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageEditOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageEditOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageGenerationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GeneratedImageBackground? Background { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public GeneratedImageModerationLevel? ModerationLevel { get { throw null; } set { } } + public int? OutputCompressionFactor { get { throw null; } set { } } + public GeneratedImageFileFormat? OutputFileFormat { get { throw null; } set { } } + public GeneratedImageQuality? Quality { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + public GeneratedImageStyle? Style { get { throw null; } set { } } + + protected virtual ImageGenerationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageGenerationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ImageInputFidelity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageInputFidelity(string value) { } + public static ImageInputFidelity High { get { throw null; } } + public static ImageInputFidelity Low { get { throw null; } } + + public readonly bool Equals(ImageInputFidelity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageInputFidelity left, ImageInputFidelity right) { throw null; } + public static implicit operator ImageInputFidelity(string value) { throw null; } + public static implicit operator ImageInputFidelity?(string value) { throw null; } + public static bool operator !=(ImageInputFidelity left, ImageInputFidelity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ImageInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageInputTokenUsageDetails() { } + public long ImageTokenCount { get { throw null; } } + public long TextTokenCount { get { throw null; } } + + protected virtual ImageInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageOutputTokenUsageDetails() { } + public long ImageTokenCount { get { throw null; } } + public long TextTokenCount { get { throw null; } } + + protected virtual ImageOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ImageTokenUsage() { } + public long InputTokenCount { get { throw null; } } + public ImageInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public long OutputTokenCount { get { throw null; } } + public ImageOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + public long TotalTokenCount { get { throw null; } } + + protected virtual ImageTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ImageVariationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string EndUserId { get { throw null; } set { } } + public GeneratedImageFormat? ResponseFormat { get { throw null; } set { } } + public GeneratedImageSize? Size { get { throw null; } set { } } + + protected virtual ImageVariationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageVariationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageVariationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageVariationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIImagesModelFactory + { + public static GeneratedImage GeneratedImage(System.BinaryData imageBytes = null, System.Uri imageUri = null, string revisedPrompt = null) { throw null; } + public static GeneratedImageCollection GeneratedImageCollection(System.DateTimeOffset createdAt = default, System.Collections.Generic.IEnumerable items = null, GeneratedImageBackground? background = null, GeneratedImageFileFormat? outputFileFormat = null, GeneratedImageSize? size = null, GeneratedImageQuality? quality = null, ImageTokenUsage usage = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static GeneratedImageCollection GeneratedImageCollection(System.DateTimeOffset createdAt, System.Collections.Generic.IEnumerable items) { throw null; } + public static ImageInputTokenUsageDetails ImageInputTokenUsageDetails(long textTokenCount = 0, long imageTokenCount = 0) { throw null; } + public static ImageTokenUsage ImageTokenUsage(long inputTokenCount = 0, long outputTokenCount = 0, long totalTokenCount = 0, ImageInputTokenUsageDetails inputTokenDetails = null, ImageOutputTokenUsageDetails outputTokenDetails = null) { throw null; } } } -namespace OpenAI.Models { - public class ModelDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string ModelId { get; } - protected virtual ModelDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ModelDeletionResult(ClientResult result); - protected virtual ModelDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIModel : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public string Id { get; } - public string OwnedBy { get; } - protected virtual OpenAIModel JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator OpenAIModel(ClientResult result); - protected virtual OpenAIModel PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OpenAIModelClient { - protected OpenAIModelClient(); - public OpenAIModelClient(ApiKeyCredential credential, OpenAIClientOptions options); - public OpenAIModelClient(ApiKeyCredential credential); - public OpenAIModelClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public OpenAIModelClient(AuthenticationPolicy authenticationPolicy); - protected internal OpenAIModelClient(ClientPipeline pipeline, OpenAIClientOptions options); - public OpenAIModelClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult DeleteModel(string model, RequestOptions options); - public virtual ClientResult DeleteModel(string model, CancellationToken cancellationToken = default); - public virtual Task DeleteModelAsync(string model, RequestOptions options); - public virtual Task> DeleteModelAsync(string model, CancellationToken cancellationToken = default); - public virtual ClientResult GetModel(string model, RequestOptions options); - public virtual ClientResult GetModel(string model, CancellationToken cancellationToken = default); - public virtual Task GetModelAsync(string model, RequestOptions options); - public virtual Task> GetModelAsync(string model, CancellationToken cancellationToken = default); - public virtual ClientResult GetModels(RequestOptions options); - public virtual ClientResult GetModels(CancellationToken cancellationToken = default); - public virtual Task GetModelsAsync(RequestOptions options); - public virtual Task> GetModelsAsync(CancellationToken cancellationToken = default); - } - public class OpenAIModelCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - protected virtual OpenAIModelCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator OpenAIModelCollection(ClientResult result); - protected virtual OpenAIModelCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIModelsModelFactory { - public static ModelDeletionResult ModelDeletionResult(string modelId = null, bool deleted = false); - public static OpenAIModel OpenAIModel(string id = null, DateTimeOffset createdAt = default, string ownedBy = null); - public static OpenAIModelCollection OpenAIModelCollection(IEnumerable items = null); + +namespace OpenAI.Models +{ + public partial class ModelDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModelDeletionResult() { } + public bool Deleted { get { throw null; } } + public string ModelId { get { throw null; } } + + protected virtual ModelDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ModelDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ModelDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModelDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModelDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIModel() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string Id { get { throw null; } } + public string OwnedBy { get { throw null; } } + + protected virtual OpenAIModel JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator OpenAIModel(System.ClientModel.ClientResult result) { throw null; } + protected virtual OpenAIModel PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OpenAIModelClient + { + protected OpenAIModelClient() { } + public OpenAIModelClient(OpenAIModelClientSettings settings) { } + public OpenAIModelClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public OpenAIModelClient(System.ClientModel.ApiKeyCredential credential) { } + public OpenAIModelClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public OpenAIModelClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal OpenAIModelClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public OpenAIModelClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult DeleteModel(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteModel(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteModelAsync(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteModelAsync(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetModel(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetModel(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetModelAsync(string model, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetModelAsync(string model, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetModels(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetModels(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetModelsAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetModelsAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public sealed partial class OpenAIModelClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class OpenAIModelCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OpenAIModelCollection() : base(default!) { } + protected virtual OpenAIModelCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator OpenAIModelCollection(System.ClientModel.ClientResult result) { throw null; } + protected virtual OpenAIModelCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OpenAIModelCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OpenAIModelCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIModelsModelFactory + { + public static ModelDeletionResult ModelDeletionResult(string modelId = null, bool deleted = false) { throw null; } + public static OpenAIModel OpenAIModel(string id = null, System.DateTimeOffset createdAt = default, string ownedBy = null) { throw null; } + public static OpenAIModelCollection OpenAIModelCollection(System.Collections.Generic.IEnumerable items = null) { throw null; } } } -namespace OpenAI.Moderations { - [Flags] - public enum ModerationApplicableInputKinds { + +namespace OpenAI.Moderations +{ + [System.Flags] + public enum ModerationApplicableInputKinds + { None = 0, Other = 1, Text = 2, Image = 4 } - public class ModerationCategory { - public ModerationApplicableInputKinds ApplicableInputKinds { get; } - public bool Flagged { get; } - public float Score { get; } - } - public class ModerationClient { - protected ModerationClient(); - protected internal ModerationClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ModerationClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ModerationClient(string model, ApiKeyCredential credential); - public ModerationClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ModerationClient(string model, AuthenticationPolicy authenticationPolicy); - public ModerationClient(string model, string apiKey); - public Uri Endpoint { get; } - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult ClassifyInputs(BinaryContent content, RequestOptions options = null); - public virtual ClientResult ClassifyInputs(IEnumerable inputParts, CancellationToken cancellationToken = default); - public virtual Task ClassifyInputsAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> ClassifyInputsAsync(IEnumerable inputParts, CancellationToken cancellationToken = default); - public virtual ClientResult ClassifyText(BinaryContent content, RequestOptions options = null); - public virtual ClientResult ClassifyText(IEnumerable inputs, CancellationToken cancellationToken = default); - public virtual ClientResult ClassifyText(string input, CancellationToken cancellationToken = default); - public virtual Task ClassifyTextAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> ClassifyTextAsync(IEnumerable inputs, CancellationToken cancellationToken = default); - public virtual Task> ClassifyTextAsync(string input, CancellationToken cancellationToken = default); - } - public class ModerationInputPart : IJsonModel, IPersistableModel { - public Uri ImageUri { get; } - public ModerationInputPartKind Kind { get; } - public string Text { get; } - public static ModerationInputPart CreateImagePart(Uri imageUri); - public static ModerationInputPart CreateTextPart(string text); - protected virtual ModerationInputPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ModerationInputPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ModerationInputPartKind { + + public partial class ModerationCategory + { + internal ModerationCategory() { } + public ModerationApplicableInputKinds ApplicableInputKinds { get { throw null; } } + public bool Flagged { get { throw null; } } + public float Score { get { throw null; } } + } + public partial class ModerationClient + { + protected ModerationClient() { } + public ModerationClient(ModerationClientSettings settings) { } + protected internal ModerationClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ModerationClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ModerationClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public ModerationClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ModerationClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ModerationClient(string model, string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult ClassifyInputs(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyInputs(System.Collections.Generic.IEnumerable inputParts, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ClassifyInputsAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ClassifyInputsAsync(System.Collections.Generic.IEnumerable inputParts, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(System.Collections.Generic.IEnumerable inputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ClassifyText(string input, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ClassifyTextAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ClassifyTextAsync(System.Collections.Generic.IEnumerable inputs, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> ClassifyTextAsync(string input, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public sealed partial class ModerationClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class ModerationInputPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationInputPart() { } + public System.Uri ImageUri { get { throw null; } } + public ModerationInputPartKind Kind { get { throw null; } } + public string Text { get { throw null; } } + + public static ModerationInputPart CreateImagePart(System.Uri imageUri) { throw null; } + public static ModerationInputPart CreateTextPart(string text) { throw null; } + protected virtual ModerationInputPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ModerationInputPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationInputPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationInputPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ModerationInputPartKind + { Text = 0, Image = 1 } - public class ModerationResult : IJsonModel, IPersistableModel { - public bool Flagged { get; } - public ModerationCategory Harassment { get; } - public ModerationCategory HarassmentThreatening { get; } - public ModerationCategory Hate { get; } - public ModerationCategory HateThreatening { get; } - public ModerationCategory Illicit { get; } - public ModerationCategory IllicitViolent { get; } - public ModerationCategory SelfHarm { get; } - public ModerationCategory SelfHarmInstructions { get; } - public ModerationCategory SelfHarmIntent { get; } - public ModerationCategory Sexual { get; } - public ModerationCategory SexualMinors { get; } - public ModerationCategory Violence { get; } - public ModerationCategory ViolenceGraphic { get; } - protected virtual ModerationResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ModerationResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ModerationResultCollection : ObjectModel.ReadOnlyCollection, IJsonModel, IPersistableModel { - public string Id { get; } - public string Model { get; } - protected virtual ModerationResultCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ModerationResultCollection(ClientResult result); - protected virtual ModerationResultCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public static class OpenAIModerationsModelFactory { - public static ModerationCategory ModerationCategory(bool flagged = false, float score = 0); - public static ModerationResult ModerationResult(bool flagged = false, ModerationCategory hate = null, ModerationCategory hateThreatening = null, ModerationCategory harassment = null, ModerationCategory harassmentThreatening = null, ModerationCategory selfHarm = null, ModerationCategory selfHarmIntent = null, ModerationCategory selfHarmInstructions = null, ModerationCategory sexual = null, ModerationCategory sexualMinors = null, ModerationCategory violence = null, ModerationCategory violenceGraphic = null, ModerationCategory illicit = null, ModerationCategory illicitViolent = null); - [EditorBrowsable(EditorBrowsableState.Never)] - public static ModerationResult ModerationResult(bool flagged, ModerationCategory hate, ModerationCategory hateThreatening, ModerationCategory harassment, ModerationCategory harassmentThreatening, ModerationCategory selfHarm, ModerationCategory selfHarmIntent, ModerationCategory selfHarmInstructions, ModerationCategory sexual, ModerationCategory sexualMinors, ModerationCategory violence, ModerationCategory violenceGraphic); - public static ModerationResultCollection ModerationResultCollection(string id = null, string model = null, IEnumerable items = null); + + public partial class ModerationResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationResult() { } + public bool Flagged { get { throw null; } } + public ModerationCategory Harassment { get { throw null; } } + public ModerationCategory HarassmentThreatening { get { throw null; } } + public ModerationCategory Hate { get { throw null; } } + public ModerationCategory HateThreatening { get { throw null; } } + public ModerationCategory Illicit { get { throw null; } } + public ModerationCategory IllicitViolent { get { throw null; } } + public ModerationCategory SelfHarm { get { throw null; } } + public ModerationCategory SelfHarmInstructions { get { throw null; } } + public ModerationCategory SelfHarmIntent { get { throw null; } } + public ModerationCategory Sexual { get { throw null; } } + public ModerationCategory SexualMinors { get { throw null; } } + public ModerationCategory Violence { get { throw null; } } + public ModerationCategory ViolenceGraphic { get { throw null; } } + + protected virtual ModerationResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ModerationResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ModerationResultCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModerationResultCollection() : base(default!) { } + public string Id { get { throw null; } } + public string Model { get { throw null; } } + + protected virtual ModerationResultCollection JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ModerationResultCollection(System.ClientModel.ClientResult result) { throw null; } + protected virtual ModerationResultCollection PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ModerationResultCollection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ModerationResultCollection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public static partial class OpenAIModerationsModelFactory + { + public static ModerationCategory ModerationCategory(bool flagged = false, float score = 0) { throw null; } + public static ModerationResult ModerationResult(bool flagged = false, ModerationCategory hate = null, ModerationCategory hateThreatening = null, ModerationCategory harassment = null, ModerationCategory harassmentThreatening = null, ModerationCategory selfHarm = null, ModerationCategory selfHarmIntent = null, ModerationCategory selfHarmInstructions = null, ModerationCategory sexual = null, ModerationCategory sexualMinors = null, ModerationCategory violence = null, ModerationCategory violenceGraphic = null, ModerationCategory illicit = null, ModerationCategory illicitViolent = null) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public static ModerationResult ModerationResult(bool flagged, ModerationCategory hate, ModerationCategory hateThreatening, ModerationCategory harassment, ModerationCategory harassmentThreatening, ModerationCategory selfHarm, ModerationCategory selfHarmIntent, ModerationCategory selfHarmInstructions, ModerationCategory sexual, ModerationCategory sexualMinors, ModerationCategory violence, ModerationCategory violenceGraphic) { throw null; } + public static ModerationResultCollection ModerationResultCollection(string id = null, string model = null, System.Collections.Generic.IEnumerable items = null) { throw null; } } } -namespace OpenAI.Realtime { - public class ConversationContentPart : IJsonModel, IPersistableModel { - public string AudioTranscript { get; } - public string Text { get; } - public static ConversationContentPart CreateInputAudioTranscriptPart(string transcript = null); - public static ConversationContentPart CreateInputTextPart(string text); - public static ConversationContentPart CreateOutputAudioTranscriptPart(string transcript = null); - public static ConversationContentPart CreateOutputTextPart(string text); - protected virtual ConversationContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator ConversationContentPart(string text); - protected virtual ConversationContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ConversationContentPartKind : IEquatable { - public ConversationContentPartKind(string value); - public static ConversationContentPartKind InputAudio { get; } - public static ConversationContentPartKind InputText { get; } - public static ConversationContentPartKind OutputAudio { get; } - public static ConversationContentPartKind OutputText { get; } - public readonly bool Equals(ConversationContentPartKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right); - public static implicit operator ConversationContentPartKind(string value); - public static implicit operator ConversationContentPartKind?(string value); - public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right); - public override readonly string ToString(); - } - public class ConversationFunctionTool : ConversationTool, IJsonModel, IPersistableModel { - public ConversationFunctionTool(string name); - public string Description { get; set; } - public string Name { get; set; } - public BinaryData Parameters { get; set; } - protected override ConversationTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ConversationTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ConversationIncompleteReason : IEquatable { - public ConversationIncompleteReason(string value); - public static ConversationIncompleteReason ClientCancelled { get; } - public static ConversationIncompleteReason ContentFilter { get; } - public static ConversationIncompleteReason MaxOutputTokens { get; } - public static ConversationIncompleteReason TurnDetected { get; } - public readonly bool Equals(ConversationIncompleteReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationIncompleteReason left, ConversationIncompleteReason right); - public static implicit operator ConversationIncompleteReason(string value); - public static implicit operator ConversationIncompleteReason?(string value); - public static bool operator !=(ConversationIncompleteReason left, ConversationIncompleteReason right); - public override readonly string ToString(); - } - public class ConversationInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int CachedTokenCount { get; } - public int TextTokenCount { get; } - protected virtual ConversationInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ConversationItemStatus : IEquatable { - public ConversationItemStatus(string value); - public static ConversationItemStatus Completed { get; } - public static ConversationItemStatus Incomplete { get; } - public static ConversationItemStatus InProgress { get; } - public readonly bool Equals(ConversationItemStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationItemStatus left, ConversationItemStatus right); - public static implicit operator ConversationItemStatus(string value); - public static implicit operator ConversationItemStatus?(string value); - public static bool operator !=(ConversationItemStatus left, ConversationItemStatus right); - public override readonly string ToString(); - } - public class ConversationMaxTokensChoice : IJsonModel, IPersistableModel { - public ConversationMaxTokensChoice(int numberValue); - public int? NumericValue { get; } - public static ConversationMaxTokensChoice CreateDefaultMaxTokensChoice(); - public static ConversationMaxTokensChoice CreateInfiniteMaxTokensChoice(); - public static ConversationMaxTokensChoice CreateNumericMaxTokensChoice(int maxTokens); - public static implicit operator ConversationMaxTokensChoice(int maxTokens); - } - public readonly partial struct ConversationMessageRole : IEquatable { - public ConversationMessageRole(string value); - public static ConversationMessageRole Assistant { get; } - public static ConversationMessageRole System { get; } - public static ConversationMessageRole User { get; } - public readonly bool Equals(ConversationMessageRole other); - [EditorBrowsable(global::EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(global::EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationMessageRole left, ConversationMessageRole right); - public static implicit operator ConversationMessageRole(string value); - public static implicit operator ConversationMessageRole?(string value); - public static bool operator !=(ConversationMessageRole left, ConversationMessageRole right); - public override readonly string ToString(); - } - public class ConversationOutputTokenUsageDetails : IJsonModel, IPersistableModel { - public int AudioTokenCount { get; } - public int TextTokenCount { get; } - protected virtual ConversationOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationRateLimitDetailsItem : IJsonModel, IPersistableModel { - public int MaximumCount { get; } - public string Name { get; } - public int RemainingCount { get; } - public TimeSpan TimeUntilReset { get; } - protected virtual ConversationRateLimitDetailsItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationRateLimitDetailsItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationResponseOptions : IJsonModel, IPersistableModel { + +namespace OpenAI.Realtime +{ + public partial class ConversationContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationContentPart() { } + public string AudioTranscript { get { throw null; } } + public string Text { get { throw null; } } + + public static ConversationContentPart CreateInputAudioTranscriptPart(string transcript = null) { throw null; } + public static ConversationContentPart CreateInputTextPart(string text) { throw null; } + public static ConversationContentPart CreateOutputAudioTranscriptPart(string transcript = null) { throw null; } + public static ConversationContentPart CreateOutputTextPart(string text) { throw null; } + protected virtual ConversationContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator ConversationContentPart(string text) { throw null; } + protected virtual ConversationContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ConversationContentPartKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationContentPartKind(string value) { } + public static ConversationContentPartKind InputAudio { get { throw null; } } + public static ConversationContentPartKind InputText { get { throw null; } } + public static ConversationContentPartKind OutputAudio { get { throw null; } } + public static ConversationContentPartKind OutputText { get { throw null; } } + + public readonly bool Equals(ConversationContentPartKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right) { throw null; } + public static implicit operator ConversationContentPartKind(string value) { throw null; } + public static implicit operator ConversationContentPartKind?(string value) { throw null; } + public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ConversationFunctionTool : ConversationTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationFunctionTool(string name) { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } set { } } + + protected override ConversationTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ConversationTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationFunctionTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationFunctionTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ConversationIncompleteReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationIncompleteReason(string value) { } + public static ConversationIncompleteReason ClientCancelled { get { throw null; } } + public static ConversationIncompleteReason ContentFilter { get { throw null; } } + public static ConversationIncompleteReason MaxOutputTokens { get { throw null; } } + public static ConversationIncompleteReason TurnDetected { get { throw null; } } + + public readonly bool Equals(ConversationIncompleteReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationIncompleteReason left, ConversationIncompleteReason right) { throw null; } + public static implicit operator ConversationIncompleteReason(string value) { throw null; } + public static implicit operator ConversationIncompleteReason?(string value) { throw null; } + public static bool operator !=(ConversationIncompleteReason left, ConversationIncompleteReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ConversationInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationInputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int CachedTokenCount { get { throw null; } } + public int TextTokenCount { get { throw null; } } + + protected virtual ConversationInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ConversationItemStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationItemStatus(string value) { } + public static ConversationItemStatus Completed { get { throw null; } } + public static ConversationItemStatus Incomplete { get { throw null; } } + public static ConversationItemStatus InProgress { get { throw null; } } + + public readonly bool Equals(ConversationItemStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationItemStatus left, ConversationItemStatus right) { throw null; } + public static implicit operator ConversationItemStatus(string value) { throw null; } + public static implicit operator ConversationItemStatus?(string value) { throw null; } + public static bool operator !=(ConversationItemStatus left, ConversationItemStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ConversationMaxTokensChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationMaxTokensChoice(int numberValue) { } + public int? NumericValue { get { throw null; } } + + public static ConversationMaxTokensChoice CreateDefaultMaxTokensChoice() { throw null; } + public static ConversationMaxTokensChoice CreateInfiniteMaxTokensChoice() { throw null; } + public static ConversationMaxTokensChoice CreateNumericMaxTokensChoice(int maxTokens) { throw null; } + public static implicit operator ConversationMaxTokensChoice(int maxTokens) { throw null; } + ConversationMaxTokensChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationMaxTokensChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ConversationMessageRole : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationMessageRole(string value) { } + public static ConversationMessageRole Assistant { get { throw null; } } + public static ConversationMessageRole System { get { throw null; } } + public static ConversationMessageRole User { get { throw null; } } + + public readonly bool Equals(ConversationMessageRole other) { throw null; } + [System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationMessageRole left, ConversationMessageRole right) { throw null; } + public static implicit operator ConversationMessageRole(string value) { throw null; } + public static implicit operator ConversationMessageRole?(string value) { throw null; } + public static bool operator !=(ConversationMessageRole left, ConversationMessageRole right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ConversationOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationOutputTokenUsageDetails() { } + public int AudioTokenCount { get { throw null; } } + public int TextTokenCount { get { throw null; } } + + protected virtual ConversationOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationRateLimitDetailsItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationRateLimitDetailsItem() { } + public int MaximumCount { get { throw null; } } + public string Name { get { throw null; } } + public int RemainingCount { get { throw null; } } + public System.TimeSpan TimeUntilReset { get { throw null; } } + + protected virtual ConversationRateLimitDetailsItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationRateLimitDetailsItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationRateLimitDetailsItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationRateLimitDetailsItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { public ConversationVoice? Voice; - public RealtimeContentModalities ContentModalities { get; set; } - public ResponseConversationSelection? ConversationSelection { get; set; } - public string Instructions { get; set; } - public ConversationMaxTokensChoice MaxOutputTokens { get; set; } - public IDictionary Metadata { get; } - public RealtimeAudioFormat? OutputAudioFormat { get; set; } - public IList OverrideItems { get; } - public float? Temperature { get; set; } - public ConversationToolChoice ToolChoice { get; set; } - public IList Tools { get; } - protected virtual ConversationResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationSessionConfiguredUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public new string EventId { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputTranscriptionOptions { get; } - public string Instructions { get; } - public ConversationMaxTokensChoice MaxOutputTokens { get; } - public string Model { get; } - public RealtimeAudioFormat OutputAudioFormat { get; } - public string SessionId { get; } - public float Temperature { get; } - public ConversationToolChoice ToolChoice { get; } - public IReadOnlyList Tools { get; } - public TurnDetectionOptions TurnDetectionOptions { get; } - public ConversationVoice Voice { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationSessionOptions : RealtimeRequestSessionBase, IJsonModel, IPersistableModel { - public ConversationSessionOptions(); - public RealtimeSessionAudioConfiguration Audio { get; set; } - public RealtimeContentModalities ContentModalities { get; set; } - public IList Include { get; } - public InputNoiseReductionOptions InputNoiseReductionOptions { get; set; } - public InputTranscriptionOptions InputTranscriptionOptions { get; set; } - public string Instructions { get; set; } - public ConversationMaxTokensChoice MaxOutputTokens { get; set; } - public float? Temperature { get; set; } - public ConversationToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public BinaryData Tracing { get; set; } - public TurnDetectionOptions TurnDetectionOptions { get; set; } - public ConversationVoice? Voice { get; set; } - protected override RealtimeRequestSessionBase JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeRequestSessionBase PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationSessionStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputTranscriptionOptions { get; } - public string Instructions { get; } - public ConversationMaxTokensChoice MaxOutputTokens { get; } - public string Model { get; } - public RealtimeAudioFormat OutputAudioFormat { get; } - public string SessionId { get; } - public float Temperature { get; } - public ConversationToolChoice ToolChoice { get; } - public IReadOnlyList Tools { get; } - public TurnDetectionOptions TurnDetectionOptions { get; } - public ConversationVoice Voice { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ConversationStatus : IEquatable { - public ConversationStatus(string value); - public static ConversationStatus Cancelled { get; } - public static ConversationStatus Completed { get; } - public static ConversationStatus Failed { get; } - public static ConversationStatus Incomplete { get; } - public static ConversationStatus InProgress { get; } - public readonly bool Equals(ConversationStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationStatus left, ConversationStatus right); - public static implicit operator ConversationStatus(string value); - public static implicit operator ConversationStatus?(string value); - public static bool operator !=(ConversationStatus left, ConversationStatus right); - public override readonly string ToString(); - } - public class ConversationStatusDetails : IJsonModel, IPersistableModel { - public string ErrorCode { get; } - public string ErrorKind { get; } - public ConversationIncompleteReason? IncompleteReason { get; } - public ConversationStatus StatusKind { get; } - protected virtual ConversationStatusDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationStatusDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; } - public ConversationInputTokenUsageDetails InputTokenDetails { get; } - public int OutputTokenCount { get; } - public ConversationOutputTokenUsageDetails OutputTokenDetails { get; } - public int TotalTokenCount { get; } - protected virtual ConversationTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationTool : IJsonModel, IPersistableModel { - public ConversationToolKind Kind { get; } - public static ConversationTool CreateFunctionTool(string name, string description = null, BinaryData parameters = null); - protected virtual ConversationTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ConversationTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ConversationToolChoice : IJsonModel, IPersistableModel { - public string FunctionName { get; } - public ConversationToolChoiceKind Kind { get; } - public static ConversationToolChoice CreateAutoToolChoice(); - public static ConversationToolChoice CreateFunctionToolChoice(string functionName); - public static ConversationToolChoice CreateNoneToolChoice(); - public static ConversationToolChoice CreateRequiredToolChoice(); - } - public enum ConversationToolChoiceKind { + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public ResponseConversationSelection? ConversationSelection { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public RealtimeAudioFormat? OutputAudioFormat { get { throw null; } set { } } + public System.Collections.Generic.IList OverrideItems { get { throw null; } } + public float? Temperature { get { throw null; } set { } } + public ConversationToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + + protected virtual ConversationResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationSessionConfiguredUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationSessionConfiguredUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public new string EventId { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } } + public string Instructions { get { throw null; } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } } + public string Model { get { throw null; } } + public RealtimeAudioFormat OutputAudioFormat { get { throw null; } } + public string SessionId { get { throw null; } } + public float Temperature { get { throw null; } } + public ConversationToolChoice ToolChoice { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } } + public ConversationVoice Voice { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionConfiguredUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionConfiguredUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationSessionOptions : RealtimeRequestSessionBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConversationSessionOptions() { } + public RealtimeSessionAudioConfiguration Audio { get { throw null; } set { } } + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public System.Collections.Generic.IList Include { get { throw null; } } + public InputNoiseReductionOptions InputNoiseReductionOptions { get { throw null; } set { } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ConversationToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public System.BinaryData Tracing { get { throw null; } set { } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } set { } } + public ConversationVoice? Voice { get { throw null; } set { } } + + protected override RealtimeRequestSessionBase JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeRequestSessionBase PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationSessionStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationSessionStartedUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } } + public string Instructions { get { throw null; } } + public ConversationMaxTokensChoice MaxOutputTokens { get { throw null; } } + public string Model { get { throw null; } } + public RealtimeAudioFormat OutputAudioFormat { get { throw null; } } + public string SessionId { get { throw null; } } + public float Temperature { get { throw null; } } + public ConversationToolChoice ToolChoice { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Tools { get { throw null; } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } } + public ConversationVoice Voice { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationSessionStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationSessionStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ConversationStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationStatus(string value) { } + public static ConversationStatus Cancelled { get { throw null; } } + public static ConversationStatus Completed { get { throw null; } } + public static ConversationStatus Failed { get { throw null; } } + public static ConversationStatus Incomplete { get { throw null; } } + public static ConversationStatus InProgress { get { throw null; } } + + public readonly bool Equals(ConversationStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationStatus left, ConversationStatus right) { throw null; } + public static implicit operator ConversationStatus(string value) { throw null; } + public static implicit operator ConversationStatus?(string value) { throw null; } + public static bool operator !=(ConversationStatus left, ConversationStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ConversationStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationStatusDetails() { } + public string ErrorCode { get { throw null; } } + public string ErrorKind { get { throw null; } } + public ConversationIncompleteReason? IncompleteReason { get { throw null; } } + public ConversationStatus StatusKind { get { throw null; } } + + protected virtual ConversationStatusDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationStatusDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationStatusDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationTokenUsage() { } + public int InputTokenCount { get { throw null; } } + public ConversationInputTokenUsageDetails InputTokenDetails { get { throw null; } } + public int OutputTokenCount { get { throw null; } } + public ConversationOutputTokenUsageDetails OutputTokenDetails { get { throw null; } } + public int TotalTokenCount { get { throw null; } } + + protected virtual ConversationTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationTool() { } + public ConversationToolKind Kind { get { throw null; } } + + public static ConversationTool CreateFunctionTool(string name, string description = null, System.BinaryData parameters = null) { throw null; } + protected virtual ConversationTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ConversationTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ConversationTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ConversationToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ConversationToolChoice() { } + public string FunctionName { get { throw null; } } + public ConversationToolChoiceKind Kind { get { throw null; } } + + public static ConversationToolChoice CreateAutoToolChoice() { throw null; } + public static ConversationToolChoice CreateFunctionToolChoice(string functionName) { throw null; } + public static ConversationToolChoice CreateNoneToolChoice() { throw null; } + public static ConversationToolChoice CreateRequiredToolChoice() { throw null; } + ConversationToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ConversationToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ConversationToolChoiceKind + { Unknown = 0, Auto = 1, None = 2, Required = 3, Function = 4 } - public readonly partial struct ConversationToolKind : IEquatable { - public ConversationToolKind(string value); - public static ConversationToolKind Function { get; } - public static ConversationToolKind Mcp { get; } - public readonly bool Equals(ConversationToolKind other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationToolKind left, ConversationToolKind right); - public static implicit operator ConversationToolKind(string value); - public static implicit operator ConversationToolKind?(string value); - public static bool operator !=(ConversationToolKind left, ConversationToolKind right); - public override readonly string ToString(); - } - public readonly partial struct ConversationVoice : IEquatable { - public ConversationVoice(string value); - public static ConversationVoice Alloy { get; } - public static ConversationVoice Ash { get; } - public static ConversationVoice Ballad { get; } - public static ConversationVoice Coral { get; } - public static ConversationVoice Echo { get; } - public static ConversationVoice Fable { get; } - public static ConversationVoice Nova { get; } - public static ConversationVoice Onyx { get; } - public static ConversationVoice Sage { get; } - public static ConversationVoice Shimmer { get; } - public static ConversationVoice Verse { get; } - public readonly bool Equals(ConversationVoice other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ConversationVoice left, ConversationVoice right); - public static implicit operator ConversationVoice(string value); - public static implicit operator ConversationVoice?(string value); - public static bool operator !=(ConversationVoice left, ConversationVoice right); - public override readonly string ToString(); - } - public class InputAudioClearedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class InputAudioCommittedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ItemId { get; } - public string PreviousItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class InputAudioSpeechFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public TimeSpan AudioEndTime { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class InputAudioSpeechStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public TimeSpan AudioStartTime { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int? ContentIndex { get; } - public string Delta { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class InputAudioTranscriptionFailedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ErrorCode { get; } - public string ErrorMessage { get; } - public string ErrorParameterName { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public string Transcript { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum InputNoiseReductionKind { + + public readonly partial struct ConversationToolKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationToolKind(string value) { } + public static ConversationToolKind Function { get { throw null; } } + public static ConversationToolKind Mcp { get { throw null; } } + + public readonly bool Equals(ConversationToolKind other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationToolKind left, ConversationToolKind right) { throw null; } + public static implicit operator ConversationToolKind(string value) { throw null; } + public static implicit operator ConversationToolKind?(string value) { throw null; } + public static bool operator !=(ConversationToolKind left, ConversationToolKind right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct ConversationVoice : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversationVoice(string value) { } + public static ConversationVoice Alloy { get { throw null; } } + public static ConversationVoice Ash { get { throw null; } } + public static ConversationVoice Ballad { get { throw null; } } + public static ConversationVoice Coral { get { throw null; } } + public static ConversationVoice Echo { get { throw null; } } + public static ConversationVoice Fable { get { throw null; } } + public static ConversationVoice Nova { get { throw null; } } + public static ConversationVoice Onyx { get { throw null; } } + public static ConversationVoice Sage { get { throw null; } } + public static ConversationVoice Shimmer { get { throw null; } } + public static ConversationVoice Verse { get { throw null; } } + + public readonly bool Equals(ConversationVoice other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ConversationVoice left, ConversationVoice right) { throw null; } + public static implicit operator ConversationVoice(string value) { throw null; } + public static implicit operator ConversationVoice?(string value) { throw null; } + public static bool operator !=(ConversationVoice left, ConversationVoice right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class InputAudioClearedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioClearedUpdate() { } + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioClearedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioClearedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class InputAudioCommittedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioCommittedUpdate() { } + public string ItemId { get { throw null; } } + public string PreviousItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioCommittedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioCommittedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class InputAudioSpeechFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioSpeechFinishedUpdate() { } + public System.TimeSpan AudioEndTime { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioSpeechFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioSpeechFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class InputAudioSpeechStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioSpeechStartedUpdate() { } + public System.TimeSpan AudioStartTime { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioSpeechStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioSpeechStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionDeltaUpdate() { } + public int? ContentIndex { get { throw null; } } + public string Delta { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class InputAudioTranscriptionFailedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionFailedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ErrorCode { get { throw null; } } + public string ErrorMessage { get { throw null; } } + public string ErrorParameterName { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputAudioTranscriptionFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public string Transcript { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum InputNoiseReductionKind + { Unknown = 0, NearField = 1, FarField = 2, Disabled = 3 } - public class InputNoiseReductionOptions : IJsonModel, IPersistableModel { - public InputNoiseReductionKind Kind { get; set; } - public static InputNoiseReductionOptions CreateDisabledOptions(); - public static InputNoiseReductionOptions CreateFarFieldOptions(); - public static InputNoiseReductionOptions CreateNearFieldOptions(); - protected virtual InputNoiseReductionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual InputNoiseReductionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct InputTranscriptionModel : IEquatable { - public InputTranscriptionModel(string value); - public static InputTranscriptionModel Gpt4oMiniTranscribe { get; } - public static InputTranscriptionModel Gpt4oMiniTranscribe20251215 { get; } - public static InputTranscriptionModel Gpt4oTranscribe { get; } - public static InputTranscriptionModel Gpt4oTranscribeDiarize { get; } - public static InputTranscriptionModel Whisper1 { get; } - public readonly bool Equals(InputTranscriptionModel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right); - public static implicit operator InputTranscriptionModel(string value); - public static implicit operator InputTranscriptionModel?(string value); - public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right); - public override readonly string ToString(); - } - public class InputTranscriptionOptions : IJsonModel, IPersistableModel { - public string Language { get; set; } - public InputTranscriptionModel? Model { get; set; } - public string Prompt { get; set; } - protected virtual InputTranscriptionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual InputTranscriptionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ItemCreatedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public string PreviousItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ItemDeletedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ItemRetrievedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeItem Item { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ItemTruncatedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int AudioEndMs { get; } - public int ContentIndex { get; } - public string ItemId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OutputAudioFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OutputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - public string Transcript { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OutputDeltaUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public BinaryData AudioBytes { get; } - public string AudioTranscript { get; } - public int ContentPartIndex { get; } - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public string ResponseId { get; } - public string Text { get; } - } - public class OutputPartFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string AudioTranscript { get; } - public int ContentPartIndex { get; } - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public string ResponseId { get; } - public string Text { get; } - } - public class OutputStreamingFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OutputStreamingStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string FunctionCallArguments { get; } - public string FunctionCallId { get; } - public string FunctionCallOutput { get; } - public string FunctionName { get; } - public string ItemId { get; } - public int ItemIndex { get; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public string ResponseId { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class OutputTextFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public int ContentIndex { get; } - public string ItemId { get; } - public int OutputIndex { get; } - public string ResponseId { get; } - public string Text { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RateLimitsUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList AllDetails { get; } - public ConversationRateLimitDetailsItem RequestDetails { get; } - public ConversationRateLimitDetailsItem TokenDetails { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RealtimeAudioFormat : IEquatable { - public RealtimeAudioFormat(string value); - public static RealtimeAudioFormat G711Alaw { get; } - public static RealtimeAudioFormat G711Ulaw { get; } - public static RealtimeAudioFormat Pcm16 { get; } - public readonly bool Equals(RealtimeAudioFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right); - public static implicit operator RealtimeAudioFormat(string value); - public static implicit operator RealtimeAudioFormat?(string value); - public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right); - public override readonly string ToString(); - } - public class RealtimeClient { - protected RealtimeClient(); - public RealtimeClient(ApiKeyCredential credential, RealtimeClientOptions options); - public RealtimeClient(ApiKeyCredential credential); - public RealtimeClient(AuthenticationPolicy authenticationPolicy, RealtimeClientOptions options); - public RealtimeClient(AuthenticationPolicy authenticationPolicy); - protected internal RealtimeClient(ClientPipeline pipeline, RealtimeClientOptions options); - public RealtimeClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public event EventHandler OnReceivingCommand { - add; - remove; + + public partial class InputNoiseReductionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal InputNoiseReductionOptions() { } + public InputNoiseReductionKind Kind { get { throw null; } set { } } + + public static InputNoiseReductionOptions CreateDisabledOptions() { throw null; } + public static InputNoiseReductionOptions CreateFarFieldOptions() { throw null; } + public static InputNoiseReductionOptions CreateNearFieldOptions() { throw null; } + protected virtual InputNoiseReductionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual InputNoiseReductionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputNoiseReductionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputNoiseReductionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct InputTranscriptionModel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public InputTranscriptionModel(string value) { } + public static InputTranscriptionModel Gpt4oMiniTranscribe { get { throw null; } } + public static InputTranscriptionModel Gpt4oMiniTranscribe20251215 { get { throw null; } } + public static InputTranscriptionModel Gpt4oTranscribe { get { throw null; } } + public static InputTranscriptionModel Gpt4oTranscribeDiarize { get { throw null; } } + public static InputTranscriptionModel Whisper1 { get { throw null; } } + + public readonly bool Equals(InputTranscriptionModel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right) { throw null; } + public static implicit operator InputTranscriptionModel(string value) { throw null; } + public static implicit operator InputTranscriptionModel?(string value) { throw null; } + public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class InputTranscriptionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string Language { get { throw null; } set { } } + public InputTranscriptionModel? Model { get { throw null; } set { } } + public string Prompt { get { throw null; } set { } } + + protected virtual InputTranscriptionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual InputTranscriptionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + InputTranscriptionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + InputTranscriptionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ItemCreatedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemCreatedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public string PreviousItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemCreatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemCreatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ItemDeletedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemDeletedUpdate() { } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemDeletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemDeletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ItemRetrievedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemRetrievedUpdate() { } + public RealtimeItem Item { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemRetrievedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemRetrievedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ItemTruncatedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ItemTruncatedUpdate() { } + public int AudioEndMs { get { throw null; } } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ItemTruncatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ItemTruncatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OutputAudioFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputAudioFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputAudioFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputAudioFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OutputAudioTranscriptionFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputAudioTranscriptionFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Transcript { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputAudioTranscriptionFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OutputDeltaUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputDeltaUpdate() { } + public System.BinaryData AudioBytes { get { throw null; } } + public string AudioTranscript { get { throw null; } } + public int ContentPartIndex { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + OutputDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OutputPartFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputPartFinishedUpdate() { } + public string AudioTranscript { get { throw null; } } + public int ContentPartIndex { get { throw null; } } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + OutputPartFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputPartFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OutputStreamingFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputStreamingFinishedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputStreamingFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputStreamingFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OutputStreamingStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputStreamingStartedUpdate() { } + public string FunctionCallArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionCallOutput { get { throw null; } } + public string FunctionName { get { throw null; } } + public string ItemId { get { throw null; } } + public int ItemIndex { get { throw null; } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + public string ResponseId { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputStreamingStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputStreamingStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class OutputTextFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal OutputTextFinishedUpdate() { } + public int ContentIndex { get { throw null; } } + public string ItemId { get { throw null; } } + public int OutputIndex { get { throw null; } } + public string ResponseId { get { throw null; } } + public string Text { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + OutputTextFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + OutputTextFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RateLimitsUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RateLimitsUpdate() { } + public System.Collections.Generic.IReadOnlyList AllDetails { get { throw null; } } + public ConversationRateLimitDetailsItem RequestDetails { get { throw null; } } + public ConversationRateLimitDetailsItem TokenDetails { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RateLimitsUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RateLimitsUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RealtimeAudioFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeAudioFormat(string value) { } + public static RealtimeAudioFormat G711Alaw { get { throw null; } } + public static RealtimeAudioFormat G711Ulaw { get { throw null; } } + public static RealtimeAudioFormat Pcm16 { get { throw null; } } + + public readonly bool Equals(RealtimeAudioFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right) { throw null; } + public static implicit operator RealtimeAudioFormat(string value) { throw null; } + public static implicit operator RealtimeAudioFormat?(string value) { throw null; } + public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RealtimeClient + { + protected RealtimeClient() { } + public RealtimeClient(RealtimeClientSettings settings) { } + public RealtimeClient(System.ClientModel.ApiKeyCredential credential, RealtimeClientOptions options) { } + public RealtimeClient(System.ClientModel.ApiKeyCredential credential) { } + public RealtimeClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, RealtimeClientOptions options) { } + public RealtimeClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal RealtimeClient(System.ClientModel.Primitives.ClientPipeline pipeline, RealtimeClientOptions options) { } + public RealtimeClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public event System.EventHandler OnReceivingCommand { + add { } + remove { } } - public event EventHandler OnSendingCommand { - add; - remove; + + public event System.EventHandler OnSendingCommand { + add { } + remove { } } - public virtual ClientResult CreateRealtimeClientSecret(RealtimeCreateClientSecretRequest body, CancellationToken cancellationToken = default); - public virtual ClientResult CreateRealtimeClientSecret(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateRealtimeClientSecretAsync(RealtimeCreateClientSecretRequest body, CancellationToken cancellationToken = default); - public virtual Task CreateRealtimeClientSecretAsync(BinaryContent content, RequestOptions options = null); - public RealtimeSession StartConversationSession(string model, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartConversationSessionAsync(string model, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public RealtimeSession StartSession(string model, string intent, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartSessionAsync(string model, string intent, RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public RealtimeSession StartTranscriptionSession(RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - public virtual Task StartTranscriptionSessionAsync(RealtimeSessionOptions options = null, CancellationToken cancellationToken = default); - } - public class RealtimeClientOptions : ClientPipelineOptions { - public Uri Endpoint { get; set; } - public string OrganizationId { get; set; } - public string ProjectId { get; set; } - public string UserAgentApplicationId { get; set; } - } - [Flags] - public enum RealtimeContentModalities { + + public virtual System.ClientModel.ClientResult CreateRealtimeClientSecret(RealtimeCreateClientSecretRequest body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateRealtimeClientSecret(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateRealtimeClientSecretAsync(RealtimeCreateClientSecretRequest body, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateRealtimeClientSecretAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public RealtimeSession StartConversationSession(string model, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartConversationSessionAsync(string model, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public RealtimeSession StartSession(string model, string intent, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartSessionAsync(string model, string intent, RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public RealtimeSession StartTranscriptionSession(RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartTranscriptionSessionAsync(RealtimeSessionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public partial class RealtimeClientOptions : System.ClientModel.Primitives.ClientPipelineOptions + { + public System.Uri Endpoint { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string ProjectId { get { throw null; } set { } } + public string UserAgentApplicationId { get { throw null; } set { } } + } + + public sealed partial class RealtimeClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + [System.Flags] + public enum RealtimeContentModalities + { Default = 0, Text = 1, Audio = 2 } - public class RealtimeCreateClientSecretRequest : IJsonModel, IPersistableModel { - public RealtimeCreateClientSecretRequestExpiresAfter ExpiresAfter { get; set; } - public RealtimeSessionCreateRequestUnion Session { get; set; } - protected virtual RealtimeCreateClientSecretRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(RealtimeCreateClientSecretRequest realtimeCreateClientSecretRequest); - protected virtual RealtimeCreateClientSecretRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeCreateClientSecretRequestExpiresAfter : IJsonModel, IPersistableModel { - public RealtimeCreateClientSecretRequestExpiresAfterAnchor? Anchor { get; set; } - public int? Seconds { get; set; } - protected virtual RealtimeCreateClientSecretRequestExpiresAfter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeCreateClientSecretRequestExpiresAfter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RealtimeCreateClientSecretRequestExpiresAfterAnchor : IEquatable { - public RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value); - public static RealtimeCreateClientSecretRequestExpiresAfterAnchor CreatedAt { get; } - public readonly bool Equals(RealtimeCreateClientSecretRequestExpiresAfterAnchor other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right); - public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value); - public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor?(string value); - public static bool operator !=(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right); - public override readonly string ToString(); - } - public class RealtimeCreateClientSecretResponse : IJsonModel, IPersistableModel { - public DateTimeOffset ExpiresAt { get; } - public RealtimeSessionCreateResponseUnion Session { get; } - public string Value { get; } - protected virtual RealtimeCreateClientSecretResponse JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RealtimeCreateClientSecretResponse(ClientResult result); - protected virtual RealtimeCreateClientSecretResponse PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeErrorUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public string ErrorCode { get; } - public string ErrorEventId { get; } - public string Message { get; } - public string ParameterName { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeItem : IJsonModel, IPersistableModel { - public string FunctionArguments { get; } - public string FunctionCallId { get; } - public string FunctionName { get; } - public string Id { get; set; } - public IReadOnlyList MessageContentParts { get; } - public ConversationMessageRole? MessageRole { get; } - public static RealtimeItem CreateAssistantMessage(IEnumerable contentItems); - public static RealtimeItem CreateFunctionCall(string name, string callId, string arguments); - public static RealtimeItem CreateFunctionCallOutput(string callId, string output); - public static RealtimeItem CreateSystemMessage(IEnumerable contentItems); - public static RealtimeItem CreateUserMessage(IEnumerable contentItems); - protected virtual RealtimeItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeRequestSessionBase : IJsonModel, IPersistableModel { - protected virtual RealtimeRequestSessionBase JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeRequestSessionBase PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeSession : IDisposable { - protected internal RealtimeSession(ApiKeyCredential credential, RealtimeClient parentClient, Uri endpoint, string model, string intent); - public Net.WebSockets.WebSocket WebSocket { get; protected set; } - public virtual void AddItem(RealtimeItem item, string previousItemId, CancellationToken cancellationToken = default); - public virtual void AddItem(RealtimeItem item, CancellationToken cancellationToken = default); - public virtual Task AddItemAsync(RealtimeItem item, string previousItemId, CancellationToken cancellationToken = default); - public virtual Task AddItemAsync(RealtimeItem item, CancellationToken cancellationToken = default); - public virtual void CancelResponse(CancellationToken cancellationToken = default); - public virtual Task CancelResponseAsync(CancellationToken cancellationToken = default); - public virtual void ClearInputAudio(CancellationToken cancellationToken = default); - public virtual Task ClearInputAudioAsync(CancellationToken cancellationToken = default); - public virtual void CommitPendingAudio(CancellationToken cancellationToken = default); - public virtual Task CommitPendingAudioAsync(CancellationToken cancellationToken = default); - public virtual Task ConfigureConversationSessionAsync(ConversationSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual void ConfigureSession(ConversationSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual void ConfigureTranscriptionSession(TranscriptionSessionOptions sessionOptions, CancellationToken cancellationToken = default); - public virtual Task ConfigureTranscriptionSessionAsync(TranscriptionSessionOptions sessionOptions, CancellationToken cancellationToken = default); - protected internal virtual void Connect(string queryString = null, IDictionary headers = null, CancellationToken cancellationToken = default); - protected internal virtual Task ConnectAsync(string queryString = null, IDictionary headers = null, CancellationToken cancellationToken = default); - public virtual void DeleteItem(string itemId, CancellationToken cancellationToken = default); - public virtual Task DeleteItemAsync(string itemId, CancellationToken cancellationToken = default); - public void Dispose(); - public virtual void InterruptResponse(CancellationToken cancellationToken = default); - public virtual Task InterruptResponseAsync(CancellationToken cancellationToken = default); - public virtual IEnumerable ReceiveUpdates(RequestOptions options); - public virtual IEnumerable ReceiveUpdates(CancellationToken cancellationToken = default); - public virtual IAsyncEnumerable ReceiveUpdatesAsync(RequestOptions options); - public virtual IAsyncEnumerable ReceiveUpdatesAsync(CancellationToken cancellationToken = default); - public virtual void RequestItemRetrieval(string itemId, CancellationToken cancellationToken = default); - public virtual Task RequestItemRetrievalAsync(string itemId, CancellationToken cancellationToken = default); - public virtual void SendCommand(BinaryData data, RequestOptions options); - public virtual Task SendCommandAsync(BinaryData data, RequestOptions options); - public virtual void SendInputAudio(BinaryData audio, CancellationToken cancellationToken = default); - public virtual void SendInputAudio(Stream audio, CancellationToken cancellationToken = default); - public virtual Task SendInputAudioAsync(BinaryData audio, CancellationToken cancellationToken = default); - public virtual Task SendInputAudioAsync(Stream audio, CancellationToken cancellationToken = default); - public virtual void StartResponse(ConversationResponseOptions options, CancellationToken cancellationToken = default); - public void StartResponse(CancellationToken cancellationToken = default); - public virtual Task StartResponseAsync(ConversationResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task StartResponseAsync(CancellationToken cancellationToken = default); - public virtual void TruncateItem(string itemId, int contentPartIndex, TimeSpan audioDuration, CancellationToken cancellationToken = default); - public virtual Task TruncateItemAsync(string itemId, int contentPartIndex, TimeSpan audioDuration, CancellationToken cancellationToken = default); - } - public class RealtimeSessionAudioConfiguration : IJsonModel, IPersistableModel { - public RealtimeSessionAudioInputConfiguration Input { get; set; } - public RealtimeSessionAudioOutputConfiguration Output { get; set; } - protected virtual RealtimeSessionAudioConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeSessionAudioInputConfiguration : IJsonModel, IPersistableModel { - public RealtimeAudioFormat? Format { get; set; } - public InputNoiseReductionOptions NoiseReduction { get; set; } - public InputTranscriptionOptions Transcription { get; set; } - public TurnDetectionOptions TurnDetection { get; set; } - protected virtual RealtimeSessionAudioInputConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioInputConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeSessionAudioOutputConfiguration : IJsonModel, IPersistableModel { - public RealtimeAudioFormat? Format { get; set; } - public float? Speed { get; set; } - public ConversationVoice? Voice { get; set; } - protected virtual RealtimeSessionAudioOutputConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionAudioOutputConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class RealtimeSessionCreateRequestUnion : IJsonModel, IPersistableModel { - protected virtual RealtimeSessionCreateRequestUnion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionCreateRequestUnion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RealtimeSessionCreateRequestUnionType : IEquatable { - public RealtimeSessionCreateRequestUnionType(string value); - public static RealtimeSessionCreateRequestUnionType Realtime { get; } - public static RealtimeSessionCreateRequestUnionType Transcription { get; } - public readonly bool Equals(RealtimeSessionCreateRequestUnionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right); - public static implicit operator RealtimeSessionCreateRequestUnionType(string value); - public static implicit operator RealtimeSessionCreateRequestUnionType?(string value); - public static bool operator !=(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right); - public override readonly string ToString(); - } - public class RealtimeSessionCreateResponseUnion : IJsonModel, IPersistableModel { - protected virtual RealtimeSessionCreateResponseUnion JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual RealtimeSessionCreateResponseUnion PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct RealtimeSessionCreateResponseUnionType : IEquatable { - public RealtimeSessionCreateResponseUnionType(string value); - public static RealtimeSessionCreateResponseUnionType Realtime { get; } - public static RealtimeSessionCreateResponseUnionType Transcription { get; } - public readonly bool Equals(RealtimeSessionCreateResponseUnionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right); - public static implicit operator RealtimeSessionCreateResponseUnionType(string value); - public static implicit operator RealtimeSessionCreateResponseUnionType?(string value); - public static bool operator !=(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right); - public override readonly string ToString(); - } - public class RealtimeSessionOptions { - public IDictionary Headers { get; } - public string QueryString { get; set; } - } - public readonly partial struct RealtimeSessionType : IEquatable { - public RealtimeSessionType(string value); - public static RealtimeSessionType Realtime { get; } - public static RealtimeSessionType Transcription { get; } - public readonly bool Equals(RealtimeSessionType other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(RealtimeSessionType left, RealtimeSessionType right); - public static implicit operator RealtimeSessionType(string value); - public static implicit operator RealtimeSessionType?(string value); - public static bool operator !=(RealtimeSessionType left, RealtimeSessionType right); - public override readonly string ToString(); - } - public class RealtimeUpdate : IJsonModel, IPersistableModel { - public string EventId { get; } - public RealtimeUpdateKind Kind { get; } - public BinaryData GetRawContent(); - protected virtual RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator RealtimeUpdate(ClientResult result); - protected virtual RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum RealtimeUpdateKind { + + public partial class RealtimeCreateClientSecretRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeCreateClientSecretRequestExpiresAfter ExpiresAfter { get { throw null; } set { } } + public RealtimeSessionCreateRequestUnion Session { get { throw null; } set { } } + + protected virtual RealtimeCreateClientSecretRequest JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(RealtimeCreateClientSecretRequest realtimeCreateClientSecretRequest) { throw null; } + protected virtual RealtimeCreateClientSecretRequest PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeCreateClientSecretRequestExpiresAfter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeCreateClientSecretRequestExpiresAfterAnchor? Anchor { get { throw null; } set { } } + public int? Seconds { get { throw null; } set { } } + + protected virtual RealtimeCreateClientSecretRequestExpiresAfter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeCreateClientSecretRequestExpiresAfter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretRequestExpiresAfter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretRequestExpiresAfter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RealtimeCreateClientSecretRequestExpiresAfterAnchor : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value) { } + public static RealtimeCreateClientSecretRequestExpiresAfterAnchor CreatedAt { get { throw null; } } + + public readonly bool Equals(RealtimeCreateClientSecretRequestExpiresAfterAnchor other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right) { throw null; } + public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor(string value) { throw null; } + public static implicit operator RealtimeCreateClientSecretRequestExpiresAfterAnchor?(string value) { throw null; } + public static bool operator !=(RealtimeCreateClientSecretRequestExpiresAfterAnchor left, RealtimeCreateClientSecretRequestExpiresAfterAnchor right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RealtimeCreateClientSecretResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeCreateClientSecretResponse() { } + public System.DateTimeOffset ExpiresAt { get { throw null; } } + public RealtimeSessionCreateResponseUnion Session { get { throw null; } } + public string Value { get { throw null; } } + + protected virtual RealtimeCreateClientSecretResponse JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RealtimeCreateClientSecretResponse(System.ClientModel.ClientResult result) { throw null; } + protected virtual RealtimeCreateClientSecretResponse PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeCreateClientSecretResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeCreateClientSecretResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeErrorUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeErrorUpdate() { } + public string ErrorCode { get { throw null; } } + public string ErrorEventId { get { throw null; } } + public string Message { get { throw null; } } + public string ParameterName { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeErrorUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeErrorUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeItem() { } + public string FunctionArguments { get { throw null; } } + public string FunctionCallId { get { throw null; } } + public string FunctionName { get { throw null; } } + public string Id { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList MessageContentParts { get { throw null; } } + public ConversationMessageRole? MessageRole { get { throw null; } } + + public static RealtimeItem CreateAssistantMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + public static RealtimeItem CreateFunctionCall(string name, string callId, string arguments) { throw null; } + public static RealtimeItem CreateFunctionCallOutput(string callId, string output) { throw null; } + public static RealtimeItem CreateSystemMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + public static RealtimeItem CreateUserMessage(System.Collections.Generic.IEnumerable contentItems) { throw null; } + protected virtual RealtimeItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeRequestSessionBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeRequestSessionBase() { } + protected virtual RealtimeRequestSessionBase JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeRequestSessionBase PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeRequestSessionBase System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeRequestSessionBase System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeSession : System.IDisposable + { + protected internal RealtimeSession(System.ClientModel.ApiKeyCredential credential, RealtimeClient parentClient, System.Uri endpoint, string model, string intent) { } + public System.Net.WebSockets.WebSocket WebSocket { get { throw null; } protected set { } } + + public virtual void AddItem(RealtimeItem item, string previousItemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void AddItem(RealtimeItem item, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task AddItemAsync(RealtimeItem item, string previousItemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddItemAsync(RealtimeItem item, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void CancelResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task CancelResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void ClearInputAudio(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task ClearInputAudioAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void CommitPendingAudio(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task CommitPendingAudioAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ConfigureConversationSessionAsync(ConversationSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void ConfigureSession(ConversationSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void ConfigureTranscriptionSession(TranscriptionSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task ConfigureTranscriptionSessionAsync(TranscriptionSessionOptions sessionOptions, System.Threading.CancellationToken cancellationToken = default) { throw null; } + protected internal virtual void Connect(string queryString = null, System.Collections.Generic.IDictionary headers = null, System.Threading.CancellationToken cancellationToken = default) { } + protected internal virtual System.Threading.Tasks.Task ConnectAsync(string queryString = null, System.Collections.Generic.IDictionary headers = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void DeleteItem(string itemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task DeleteItemAsync(string itemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public void Dispose() { } + public virtual void InterruptResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task InterruptResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Collections.Generic.IEnumerable ReceiveUpdates(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Collections.Generic.IEnumerable ReceiveUpdates(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable ReceiveUpdatesAsync(System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable ReceiveUpdatesAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void RequestItemRetrieval(string itemId, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task RequestItemRetrievalAsync(string itemId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void SendCommand(System.BinaryData data, System.ClientModel.Primitives.RequestOptions options) { } + public virtual System.Threading.Tasks.Task SendCommandAsync(System.BinaryData data, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual void SendInputAudio(System.BinaryData audio, System.Threading.CancellationToken cancellationToken = default) { } + public virtual void SendInputAudio(System.IO.Stream audio, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task SendInputAudioAsync(System.BinaryData audio, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task SendInputAudioAsync(System.IO.Stream audio, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void StartResponse(ConversationResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { } + public void StartResponse(System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task StartResponseAsync(ConversationResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task StartResponseAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual void TruncateItem(string itemId, int contentPartIndex, System.TimeSpan audioDuration, System.Threading.CancellationToken cancellationToken = default) { } + public virtual System.Threading.Tasks.Task TruncateItemAsync(string itemId, int contentPartIndex, System.TimeSpan audioDuration, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + + public partial class RealtimeSessionAudioConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeSessionAudioInputConfiguration Input { get { throw null; } set { } } + public RealtimeSessionAudioOutputConfiguration Output { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeSessionAudioInputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeAudioFormat? Format { get { throw null; } set { } } + public InputNoiseReductionOptions NoiseReduction { get { throw null; } set { } } + public InputTranscriptionOptions Transcription { get { throw null; } set { } } + public TurnDetectionOptions TurnDetection { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioInputConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioInputConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioInputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioInputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeSessionAudioOutputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeAudioFormat? Format { get { throw null; } set { } } + public float? Speed { get { throw null; } set { } } + public ConversationVoice? Voice { get { throw null; } set { } } + + protected virtual RealtimeSessionAudioOutputConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionAudioOutputConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionAudioOutputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionAudioOutputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class RealtimeSessionCreateRequestUnion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeSessionCreateRequestUnion() { } + protected virtual RealtimeSessionCreateRequestUnion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionCreateRequestUnion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionCreateRequestUnion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionCreateRequestUnion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RealtimeSessionCreateRequestUnionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionCreateRequestUnionType(string value) { } + public static RealtimeSessionCreateRequestUnionType Realtime { get { throw null; } } + public static RealtimeSessionCreateRequestUnionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionCreateRequestUnionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right) { throw null; } + public static implicit operator RealtimeSessionCreateRequestUnionType(string value) { throw null; } + public static implicit operator RealtimeSessionCreateRequestUnionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionCreateRequestUnionType left, RealtimeSessionCreateRequestUnionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RealtimeSessionCreateResponseUnion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeSessionCreateResponseUnion() { } + protected virtual RealtimeSessionCreateResponseUnion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual RealtimeSessionCreateResponseUnion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeSessionCreateResponseUnion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeSessionCreateResponseUnion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct RealtimeSessionCreateResponseUnionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionCreateResponseUnionType(string value) { } + public static RealtimeSessionCreateResponseUnionType Realtime { get { throw null; } } + public static RealtimeSessionCreateResponseUnionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionCreateResponseUnionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right) { throw null; } + public static implicit operator RealtimeSessionCreateResponseUnionType(string value) { throw null; } + public static implicit operator RealtimeSessionCreateResponseUnionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionCreateResponseUnionType left, RealtimeSessionCreateResponseUnionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RealtimeSessionOptions + { + public System.Collections.Generic.IDictionary Headers { get { throw null; } } + public string QueryString { get { throw null; } set { } } + } + public readonly partial struct RealtimeSessionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RealtimeSessionType(string value) { } + public static RealtimeSessionType Realtime { get { throw null; } } + public static RealtimeSessionType Transcription { get { throw null; } } + + public readonly bool Equals(RealtimeSessionType other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(RealtimeSessionType left, RealtimeSessionType right) { throw null; } + public static implicit operator RealtimeSessionType(string value) { throw null; } + public static implicit operator RealtimeSessionType?(string value) { throw null; } + public static bool operator !=(RealtimeSessionType left, RealtimeSessionType right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class RealtimeUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal RealtimeUpdate() { } + public string EventId { get { throw null; } } + public RealtimeUpdateKind Kind { get { throw null; } } + + public System.BinaryData GetRawContent() { throw null; } + protected virtual RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator RealtimeUpdate(System.ClientModel.ClientResult result) { throw null; } + protected virtual RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + RealtimeUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + RealtimeUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum RealtimeUpdateKind + { Unknown = 0, SessionStarted = 1, SessionConfigured = 2, @@ -4383,212 +7132,350 @@ public enum RealtimeUpdateKind { ResponseMcpCallCompleted = 45, ResponseMcpCallFailed = 46 } - public readonly partial struct ResponseConversationSelection : IEquatable { - public ResponseConversationSelection(string value); - public static ResponseConversationSelection Auto { get; } - public static ResponseConversationSelection None { get; } - public readonly bool Equals(ResponseConversationSelection other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right); - public static implicit operator ResponseConversationSelection(string value); - public static implicit operator ResponseConversationSelection?(string value); - public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right); - public override readonly string ToString(); - } - public class ResponseFinishedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList CreatedItems { get; } - public string ResponseId { get; } - public ConversationStatus? Status { get; } - public ConversationStatusDetails StatusDetails { get; } - public ConversationTokenUsage Usage { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public IReadOnlyList CreatedItems { get; } - public string ResponseId { get; } - public ConversationStatus Status { get; } - public ConversationStatusDetails StatusDetails { get; } - public ConversationTokenUsage Usage { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct SemanticEagernessLevel : IEquatable { - public SemanticEagernessLevel(string value); - public static SemanticEagernessLevel Auto { get; } - public static SemanticEagernessLevel High { get; } - public static SemanticEagernessLevel Low { get; } - public static SemanticEagernessLevel Medium { get; } - public readonly bool Equals(SemanticEagernessLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(SemanticEagernessLevel left, SemanticEagernessLevel right); - public static implicit operator SemanticEagernessLevel(string value); - public static implicit operator SemanticEagernessLevel?(string value); - public static bool operator !=(SemanticEagernessLevel left, SemanticEagernessLevel right); - public override readonly string ToString(); - } - public class TranscriptionSessionConfiguredUpdate : RealtimeUpdate, IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; } - public RealtimeAudioFormat InputAudioFormat { get; } - public InputTranscriptionOptions InputAudioTranscription { get; } - public TurnDetectionOptions TurnDetection { get; } - protected override RealtimeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override RealtimeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class TranscriptionSessionOptions : IJsonModel, IPersistableModel { - public RealtimeContentModalities ContentModalities { get; set; } - public IList Include { get; } - public RealtimeAudioFormat? InputAudioFormat { get; set; } - public InputNoiseReductionOptions InputNoiseReductionOptions { get; set; } - public InputTranscriptionOptions InputTranscriptionOptions { get; set; } - public TurnDetectionOptions TurnDetectionOptions { get; set; } - protected virtual TranscriptionSessionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual TranscriptionSessionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum TurnDetectionKind { + + public readonly partial struct ResponseConversationSelection : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseConversationSelection(string value) { } + public static ResponseConversationSelection Auto { get { throw null; } } + public static ResponseConversationSelection None { get { throw null; } } + + public readonly bool Equals(ResponseConversationSelection other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right) { throw null; } + public static implicit operator ResponseConversationSelection(string value) { throw null; } + public static implicit operator ResponseConversationSelection?(string value) { throw null; } + public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ResponseFinishedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseFinishedUpdate() { } + public System.Collections.Generic.IReadOnlyList CreatedItems { get { throw null; } } + public string ResponseId { get { throw null; } } + public ConversationStatus? Status { get { throw null; } } + public ConversationStatusDetails StatusDetails { get { throw null; } } + public ConversationTokenUsage Usage { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseFinishedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseFinishedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseStartedUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseStartedUpdate() { } + public System.Collections.Generic.IReadOnlyList CreatedItems { get { throw null; } } + public string ResponseId { get { throw null; } } + public ConversationStatus Status { get { throw null; } } + public ConversationStatusDetails StatusDetails { get { throw null; } } + public ConversationTokenUsage Usage { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseStartedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseStartedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct SemanticEagernessLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SemanticEagernessLevel(string value) { } + public static SemanticEagernessLevel Auto { get { throw null; } } + public static SemanticEagernessLevel High { get { throw null; } } + public static SemanticEagernessLevel Low { get { throw null; } } + public static SemanticEagernessLevel Medium { get { throw null; } } + + public readonly bool Equals(SemanticEagernessLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(SemanticEagernessLevel left, SemanticEagernessLevel right) { throw null; } + public static implicit operator SemanticEagernessLevel(string value) { throw null; } + public static implicit operator SemanticEagernessLevel?(string value) { throw null; } + public static bool operator !=(SemanticEagernessLevel left, SemanticEagernessLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class TranscriptionSessionConfiguredUpdate : RealtimeUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TranscriptionSessionConfiguredUpdate() { } + public RealtimeContentModalities ContentModalities { get { throw null; } } + public RealtimeAudioFormat InputAudioFormat { get { throw null; } } + public InputTranscriptionOptions InputAudioTranscription { get { throw null; } } + public TurnDetectionOptions TurnDetection { get { throw null; } } + + protected override RealtimeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override RealtimeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TranscriptionSessionConfiguredUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TranscriptionSessionConfiguredUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class TranscriptionSessionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RealtimeContentModalities ContentModalities { get { throw null; } set { } } + public System.Collections.Generic.IList Include { get { throw null; } } + public RealtimeAudioFormat? InputAudioFormat { get { throw null; } set { } } + public InputNoiseReductionOptions InputNoiseReductionOptions { get { throw null; } set { } } + public InputTranscriptionOptions InputTranscriptionOptions { get { throw null; } set { } } + public TurnDetectionOptions TurnDetectionOptions { get { throw null; } set { } } + + protected virtual TranscriptionSessionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual TranscriptionSessionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TranscriptionSessionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TranscriptionSessionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum TurnDetectionKind + { Unknown = 0, ServerVoiceActivityDetection = 1, SemanticVoiceActivityDetection = 2, Disabled = 3 } - public class TurnDetectionOptions : IJsonModel, IPersistableModel { - public TurnDetectionKind Kind { get; } - public static TurnDetectionOptions CreateDisabledTurnDetectionOptions(); - public static TurnDetectionOptions CreateSemanticVoiceActivityTurnDetectionOptions(SemanticEagernessLevel? eagernessLevel = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null); - public static TurnDetectionOptions CreateServerVoiceActivityTurnDetectionOptions(float? detectionThreshold = null, TimeSpan? prefixPaddingDuration = null, TimeSpan? silenceDuration = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null); - protected virtual TurnDetectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual TurnDetectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + public partial class TurnDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TurnDetectionOptions() { } + public TurnDetectionKind Kind { get { throw null; } } + + public static TurnDetectionOptions CreateDisabledTurnDetectionOptions() { throw null; } + public static TurnDetectionOptions CreateSemanticVoiceActivityTurnDetectionOptions(SemanticEagernessLevel? eagernessLevel = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null) { throw null; } + public static TurnDetectionOptions CreateServerVoiceActivityTurnDetectionOptions(float? detectionThreshold = null, System.TimeSpan? prefixPaddingDuration = null, System.TimeSpan? silenceDuration = null, bool? enableAutomaticResponseCreation = null, bool? enableResponseInterruption = null) { throw null; } + protected virtual TurnDetectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual TurnDetectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + TurnDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + TurnDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.Responses { - public class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, IJsonModel, IPersistableModel { - public AutomaticCodeInterpreterToolContainerConfiguration(); - public IList FileIds { get; } - protected override CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, IJsonModel, IPersistableModel { - public CodeInterpreterCallImageOutput(Uri imageUri); - public Uri ImageUri { get; set; } - protected override CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, IJsonModel, IPersistableModel { - public CodeInterpreterCallLogsOutput(string logs); - public string Logs { get; set; } - protected override CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterCallOutput : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual CodeInterpreterCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public CodeInterpreterCallResponseItem(string code); - public string Code { get; set; } - public string ContainerId { get; set; } - public IList Outputs { get; } - public CodeInterpreterCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum CodeInterpreterCallStatus { + +namespace OpenAI.Responses +{ + public partial class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AutomaticCodeInterpreterToolContainerConfiguration() { } + public System.Collections.Generic.IList FileIds { get { throw null; } } + + protected override CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + AutomaticCodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + AutomaticCodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallImageOutput(System.Uri imageUri) { } + public System.Uri ImageUri { get { throw null; } set { } } + + protected override CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallImageOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallImageOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallLogsOutput(string logs) { } + public string Logs { get { throw null; } set { } } + + protected override CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallLogsOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallLogsOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterCallOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CodeInterpreterCallOutput() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual CodeInterpreterCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterCallResponseItem(string code) { } + public string Code { get { throw null; } set { } } + public string ContainerId { get { throw null; } set { } } + public System.Collections.Generic.IList Outputs { get { throw null; } } + public CodeInterpreterCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum CodeInterpreterCallStatus + { InProgress = 0, Interpreting = 1, Completed = 2, Incomplete = 3, Failed = 4 } - public class CodeInterpreterTool : ResponseTool, IJsonModel, IPersistableModel { - public CodeInterpreterTool(CodeInterpreterToolContainer container); - public CodeInterpreterToolContainer Container { get; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterToolContainer : IJsonModel, IPersistableModel { - public CodeInterpreterToolContainer(CodeInterpreterToolContainerConfiguration containerConfiguration); - public CodeInterpreterToolContainer(string containerId); - public CodeInterpreterToolContainerConfiguration ContainerConfiguration { get; } - public string ContainerId { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual CodeInterpreterToolContainer JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolContainer PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CodeInterpreterToolContainerConfiguration : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(IEnumerable fileIds = null); - protected virtual CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ComputerCallAction : IJsonModel, IPersistableModel { - public Drawing.Point? ClickCoordinates { get; } - public ComputerCallActionMouseButton? ClickMouseButton { get; } - public Drawing.Point? DoubleClickCoordinates { get; } - public IList DragPath { get; } - public IList KeyPressKeyCodes { get; } - public ComputerCallActionKind Kind { get; } - public Drawing.Point? MoveCoordinates { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public Drawing.Point? ScrollCoordinates { get; } - public int? ScrollHorizontalOffset { get; } - public int? ScrollVerticalOffset { get; } - public string TypeText { get; } - public static ComputerCallAction CreateClickAction(Drawing.Point clickCoordinates, ComputerCallActionMouseButton clickMouseButton); - public static ComputerCallAction CreateDoubleClickAction(Drawing.Point doubleClickCoordinates, ComputerCallActionMouseButton doubleClickMouseButton); - public static ComputerCallAction CreateDragAction(IList dragPath); - public static ComputerCallAction CreateKeyPressAction(IList keyCodes); - public static ComputerCallAction CreateMoveAction(Drawing.Point moveCoordinates); - public static ComputerCallAction CreateScreenshotAction(); - public static ComputerCallAction CreateScrollAction(Drawing.Point scrollCoordinates, int horizontalOffset, int verticalOffset); - public static ComputerCallAction CreateTypeAction(string typeText); - public static ComputerCallAction CreateWaitAction(); - protected virtual ComputerCallAction JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallAction PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ComputerCallActionKind { + + public partial class CodeInterpreterTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterTool(CodeInterpreterToolContainer container) { } + public CodeInterpreterToolContainer Container { get { throw null; } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterToolContainer : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CodeInterpreterToolContainer(CodeInterpreterToolContainerConfiguration containerConfiguration) { } + public CodeInterpreterToolContainer(string containerId) { } + public CodeInterpreterToolContainerConfiguration ContainerConfiguration { get { throw null; } } + public string ContainerId { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual CodeInterpreterToolContainer JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolContainer PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolContainer System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolContainer System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CodeInterpreterToolContainerConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CodeInterpreterToolContainerConfiguration() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(System.Collections.Generic.IEnumerable fileIds = null) { throw null; } + protected virtual CodeInterpreterToolContainerConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CodeInterpreterToolContainerConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CodeInterpreterToolContainerConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ComputerCallAction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ComputerCallAction() { } + public System.Drawing.Point? ClickCoordinates { get { throw null; } } + public ComputerCallActionMouseButton? ClickMouseButton { get { throw null; } } + public System.Drawing.Point? DoubleClickCoordinates { get { throw null; } } + public System.Collections.Generic.IList DragPath { get { throw null; } } + public System.Collections.Generic.IList KeyPressKeyCodes { get { throw null; } } + public ComputerCallActionKind Kind { get { throw null; } } + public System.Drawing.Point? MoveCoordinates { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Drawing.Point? ScrollCoordinates { get { throw null; } } + public int? ScrollHorizontalOffset { get { throw null; } } + public int? ScrollVerticalOffset { get { throw null; } } + public string TypeText { get { throw null; } } + + public static ComputerCallAction CreateClickAction(System.Drawing.Point clickCoordinates, ComputerCallActionMouseButton clickMouseButton) { throw null; } + public static ComputerCallAction CreateDoubleClickAction(System.Drawing.Point doubleClickCoordinates, ComputerCallActionMouseButton doubleClickMouseButton) { throw null; } + public static ComputerCallAction CreateDragAction(System.Collections.Generic.IList dragPath) { throw null; } + public static ComputerCallAction CreateKeyPressAction(System.Collections.Generic.IList keyCodes) { throw null; } + public static ComputerCallAction CreateMoveAction(System.Drawing.Point moveCoordinates) { throw null; } + public static ComputerCallAction CreateScreenshotAction() { throw null; } + public static ComputerCallAction CreateScrollAction(System.Drawing.Point scrollCoordinates, int horizontalOffset, int verticalOffset) { throw null; } + public static ComputerCallAction CreateTypeAction(string typeText) { throw null; } + public static ComputerCallAction CreateWaitAction() { throw null; } + protected virtual ComputerCallAction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallAction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallAction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallAction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ComputerCallActionKind + { Click = 0, DoubleClick = 1, Drag = 2, @@ -4599,683 +7486,1052 @@ public enum ComputerCallActionKind { Type = 7, Wait = 8 } - public enum ComputerCallActionMouseButton { + + public enum ComputerCallActionMouseButton + { Left = 0, Right = 1, Wheel = 2, Back = 3, Forward = 4 } - public class ComputerCallOutput : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ComputerCallOutput CreateScreenshotOutput(BinaryData screenshotImageBytes, string screenshotImageBytesMediaType); - public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId); - public static ComputerCallOutput CreateScreenshotOutput(Uri screenshotImageUri); - protected virtual ComputerCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ComputerCallOutputResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output); - public IList AcknowledgedSafetyChecks { get; } - public string CallId { get; set; } - public ComputerCallOutput Output { get; set; } - public ComputerCallOutputStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ComputerCallOutputStatus { + + public partial class ComputerCallOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ComputerCallOutput() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ComputerCallOutput CreateScreenshotOutput(System.BinaryData screenshotImageBytes, string screenshotImageBytesMediaType) { throw null; } + public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId) { throw null; } + public static ComputerCallOutput CreateScreenshotOutput(System.Uri screenshotImageUri) { throw null; } + protected virtual ComputerCallOutput JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallOutput PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ComputerCallOutputResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output) { } + public System.Collections.Generic.IList AcknowledgedSafetyChecks { get { throw null; } } + public string CallId { get { throw null; } set { } } + public ComputerCallOutput Output { get { throw null; } set { } } + public ComputerCallOutputStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallOutputResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallOutputResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ComputerCallOutputStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - public class ComputerCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ComputerCallResponseItem(string callId, ComputerCallAction action, IEnumerable pendingSafetyChecks); - public ComputerCallAction Action { get; set; } - public string CallId { get; set; } - public IList PendingSafetyChecks { get; } - public ComputerCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ComputerCallSafetyCheck : IJsonModel, IPersistableModel { - public ComputerCallSafetyCheck(string id, string code, string message); - public string Code { get; set; } - public string Id { get; set; } - public string Message { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ComputerCallSafetyCheck JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ComputerCallSafetyCheck PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ComputerCallStatus { + + public partial class ComputerCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallResponseItem(string callId, ComputerCallAction action, System.Collections.Generic.IEnumerable pendingSafetyChecks) { } + public ComputerCallAction Action { get { throw null; } set { } } + public string CallId { get { throw null; } set { } } + public System.Collections.Generic.IList PendingSafetyChecks { get { throw null; } } + public ComputerCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ComputerCallSafetyCheck : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerCallSafetyCheck(string id, string code, string message) { } + public string Code { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ComputerCallSafetyCheck JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ComputerCallSafetyCheck PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerCallSafetyCheck System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerCallSafetyCheck System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ComputerCallStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - public class ComputerTool : ResponseTool, IJsonModel, IPersistableModel { - public ComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight); - public int DisplayHeight { get; set; } - public int DisplayWidth { get; set; } - public ComputerToolEnvironment Environment { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ComputerToolEnvironment : IEquatable { - public ComputerToolEnvironment(string value); - public static ComputerToolEnvironment Browser { get; } - public static ComputerToolEnvironment Linux { get; } - public static ComputerToolEnvironment Mac { get; } - public static ComputerToolEnvironment Ubuntu { get; } - public static ComputerToolEnvironment Windows { get; } - public readonly bool Equals(ComputerToolEnvironment other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ComputerToolEnvironment left, ComputerToolEnvironment right); - public static implicit operator ComputerToolEnvironment(string value); - public static implicit operator ComputerToolEnvironment?(string value); - public static bool operator !=(ComputerToolEnvironment left, ComputerToolEnvironment right); - public override readonly string ToString(); - } - public class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public ContainerFileCitationMessageAnnotation(string containerId, string fileId, int startIndex, int endIndex, string filename); - public string ContainerId { get; set; } - public int EndIndex { get; set; } - public string FileId { get; set; } - public string Filename { get; set; } - public int StartIndex { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CreateResponseOptions : IJsonModel, IPersistableModel { - public CreateResponseOptions(); - public CreateResponseOptions(IEnumerable inputItems, string model = null); - public bool? BackgroundModeEnabled { get; set; } - public ResponseConversationOptions ConversationOptions { get; set; } - public string EndUserId { get; set; } - public IList IncludedProperties { get; } - public IList InputItems { get; } - public string Instructions { get; set; } - public int? MaxOutputTokenCount { get; set; } - public int? MaxToolCallCount { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - public bool? ParallelToolCallsEnabled { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string PreviousResponseId { get; set; } - public ResponseReasoningOptions ReasoningOptions { get; set; } - public string SafetyIdentifier { get; set; } - public ResponseServiceTier? ServiceTier { get; set; } - public bool? StoredOutputEnabled { get; set; } - public bool? StreamingEnabled { get; set; } - public float? Temperature { get; set; } - public ResponseTextOptions TextOptions { get; set; } - public ResponseToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - public ResponseTruncationMode? TruncationMode { get; set; } - protected virtual CreateResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator BinaryContent(CreateResponseOptions createResponseOptions); - protected virtual CreateResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class CustomMcpToolCallApprovalPolicy : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public McpToolFilter ToolsAlwaysRequiringApproval { get; set; } - public McpToolFilter ToolsNeverRequiringApproval { get; set; } - protected virtual CustomMcpToolCallApprovalPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual CustomMcpToolCallApprovalPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public FileCitationMessageAnnotation(string fileId, int index, string filename); - public string FileId { get; set; } - public string Filename { get; set; } - public int Index { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FilePathMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public FilePathMessageAnnotation(string fileId, int index); - public string FileId { get; set; } - public int Index { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FileSearchCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FileSearchCallResponseItem(IEnumerable queries); - public IList Queries { get; } - public IList Results { get; set; } - public FileSearchCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FileSearchCallResult : IJsonModel, IPersistableModel { - public IDictionary Attributes { get; } - public string FileId { get; set; } - public string Filename { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public float? Score { get; set; } - public string Text { get; set; } - protected virtual FileSearchCallResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchCallResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum FileSearchCallStatus { + + public partial class ComputerTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight) { } + public int DisplayHeight { get { throw null; } set { } } + public int DisplayWidth { get { throw null; } set { } } + public ComputerToolEnvironment Environment { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ComputerTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ComputerTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ComputerToolEnvironment : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ComputerToolEnvironment(string value) { } + public static ComputerToolEnvironment Browser { get { throw null; } } + public static ComputerToolEnvironment Linux { get { throw null; } } + public static ComputerToolEnvironment Mac { get { throw null; } } + public static ComputerToolEnvironment Ubuntu { get { throw null; } } + public static ComputerToolEnvironment Windows { get { throw null; } } + + public readonly bool Equals(ComputerToolEnvironment other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ComputerToolEnvironment left, ComputerToolEnvironment right) { throw null; } + public static implicit operator ComputerToolEnvironment(string value) { throw null; } + public static implicit operator ComputerToolEnvironment?(string value) { throw null; } + public static bool operator !=(ComputerToolEnvironment left, ComputerToolEnvironment right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContainerFileCitationMessageAnnotation(string containerId, string fileId, int startIndex, int endIndex, string filename) { } + public string ContainerId { get { throw null; } set { } } + public int EndIndex { get { throw null; } set { } } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + public int StartIndex { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ContainerFileCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ContainerFileCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CreateResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public CreateResponseOptions() { } + public CreateResponseOptions(System.Collections.Generic.IEnumerable inputItems, string model = null) { } + public bool? BackgroundModeEnabled { get { throw null; } set { } } + public ResponseConversationOptions ConversationOptions { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public System.Collections.Generic.IList IncludedProperties { get { throw null; } } + public System.Collections.Generic.IList InputItems { get { throw null; } } + public string Instructions { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public int? MaxToolCallCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + public bool? ParallelToolCallsEnabled { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string PreviousResponseId { get { throw null; } set { } } + public ResponseReasoningOptions ReasoningOptions { get { throw null; } set { } } + public string SafetyIdentifier { get { throw null; } set { } } + public ResponseServiceTier? ServiceTier { get { throw null; } set { } } + public bool? StoredOutputEnabled { get { throw null; } set { } } + public bool? StreamingEnabled { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ResponseTextOptions TextOptions { get { throw null; } set { } } + public ResponseToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + public ResponseTruncationMode? TruncationMode { get { throw null; } set { } } + + protected virtual CreateResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator System.ClientModel.BinaryContent(CreateResponseOptions createResponseOptions) { throw null; } + protected virtual CreateResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CreateResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CreateResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class CustomMcpToolCallApprovalPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public McpToolFilter ToolsAlwaysRequiringApproval { get { throw null; } set { } } + public McpToolFilter ToolsNeverRequiringApproval { get { throw null; } set { } } + + protected virtual CustomMcpToolCallApprovalPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual CustomMcpToolCallApprovalPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + CustomMcpToolCallApprovalPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + CustomMcpToolCallApprovalPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FileCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileCitationMessageAnnotation(string fileId, int index, string filename) { } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + public int Index { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FilePathMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FilePathMessageAnnotation(string fileId, int index) { } + public string FileId { get { throw null; } set { } } + public int Index { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FilePathMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FilePathMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FileSearchCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchCallResponseItem(System.Collections.Generic.IEnumerable queries) { } + public System.Collections.Generic.IList Queries { get { throw null; } } + public System.Collections.Generic.IList Results { get { throw null; } set { } } + public FileSearchCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FileSearchCallResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IDictionary Attributes { get { throw null; } } + public string FileId { get { throw null; } set { } } + public string Filename { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public float? Score { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected virtual FileSearchCallResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchCallResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchCallResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchCallResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum FileSearchCallStatus + { InProgress = 0, Searching = 1, Completed = 2, Incomplete = 3, Failed = 4 } - public class FileSearchTool : ResponseTool, IJsonModel, IPersistableModel { - public FileSearchTool(IEnumerable vectorStoreIds); - public BinaryData Filters { get; set; } - public int? MaxResultCount { get; set; } - public FileSearchToolRankingOptions RankingOptions { get; set; } - public IList VectorStoreIds { get; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct FileSearchToolRanker : IEquatable { - public FileSearchToolRanker(string value); - public static FileSearchToolRanker Auto { get; } - public static FileSearchToolRanker Default20241115 { get; } - public readonly bool Equals(FileSearchToolRanker other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(FileSearchToolRanker left, FileSearchToolRanker right); - public static implicit operator FileSearchToolRanker(string value); - public static implicit operator FileSearchToolRanker?(string value); - public static bool operator !=(FileSearchToolRanker left, FileSearchToolRanker right); - public override readonly string ToString(); - } - public class FileSearchToolRankingOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public FileSearchToolRanker? Ranker { get; set; } - public float? ScoreThreshold { get; set; } - protected virtual FileSearchToolRankingOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileSearchToolRankingOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FunctionCallOutputResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FunctionCallOutputResponseItem(string callId, string functionOutput); - public string CallId { get; set; } - public string FunctionOutput { get; set; } - public FunctionCallOutputStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum FunctionCallOutputStatus { + + public partial class FileSearchTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileSearchTool(System.Collections.Generic.IEnumerable vectorStoreIds) { } + public System.BinaryData Filters { get { throw null; } set { } } + public int? MaxResultCount { get { throw null; } set { } } + public FileSearchToolRankingOptions RankingOptions { get { throw null; } set { } } + public System.Collections.Generic.IList VectorStoreIds { get { throw null; } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct FileSearchToolRanker : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileSearchToolRanker(string value) { } + public static FileSearchToolRanker Auto { get { throw null; } } + public static FileSearchToolRanker Default20241115 { get { throw null; } } + + public readonly bool Equals(FileSearchToolRanker other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(FileSearchToolRanker left, FileSearchToolRanker right) { throw null; } + public static implicit operator FileSearchToolRanker(string value) { throw null; } + public static implicit operator FileSearchToolRanker?(string value) { throw null; } + public static bool operator !=(FileSearchToolRanker left, FileSearchToolRanker right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class FileSearchToolRankingOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public FileSearchToolRanker? Ranker { get { throw null; } set { } } + public float? ScoreThreshold { get { throw null; } set { } } + + protected virtual FileSearchToolRankingOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileSearchToolRankingOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileSearchToolRankingOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileSearchToolRankingOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FunctionCallOutputResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionCallOutputResponseItem(string callId, string functionOutput) { } + public string CallId { get { throw null; } set { } } + public string FunctionOutput { get { throw null; } set { } } + public FunctionCallOutputStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionCallOutputResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionCallOutputResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum FunctionCallOutputStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - public class FunctionCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public FunctionCallResponseItem(string callId, string functionName, BinaryData functionArguments); - public string CallId { get; set; } - public BinaryData FunctionArguments { get; set; } - public string FunctionName { get; set; } - public FunctionCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum FunctionCallStatus { + + public partial class FunctionCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionCallResponseItem(string callId, string functionName, System.BinaryData functionArguments) { } + public string CallId { get { throw null; } set { } } + public System.BinaryData FunctionArguments { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public FunctionCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum FunctionCallStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - public class FunctionTool : ResponseTool, IJsonModel, IPersistableModel { - public FunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled); - public string FunctionDescription { get; set; } - public string FunctionName { get; set; } - public BinaryData FunctionParameters { get; set; } - public bool? StrictModeEnabled { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class GetResponseOptions : IJsonModel, IPersistableModel { - public GetResponseOptions(string responseId); - public IList IncludedProperties { get; set; } - public bool? IncludeObfuscation { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string ResponseId { get; } - public int? StartingAfter { get; set; } - public bool? StreamingEnabled { get; set; } - protected virtual GetResponseOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual GetResponseOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct GlobalMcpToolCallApprovalPolicy : IEquatable { - public GlobalMcpToolCallApprovalPolicy(string value); - public static GlobalMcpToolCallApprovalPolicy AlwaysRequireApproval { get; } - public static GlobalMcpToolCallApprovalPolicy NeverRequireApproval { get; } - public readonly bool Equals(GlobalMcpToolCallApprovalPolicy other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right); - public static implicit operator GlobalMcpToolCallApprovalPolicy(string value); - public static implicit operator GlobalMcpToolCallApprovalPolicy?(string value); - public static bool operator !=(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right); - public override readonly string ToString(); - } - public class ImageGenerationCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ImageGenerationCallResponseItem(BinaryData imageResultBytes); - public BinaryData ImageResultBytes { get; set; } - public ImageGenerationCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ImageGenerationCallStatus { + + public partial class FunctionTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FunctionTool(string functionName, System.BinaryData functionParameters, bool? strictModeEnabled) { } + public string FunctionDescription { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public System.BinaryData FunctionParameters { get { throw null; } set { } } + public bool? StrictModeEnabled { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FunctionTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FunctionTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class GetResponseOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GetResponseOptions(string responseId) { } + public System.Collections.Generic.IList IncludedProperties { get { throw null; } set { } } + public bool? IncludeObfuscation { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ResponseId { get { throw null; } } + public int? StartingAfter { get { throw null; } set { } } + public bool? StreamingEnabled { get { throw null; } set { } } + + protected virtual GetResponseOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual GetResponseOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + GetResponseOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + GetResponseOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct GlobalMcpToolCallApprovalPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GlobalMcpToolCallApprovalPolicy(string value) { } + public static GlobalMcpToolCallApprovalPolicy AlwaysRequireApproval { get { throw null; } } + public static GlobalMcpToolCallApprovalPolicy NeverRequireApproval { get { throw null; } } + + public readonly bool Equals(GlobalMcpToolCallApprovalPolicy other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right) { throw null; } + public static implicit operator GlobalMcpToolCallApprovalPolicy(string value) { throw null; } + public static implicit operator GlobalMcpToolCallApprovalPolicy?(string value) { throw null; } + public static bool operator !=(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ImageGenerationCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationCallResponseItem(System.BinaryData imageResultBytes) { } + public System.BinaryData ImageResultBytes { get { throw null; } set { } } + public ImageGenerationCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ImageGenerationCallStatus + { InProgress = 0, Completed = 1, Generating = 2, Failed = 3 } - public class ImageGenerationTool : ResponseTool, IJsonModel, IPersistableModel { - public ImageGenerationTool(); - public ImageGenerationToolBackground? Background { get; set; } - public ImageGenerationToolInputFidelity? InputFidelity { get; set; } - public ImageGenerationToolInputImageMask InputImageMask { get; set; } - public string Model { get; set; } - public ImageGenerationToolModerationLevel? ModerationLevel { get; set; } - public int? OutputCompressionFactor { get; set; } - public ImageGenerationToolOutputFileFormat? OutputFileFormat { get; set; } - public int? PartialImageCount { get; set; } - public ImageGenerationToolQuality? Quality { get; set; } - public ImageGenerationToolSize? Size { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ImageGenerationToolBackground : IEquatable { - public ImageGenerationToolBackground(string value); - public static ImageGenerationToolBackground Auto { get; } - public static ImageGenerationToolBackground Opaque { get; } - public static ImageGenerationToolBackground Transparent { get; } - public readonly bool Equals(ImageGenerationToolBackground other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolBackground left, ImageGenerationToolBackground right); - public static implicit operator ImageGenerationToolBackground(string value); - public static implicit operator ImageGenerationToolBackground?(string value); - public static bool operator !=(ImageGenerationToolBackground left, ImageGenerationToolBackground right); - public override readonly string ToString(); - } - public readonly partial struct ImageGenerationToolInputFidelity : IEquatable { - public ImageGenerationToolInputFidelity(string value); - public static ImageGenerationToolInputFidelity High { get; } - public static ImageGenerationToolInputFidelity Low { get; } - public readonly bool Equals(ImageGenerationToolInputFidelity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right); - public static implicit operator ImageGenerationToolInputFidelity(string value); - public static implicit operator ImageGenerationToolInputFidelity?(string value); - public static bool operator !=(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right); - public override readonly string ToString(); - } - public class ImageGenerationToolInputImageMask : IJsonModel, IPersistableModel { - public ImageGenerationToolInputImageMask(string fileId); - public ImageGenerationToolInputImageMask(Uri imageUri); - public string FileId { get; } - public Uri ImageUri { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ImageGenerationToolInputImageMask JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ImageGenerationToolInputImageMask PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ImageGenerationToolModerationLevel : IEquatable { - public ImageGenerationToolModerationLevel(string value); - public static ImageGenerationToolModerationLevel Auto { get; } - public static ImageGenerationToolModerationLevel Low { get; } - public readonly bool Equals(ImageGenerationToolModerationLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right); - public static implicit operator ImageGenerationToolModerationLevel(string value); - public static implicit operator ImageGenerationToolModerationLevel?(string value); - public static bool operator !=(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right); - public override readonly string ToString(); - } - public readonly partial struct ImageGenerationToolOutputFileFormat : IEquatable { - public ImageGenerationToolOutputFileFormat(string value); - public static ImageGenerationToolOutputFileFormat Jpeg { get; } - public static ImageGenerationToolOutputFileFormat Png { get; } - public static ImageGenerationToolOutputFileFormat Webp { get; } - public readonly bool Equals(ImageGenerationToolOutputFileFormat other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right); - public static implicit operator ImageGenerationToolOutputFileFormat(string value); - public static implicit operator ImageGenerationToolOutputFileFormat?(string value); - public static bool operator !=(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right); - public override readonly string ToString(); - } - public readonly partial struct ImageGenerationToolQuality : IEquatable { - public ImageGenerationToolQuality(string value); - public static ImageGenerationToolQuality Auto { get; } - public static ImageGenerationToolQuality High { get; } - public static ImageGenerationToolQuality Low { get; } - public static ImageGenerationToolQuality Medium { get; } - public readonly bool Equals(ImageGenerationToolQuality other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolQuality left, ImageGenerationToolQuality right); - public static implicit operator ImageGenerationToolQuality(string value); - public static implicit operator ImageGenerationToolQuality?(string value); - public static bool operator !=(ImageGenerationToolQuality left, ImageGenerationToolQuality right); - public override readonly string ToString(); - } - public readonly partial struct ImageGenerationToolSize : IEquatable { + + public partial class ImageGenerationTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationTool() { } + public ImageGenerationToolBackground? Background { get { throw null; } set { } } + public ImageGenerationToolInputFidelity? InputFidelity { get { throw null; } set { } } + public ImageGenerationToolInputImageMask InputImageMask { get { throw null; } set { } } + public string Model { get { throw null; } set { } } + public ImageGenerationToolModerationLevel? ModerationLevel { get { throw null; } set { } } + public int? OutputCompressionFactor { get { throw null; } set { } } + public ImageGenerationToolOutputFileFormat? OutputFileFormat { get { throw null; } set { } } + public int? PartialImageCount { get { throw null; } set { } } + public ImageGenerationToolQuality? Quality { get { throw null; } set { } } + public ImageGenerationToolSize? Size { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ImageGenerationToolBackground : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolBackground(string value) { } + public static ImageGenerationToolBackground Auto { get { throw null; } } + public static ImageGenerationToolBackground Opaque { get { throw null; } } + public static ImageGenerationToolBackground Transparent { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolBackground other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolBackground left, ImageGenerationToolBackground right) { throw null; } + public static implicit operator ImageGenerationToolBackground(string value) { throw null; } + public static implicit operator ImageGenerationToolBackground?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolBackground left, ImageGenerationToolBackground right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct ImageGenerationToolInputFidelity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolInputFidelity(string value) { } + public static ImageGenerationToolInputFidelity High { get { throw null; } } + public static ImageGenerationToolInputFidelity Low { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolInputFidelity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right) { throw null; } + public static implicit operator ImageGenerationToolInputFidelity(string value) { throw null; } + public static implicit operator ImageGenerationToolInputFidelity?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ImageGenerationToolInputImageMask : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImageGenerationToolInputImageMask(string fileId) { } + public ImageGenerationToolInputImageMask(System.Uri imageUri) { } + public string FileId { get { throw null; } } + public System.Uri ImageUri { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ImageGenerationToolInputImageMask JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ImageGenerationToolInputImageMask PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ImageGenerationToolInputImageMask System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ImageGenerationToolInputImageMask System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ImageGenerationToolModerationLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolModerationLevel(string value) { } + public static ImageGenerationToolModerationLevel Auto { get { throw null; } } + public static ImageGenerationToolModerationLevel Low { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolModerationLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right) { throw null; } + public static implicit operator ImageGenerationToolModerationLevel(string value) { throw null; } + public static implicit operator ImageGenerationToolModerationLevel?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct ImageGenerationToolOutputFileFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolOutputFileFormat(string value) { } + public static ImageGenerationToolOutputFileFormat Jpeg { get { throw null; } } + public static ImageGenerationToolOutputFileFormat Png { get { throw null; } } + public static ImageGenerationToolOutputFileFormat Webp { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolOutputFileFormat other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right) { throw null; } + public static implicit operator ImageGenerationToolOutputFileFormat(string value) { throw null; } + public static implicit operator ImageGenerationToolOutputFileFormat?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct ImageGenerationToolQuality : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageGenerationToolQuality(string value) { } + public static ImageGenerationToolQuality Auto { get { throw null; } } + public static ImageGenerationToolQuality High { get { throw null; } } + public static ImageGenerationToolQuality Low { get { throw null; } } + public static ImageGenerationToolQuality Medium { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolQuality other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolQuality left, ImageGenerationToolQuality right) { throw null; } + public static implicit operator ImageGenerationToolQuality(string value) { throw null; } + public static implicit operator ImageGenerationToolQuality?(string value) { throw null; } + public static bool operator !=(ImageGenerationToolQuality left, ImageGenerationToolQuality right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct ImageGenerationToolSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; public static readonly ImageGenerationToolSize W1024xH1024; public static readonly ImageGenerationToolSize W1024xH1536; public static readonly ImageGenerationToolSize W1536xH1024; - public ImageGenerationToolSize(int width, int height); - public static ImageGenerationToolSize Auto { get; } - public readonly bool Equals(ImageGenerationToolSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ImageGenerationToolSize left, ImageGenerationToolSize right); - public static bool operator !=(ImageGenerationToolSize left, ImageGenerationToolSize right); - public override readonly string ToString(); - } - public readonly partial struct IncludedResponseProperty : IEquatable { - public IncludedResponseProperty(string value); - public static IncludedResponseProperty CodeInterpreterCallOutputs { get; } - public static IncludedResponseProperty ComputerCallOutputImageUri { get; } - public static IncludedResponseProperty FileSearchCallResults { get; } - public static IncludedResponseProperty MessageInputImageUri { get; } - public static IncludedResponseProperty ReasoningEncryptedContent { get; } - public readonly bool Equals(IncludedResponseProperty other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(IncludedResponseProperty left, IncludedResponseProperty right); - public static implicit operator IncludedResponseProperty(string value); - public static implicit operator IncludedResponseProperty?(string value); - public static bool operator !=(IncludedResponseProperty left, IncludedResponseProperty right); - public override readonly string ToString(); - } - public class McpTool : ResponseTool, IJsonModel, IPersistableModel { - public McpTool(string serverLabel, McpToolConnectorId connectorId); - public McpTool(string serverLabel, Uri serverUri); - public McpToolFilter AllowedTools { get; set; } - public string AuthorizationToken { get; set; } - public McpToolConnectorId? ConnectorId { get; set; } - public IDictionary Headers { get; set; } - public string ServerDescription { get; set; } - public string ServerLabel { get; set; } - public Uri ServerUri { get; set; } - public McpToolCallApprovalPolicy ToolCallApprovalPolicy { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class McpToolCallApprovalPolicy : IJsonModel, IPersistableModel { - public McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy); - public McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy); - public CustomMcpToolCallApprovalPolicy CustomPolicy { get; } - public GlobalMcpToolCallApprovalPolicy? GlobalPolicy { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual McpToolCallApprovalPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static implicit operator McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy); - public static implicit operator McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy); - protected virtual McpToolCallApprovalPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class McpToolCallApprovalRequestItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallApprovalRequestItem(string id, string serverLabel, string toolName, BinaryData toolArguments); - public string ServerLabel { get; set; } - public BinaryData ToolArguments { get; set; } - public string ToolName { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class McpToolCallApprovalResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallApprovalResponseItem(string approvalRequestId, bool approved); - public string ApprovalRequestId { get; set; } - public bool Approved { get; set; } - public string Reason { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class McpToolCallItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolCallItem(string serverLabel, string toolName, BinaryData toolArguments); - public BinaryData Error { get; set; } - public string ServerLabel { get; set; } - public BinaryData ToolArguments { get; set; } - public string ToolName { get; set; } - public string ToolOutput { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct McpToolConnectorId : IEquatable { - public McpToolConnectorId(string value); - public static McpToolConnectorId Dropbox { get; } - public static McpToolConnectorId Gmail { get; } - public static McpToolConnectorId GoogleCalendar { get; } - public static McpToolConnectorId GoogleDrive { get; } - public static McpToolConnectorId MicrosoftTeams { get; } - public static McpToolConnectorId OutlookCalendar { get; } - public static McpToolConnectorId OutlookEmail { get; } - public static McpToolConnectorId SharePoint { get; } - public readonly bool Equals(McpToolConnectorId other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(McpToolConnectorId left, McpToolConnectorId right); - public static implicit operator McpToolConnectorId(string value); - public static implicit operator McpToolConnectorId?(string value); - public static bool operator !=(McpToolConnectorId left, McpToolConnectorId right); - public override readonly string ToString(); - } - public class McpToolDefinition : IJsonModel, IPersistableModel { - public McpToolDefinition(string name, BinaryData inputSchema); - public BinaryData Annotations { get; set; } - public string Description { get; set; } - public BinaryData InputSchema { get; set; } - public string Name { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual McpToolDefinition JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual McpToolDefinition PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class McpToolDefinitionListItem : ResponseItem, IJsonModel, IPersistableModel { - public McpToolDefinitionListItem(string serverLabel, IEnumerable toolDefinitions); - public BinaryData Error { get; set; } - public string ServerLabel { get; set; } - public IList ToolDefinitions { get; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class McpToolFilter : IJsonModel, IPersistableModel { - public bool? IsReadOnly { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public IList ToolNames { get; } - protected virtual McpToolFilter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual McpToolFilter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class MessageResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public IList Content { get; } - public MessageRole Role { get; } - public MessageStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum MessageRole { + public ImageGenerationToolSize(int width, int height) { } + public static ImageGenerationToolSize Auto { get { throw null; } } + + public readonly bool Equals(ImageGenerationToolSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ImageGenerationToolSize left, ImageGenerationToolSize right) { throw null; } + public static bool operator !=(ImageGenerationToolSize left, ImageGenerationToolSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct IncludedResponseProperty : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IncludedResponseProperty(string value) { } + public static IncludedResponseProperty CodeInterpreterCallOutputs { get { throw null; } } + public static IncludedResponseProperty ComputerCallOutputImageUri { get { throw null; } } + public static IncludedResponseProperty FileSearchCallResults { get { throw null; } } + public static IncludedResponseProperty MessageInputImageUri { get { throw null; } } + public static IncludedResponseProperty ReasoningEncryptedContent { get { throw null; } } + + public readonly bool Equals(IncludedResponseProperty other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(IncludedResponseProperty left, IncludedResponseProperty right) { throw null; } + public static implicit operator IncludedResponseProperty(string value) { throw null; } + public static implicit operator IncludedResponseProperty?(string value) { throw null; } + public static bool operator !=(IncludedResponseProperty left, IncludedResponseProperty right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class McpTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpTool(string serverLabel, McpToolConnectorId connectorId) { } + public McpTool(string serverLabel, System.Uri serverUri) { } + public McpToolFilter AllowedTools { get { throw null; } set { } } + public string AuthorizationToken { get { throw null; } set { } } + public McpToolConnectorId? ConnectorId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Headers { get { throw null; } set { } } + public string ServerDescription { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.Uri ServerUri { get { throw null; } set { } } + public McpToolCallApprovalPolicy ToolCallApprovalPolicy { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class McpToolCallApprovalPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy) { } + public McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy) { } + public CustomMcpToolCallApprovalPolicy CustomPolicy { get { throw null; } } + public GlobalMcpToolCallApprovalPolicy? GlobalPolicy { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual McpToolCallApprovalPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy) { throw null; } + public static implicit operator McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy) { throw null; } + protected virtual McpToolCallApprovalPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class McpToolCallApprovalRequestItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalRequestItem(string id, string serverLabel, string toolName, System.BinaryData toolArguments) { } + public string ServerLabel { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + public string ToolName { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalRequestItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalRequestItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class McpToolCallApprovalResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallApprovalResponseItem(string approvalRequestId, bool approved) { } + public string ApprovalRequestId { get { throw null; } set { } } + public bool Approved { get { throw null; } set { } } + public string Reason { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallApprovalResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallApprovalResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class McpToolCallItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolCallItem(string serverLabel, string toolName, System.BinaryData toolArguments) { } + public System.BinaryData Error { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + public string ToolName { get { throw null; } set { } } + public string ToolOutput { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolCallItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolCallItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct McpToolConnectorId : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public McpToolConnectorId(string value) { } + public static McpToolConnectorId Dropbox { get { throw null; } } + public static McpToolConnectorId Gmail { get { throw null; } } + public static McpToolConnectorId GoogleCalendar { get { throw null; } } + public static McpToolConnectorId GoogleDrive { get { throw null; } } + public static McpToolConnectorId MicrosoftTeams { get { throw null; } } + public static McpToolConnectorId OutlookCalendar { get { throw null; } } + public static McpToolConnectorId OutlookEmail { get { throw null; } } + public static McpToolConnectorId SharePoint { get { throw null; } } + + public readonly bool Equals(McpToolConnectorId other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(McpToolConnectorId left, McpToolConnectorId right) { throw null; } + public static implicit operator McpToolConnectorId(string value) { throw null; } + public static implicit operator McpToolConnectorId?(string value) { throw null; } + public static bool operator !=(McpToolConnectorId left, McpToolConnectorId right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class McpToolDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolDefinition(string name, System.BinaryData inputSchema) { } + public System.BinaryData Annotations { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.BinaryData InputSchema { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual McpToolDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual McpToolDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class McpToolDefinitionListItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public McpToolDefinitionListItem(string serverLabel, System.Collections.Generic.IEnumerable toolDefinitions) { } + public System.BinaryData Error { get { throw null; } set { } } + public string ServerLabel { get { throw null; } set { } } + public System.Collections.Generic.IList ToolDefinitions { get { throw null; } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolDefinitionListItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolDefinitionListItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class McpToolFilter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? IsReadOnly { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public System.Collections.Generic.IList ToolNames { get { throw null; } } + + protected virtual McpToolFilter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual McpToolFilter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + McpToolFilter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + McpToolFilter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class MessageResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MessageResponseItem() { } + public System.Collections.Generic.IList Content { get { throw null; } } + public MessageRole Role { get { throw null; } } + public MessageStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + MessageResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + MessageResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum MessageRole + { Unknown = 0, Assistant = 1, Developer = 2, System = 3, User = 4 } - public enum MessageStatus { + + public enum MessageStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - public class ReasoningResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ReasoningResponseItem(IEnumerable summaryParts); - public ReasoningResponseItem(string summaryText); - public string EncryptedContent { get; set; } - public ReasoningStatus? Status { get; set; } - public IList SummaryParts { get; } - public string GetSummaryText(); - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ReasoningStatus { + + public partial class ReasoningResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReasoningResponseItem(System.Collections.Generic.IEnumerable summaryParts) { } + public ReasoningResponseItem(string summaryText) { } + public string EncryptedContent { get { throw null; } set { } } + public ReasoningStatus? Status { get { throw null; } set { } } + public System.Collections.Generic.IList SummaryParts { get { throw null; } } + + public string GetSummaryText() { throw null; } + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ReasoningStatus + { InProgress = 0, Completed = 1, Incomplete = 2 } - public class ReasoningSummaryPart : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ReasoningSummaryTextPart CreateTextPart(string text); - protected virtual ReasoningSummaryPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ReasoningSummaryPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ReasoningSummaryTextPart : ReasoningSummaryPart, IJsonModel, IPersistableModel { - public ReasoningSummaryTextPart(string text); - public string Text { get; set; } - protected override ReasoningSummaryPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ReasoningSummaryPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ReferenceResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public ReferenceResponseItem(string id); - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseContentPart : IJsonModel, IPersistableModel { - public BinaryData InputFileBytes { get; } - public string InputFileBytesMediaType { get; } - public string InputFileId { get; } - public string InputFilename { get; } - public ResponseImageDetailLevel? InputImageDetailLevel { get; } - public string InputImageFileId { get; } - public Uri InputImageUri { get; } - public ResponseContentPartKind Kind { get; } - public IReadOnlyList OutputTextAnnotations { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string Refusal { get; } - public string Text { get; } - public static ResponseContentPart CreateInputFilePart(BinaryData fileBytes, string fileBytesMediaType, string filename); - public static ResponseContentPart CreateInputFilePart(string fileId); - public static ResponseContentPart CreateInputImagePart(string imageFileId, ResponseImageDetailLevel? imageDetailLevel = null); - public static ResponseContentPart CreateInputImagePart(Uri imageUri, ResponseImageDetailLevel? imageDetailLevel = null); - public static ResponseContentPart CreateInputTextPart(string text); - public static ResponseContentPart CreateOutputTextPart(string text, IEnumerable annotations); - public static ResponseContentPart CreateRefusalPart(string refusal); - protected virtual ResponseContentPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseContentPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ResponseContentPartKind { + + public partial class ReasoningSummaryPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ReasoningSummaryPart() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ReasoningSummaryTextPart CreateTextPart(string text) { throw null; } + protected virtual ReasoningSummaryPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ReasoningSummaryPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningSummaryPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningSummaryPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ReasoningSummaryTextPart : ReasoningSummaryPart, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReasoningSummaryTextPart(string text) { } + public string Text { get { throw null; } set { } } + + protected override ReasoningSummaryPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ReasoningSummaryPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReasoningSummaryTextPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReasoningSummaryTextPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ReferenceResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ReferenceResponseItem(string id) { } + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ReferenceResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ReferenceResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseContentPart : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseContentPart() { } + public System.BinaryData InputFileBytes { get { throw null; } } + public string InputFileBytesMediaType { get { throw null; } } + public string InputFileId { get { throw null; } } + public string InputFilename { get { throw null; } } + public ResponseImageDetailLevel? InputImageDetailLevel { get { throw null; } } + public string InputImageFileId { get { throw null; } } + public System.Uri InputImageUri { get { throw null; } } + public ResponseContentPartKind Kind { get { throw null; } } + public System.Collections.Generic.IReadOnlyList OutputTextAnnotations { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string Refusal { get { throw null; } } + public string Text { get { throw null; } } + + public static ResponseContentPart CreateInputFilePart(System.BinaryData fileBytes, string fileBytesMediaType, string filename) { throw null; } + public static ResponseContentPart CreateInputFilePart(string fileId) { throw null; } + public static ResponseContentPart CreateInputImagePart(string imageFileId, ResponseImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ResponseContentPart CreateInputImagePart(System.Uri imageUri, ResponseImageDetailLevel? imageDetailLevel = null) { throw null; } + public static ResponseContentPart CreateInputTextPart(string text) { throw null; } + public static ResponseContentPart CreateOutputTextPart(string text, System.Collections.Generic.IEnumerable annotations) { throw null; } + public static ResponseContentPart CreateRefusalPart(string refusal) { throw null; } + protected virtual ResponseContentPart JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseContentPart PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseContentPart System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseContentPart System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ResponseContentPartKind + { Unknown = 0, InputText = 1, InputImage = 2, @@ -5283,384 +8539,545 @@ public enum ResponseContentPartKind { OutputText = 4, Refusal = 5 } - public class ResponseConversationOptions : IJsonModel, IPersistableModel { - public ResponseConversationOptions(string conversationId); - public string ConversationId { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ResponseConversationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseConversationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string ResponseId { get; set; } - protected virtual ResponseDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseDeletionResult(ClientResult result); - protected virtual ResponseDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseError : IJsonModel, IPersistableModel { - public ResponseErrorCode Code { get; } - public string Message { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ResponseError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ResponseErrorCode : IEquatable { - public ResponseErrorCode(string value); - public static ResponseErrorCode EmptyImageFile { get; } - public static ResponseErrorCode FailedToDownloadImage { get; } - public static ResponseErrorCode ImageContentPolicyViolation { get; } - public static ResponseErrorCode ImageFileNotFound { get; } - public static ResponseErrorCode ImageFileTooLarge { get; } - public static ResponseErrorCode ImageParseError { get; } - public static ResponseErrorCode ImageTooLarge { get; } - public static ResponseErrorCode ImageTooSmall { get; } - public static ResponseErrorCode InvalidBase64Image { get; } - public static ResponseErrorCode InvalidImage { get; } - public static ResponseErrorCode InvalidImageFormat { get; } - public static ResponseErrorCode InvalidImageMode { get; } - public static ResponseErrorCode InvalidImageUrl { get; } - public static ResponseErrorCode InvalidPrompt { get; } - public static ResponseErrorCode RateLimitExceeded { get; } - public static ResponseErrorCode ServerError { get; } - public static ResponseErrorCode UnsupportedImageMediaType { get; } - public static ResponseErrorCode VectorStoreTimeout { get; } - public readonly bool Equals(ResponseErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseErrorCode left, ResponseErrorCode right); - public static implicit operator ResponseErrorCode(string value); - public static implicit operator ResponseErrorCode?(string value); - public static bool operator !=(ResponseErrorCode left, ResponseErrorCode right); - public override readonly string ToString(); - } - public readonly partial struct ResponseImageDetailLevel : IEquatable { - public ResponseImageDetailLevel(string value); - public static ResponseImageDetailLevel Auto { get; } - public static ResponseImageDetailLevel High { get; } - public static ResponseImageDetailLevel Low { get; } - public readonly bool Equals(ResponseImageDetailLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseImageDetailLevel left, ResponseImageDetailLevel right); - public static implicit operator ResponseImageDetailLevel(string value); - public static implicit operator ResponseImageDetailLevel?(string value); - public static bool operator !=(ResponseImageDetailLevel left, ResponseImageDetailLevel right); - public override readonly string ToString(); - } - public class ResponseIncompleteStatusDetails : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public ResponseIncompleteStatusReason? Reason { get; } - protected virtual ResponseIncompleteStatusDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseIncompleteStatusDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ResponseIncompleteStatusReason : IEquatable { - public ResponseIncompleteStatusReason(string value); - public static ResponseIncompleteStatusReason ContentFilter { get; } - public static ResponseIncompleteStatusReason MaxOutputTokens { get; } - public readonly bool Equals(ResponseIncompleteStatusReason other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right); - public static implicit operator ResponseIncompleteStatusReason(string value); - public static implicit operator ResponseIncompleteStatusReason?(string value); - public static bool operator !=(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right); - public override readonly string ToString(); - } - public class ResponseInputTokenUsageDetails : IJsonModel, IPersistableModel { - public int CachedTokenCount { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ResponseInputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseInputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseItem : IJsonModel, IPersistableModel { - public string Id { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static MessageResponseItem CreateAssistantMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateAssistantMessageItem(string outputTextContent, IEnumerable annotations = null); - public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, IEnumerable pendingSafetyChecks); - public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output); - public static MessageResponseItem CreateDeveloperMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent); - public static FileSearchCallResponseItem CreateFileSearchCallItem(IEnumerable queries); - public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, BinaryData functionArguments); - public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput); - public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string id, string serverLabel, string name, BinaryData arguments); - public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved); - public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, BinaryData arguments); - public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, IEnumerable toolDefinitions); - public static ReasoningResponseItem CreateReasoningItem(IEnumerable summaryParts); - public static ReasoningResponseItem CreateReasoningItem(string summaryText); - public static ReferenceResponseItem CreateReferenceItem(string id); - public static MessageResponseItem CreateSystemMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateSystemMessageItem(string inputTextContent); - public static MessageResponseItem CreateUserMessageItem(IEnumerable contentParts); - public static MessageResponseItem CreateUserMessageItem(string inputTextContent); - public static WebSearchCallResponseItem CreateWebSearchCallItem(); - protected virtual ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseItem(ClientResult result); - protected virtual ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseItemCollectionOptions : IJsonModel, IPersistableModel { - public ResponseItemCollectionOptions(string responseId); - public string AfterId { get; set; } - public string BeforeId { get; set; } - public ResponseItemCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - public string ResponseId { get; } - protected virtual ResponseItemCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseItemCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ResponseItemCollectionOrder : IEquatable { - public ResponseItemCollectionOrder(string value); - public static ResponseItemCollectionOrder Ascending { get; } - public static ResponseItemCollectionOrder Descending { get; } - public readonly bool Equals(ResponseItemCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right); - public static implicit operator ResponseItemCollectionOrder(string value); - public static implicit operator ResponseItemCollectionOrder?(string value); - public static bool operator !=(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right); - public override readonly string ToString(); - } - public class ResponseItemCollectionPage : IJsonModel, IPersistableModel { - public IList Data { get; } - public string FirstId { get; set; } - public bool HasMore { get; set; } - public string LastId { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ResponseItemCollectionPage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseItemCollectionPage(ClientResult result); - protected virtual ResponseItemCollectionPage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseMessageAnnotation : IJsonModel, IPersistableModel { - public ResponseMessageAnnotationKind Kind { get; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ResponseMessageAnnotationKind { + + public partial class ResponseConversationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResponseConversationOptions(string conversationId) { } + public string ConversationId { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseConversationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseConversationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseConversationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseConversationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool Deleted { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string ResponseId { get { throw null; } set { } } + + protected virtual ResponseDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseError() { } + public ResponseErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ResponseErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseErrorCode(string value) { } + public static ResponseErrorCode EmptyImageFile { get { throw null; } } + public static ResponseErrorCode FailedToDownloadImage { get { throw null; } } + public static ResponseErrorCode ImageContentPolicyViolation { get { throw null; } } + public static ResponseErrorCode ImageFileNotFound { get { throw null; } } + public static ResponseErrorCode ImageFileTooLarge { get { throw null; } } + public static ResponseErrorCode ImageParseError { get { throw null; } } + public static ResponseErrorCode ImageTooLarge { get { throw null; } } + public static ResponseErrorCode ImageTooSmall { get { throw null; } } + public static ResponseErrorCode InvalidBase64Image { get { throw null; } } + public static ResponseErrorCode InvalidImage { get { throw null; } } + public static ResponseErrorCode InvalidImageFormat { get { throw null; } } + public static ResponseErrorCode InvalidImageMode { get { throw null; } } + public static ResponseErrorCode InvalidImageUrl { get { throw null; } } + public static ResponseErrorCode InvalidPrompt { get { throw null; } } + public static ResponseErrorCode RateLimitExceeded { get { throw null; } } + public static ResponseErrorCode ServerError { get { throw null; } } + public static ResponseErrorCode UnsupportedImageMediaType { get { throw null; } } + public static ResponseErrorCode VectorStoreTimeout { get { throw null; } } + + public readonly bool Equals(ResponseErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseErrorCode left, ResponseErrorCode right) { throw null; } + public static implicit operator ResponseErrorCode(string value) { throw null; } + public static implicit operator ResponseErrorCode?(string value) { throw null; } + public static bool operator !=(ResponseErrorCode left, ResponseErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public readonly partial struct ResponseImageDetailLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseImageDetailLevel(string value) { } + public static ResponseImageDetailLevel Auto { get { throw null; } } + public static ResponseImageDetailLevel High { get { throw null; } } + public static ResponseImageDetailLevel Low { get { throw null; } } + + public readonly bool Equals(ResponseImageDetailLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseImageDetailLevel left, ResponseImageDetailLevel right) { throw null; } + public static implicit operator ResponseImageDetailLevel(string value) { throw null; } + public static implicit operator ResponseImageDetailLevel?(string value) { throw null; } + public static bool operator !=(ResponseImageDetailLevel left, ResponseImageDetailLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ResponseIncompleteStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseIncompleteStatusDetails() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseIncompleteStatusReason? Reason { get { throw null; } } + + protected virtual ResponseIncompleteStatusDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseIncompleteStatusDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseIncompleteStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseIncompleteStatusDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ResponseIncompleteStatusReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseIncompleteStatusReason(string value) { } + public static ResponseIncompleteStatusReason ContentFilter { get { throw null; } } + public static ResponseIncompleteStatusReason MaxOutputTokens { get { throw null; } } + + public readonly bool Equals(ResponseIncompleteStatusReason other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right) { throw null; } + public static implicit operator ResponseIncompleteStatusReason(string value) { throw null; } + public static implicit operator ResponseIncompleteStatusReason?(string value) { throw null; } + public static bool operator !=(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ResponseInputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int CachedTokenCount { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseInputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseInputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseInputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseInputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseItem() { } + public string Id { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static MessageResponseItem CreateAssistantMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateAssistantMessageItem(string outputTextContent, System.Collections.Generic.IEnumerable annotations = null) { throw null; } + public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, System.Collections.Generic.IEnumerable pendingSafetyChecks) { throw null; } + public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output) { throw null; } + public static MessageResponseItem CreateDeveloperMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent) { throw null; } + public static FileSearchCallResponseItem CreateFileSearchCallItem(System.Collections.Generic.IEnumerable queries) { throw null; } + public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, System.BinaryData functionArguments) { throw null; } + public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput) { throw null; } + public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string id, string serverLabel, string name, System.BinaryData arguments) { throw null; } + public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved) { throw null; } + public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, System.BinaryData arguments) { throw null; } + public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, System.Collections.Generic.IEnumerable toolDefinitions) { throw null; } + public static ReasoningResponseItem CreateReasoningItem(System.Collections.Generic.IEnumerable summaryParts) { throw null; } + public static ReasoningResponseItem CreateReasoningItem(string summaryText) { throw null; } + public static ReferenceResponseItem CreateReferenceItem(string id) { throw null; } + public static MessageResponseItem CreateSystemMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateSystemMessageItem(string inputTextContent) { throw null; } + public static MessageResponseItem CreateUserMessageItem(System.Collections.Generic.IEnumerable contentParts) { throw null; } + public static MessageResponseItem CreateUserMessageItem(string inputTextContent) { throw null; } + public static WebSearchCallResponseItem CreateWebSearchCallItem() { throw null; } + protected virtual ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseItem(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseItemCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResponseItemCollectionOptions(string responseId) { } + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public ResponseItemCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + public string ResponseId { get { throw null; } } + + protected virtual ResponseItemCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseItemCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItemCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItemCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ResponseItemCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseItemCollectionOrder(string value) { } + public static ResponseItemCollectionOrder Ascending { get { throw null; } } + public static ResponseItemCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(ResponseItemCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right) { throw null; } + public static implicit operator ResponseItemCollectionOrder(string value) { throw null; } + public static implicit operator ResponseItemCollectionOrder?(string value) { throw null; } + public static bool operator !=(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ResponseItemCollectionPage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList Data { get { throw null; } } + public string FirstId { get { throw null; } set { } } + public bool HasMore { get { throw null; } set { } } + public string LastId { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseItemCollectionPage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseItemCollectionPage(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseItemCollectionPage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseItemCollectionPage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseItemCollectionPage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseMessageAnnotation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseMessageAnnotation() { } + public ResponseMessageAnnotationKind Kind { get { throw null; } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ResponseMessageAnnotationKind + { FileCitation = 0, UriCitation = 1, FilePath = 2, ContainerFileCitation = 3 } - public class ResponseOutputTokenUsageDetails : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public int ReasoningTokenCount { get; set; } - protected virtual ResponseOutputTokenUsageDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseOutputTokenUsageDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ResponseReasoningEffortLevel : IEquatable { - public ResponseReasoningEffortLevel(string value); - public static ResponseReasoningEffortLevel High { get; } - public static ResponseReasoningEffortLevel Low { get; } - public static ResponseReasoningEffortLevel Medium { get; } - public static ResponseReasoningEffortLevel Minimal { get; } - public static ResponseReasoningEffortLevel None { get; } - public readonly bool Equals(ResponseReasoningEffortLevel other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right); - public static implicit operator ResponseReasoningEffortLevel(string value); - public static implicit operator ResponseReasoningEffortLevel?(string value); - public static bool operator !=(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right); - public override readonly string ToString(); - } - public class ResponseReasoningOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public ResponseReasoningEffortLevel? ReasoningEffortLevel { get; set; } - public ResponseReasoningSummaryVerbosity? ReasoningSummaryVerbosity { get; set; } - protected virtual ResponseReasoningOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseReasoningOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct ResponseReasoningSummaryVerbosity : IEquatable { - public ResponseReasoningSummaryVerbosity(string value); - public static ResponseReasoningSummaryVerbosity Auto { get; } - public static ResponseReasoningSummaryVerbosity Concise { get; } - public static ResponseReasoningSummaryVerbosity Detailed { get; } - public readonly bool Equals(ResponseReasoningSummaryVerbosity other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); - public static implicit operator ResponseReasoningSummaryVerbosity(string value); - public static implicit operator ResponseReasoningSummaryVerbosity?(string value); - public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); - public override readonly string ToString(); - } - public class ResponseResult : IJsonModel, IPersistableModel { - public bool? BackgroundModeEnabled { get; set; } - public ResponseConversationOptions ConversationOptions { get; set; } - public DateTimeOffset CreatedAt { get; set; } - public string EndUserId { get; set; } - public ResponseError Error { get; set; } - public string Id { get; set; } - public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; } - public string Instructions { get; set; } - public int? MaxOutputTokenCount { get; set; } - public int? MaxToolCallCount { get; set; } - public IDictionary Metadata { get; } - public string Model { get; set; } - [EditorBrowsable(EditorBrowsableState.Never)] - public string Object { get; set; } - public IList OutputItems { get; } - public bool ParallelToolCallsEnabled { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public string PreviousResponseId { get; set; } - public ResponseReasoningOptions ReasoningOptions { get; set; } - public string SafetyIdentifier { get; set; } - public ResponseServiceTier? ServiceTier { get; set; } - public ResponseStatus? Status { get; set; } - public float? Temperature { get; set; } - public ResponseTextOptions TextOptions { get; set; } - public ResponseToolChoice ToolChoice { get; set; } - public IList Tools { get; } - public int? TopLogProbabilityCount { get; set; } - public float? TopP { get; set; } - public ResponseTruncationMode? TruncationMode { get; set; } - public ResponseTokenUsage Usage { get; set; } - public string GetOutputText(); - protected virtual ResponseResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator ResponseResult(ClientResult result); - protected virtual ResponseResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponsesClient { - protected ResponsesClient(); - protected internal ResponsesClient(ClientPipeline pipeline, string model, OpenAIClientOptions options); - public ResponsesClient(string model, ApiKeyCredential credential, OpenAIClientOptions options); - public ResponsesClient(string model, ApiKeyCredential credential); - public ResponsesClient(string model, AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public ResponsesClient(string model, AuthenticationPolicy authenticationPolicy); - public ResponsesClient(string model, string apiKey); - public virtual Uri Endpoint { get; } - public string Model { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CancelResponse(string responseId, RequestOptions options); - public virtual ClientResult CancelResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task CancelResponseAsync(string responseId, RequestOptions options); - public virtual Task> CancelResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult CompactResponse(string contentType, BinaryContent content, RequestOptions options = null); - public virtual Task CompactResponseAsync(string contentType, BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateResponse(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult CreateResponse(BinaryContent content, RequestOptions options = null); - public virtual ClientResult CreateResponse(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateResponse(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual Task> CreateResponseAsync(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task CreateResponseAsync(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateResponseAsync(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual Task> CreateResponseAsync(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual CollectionResult CreateResponseStreaming(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(CreateResponseOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(IEnumerable inputItems, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult CreateResponseStreamingAsync(string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default); - public virtual ClientResult DeleteResponse(string responseId, RequestOptions options); - public virtual ClientResult DeleteResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task DeleteResponseAsync(string responseId, RequestOptions options); - public virtual Task> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult GetInputTokenCount(string contentType, BinaryContent content, RequestOptions options = null); - public virtual Task GetInputTokenCountAsync(string contentType, BinaryContent content, RequestOptions options = null); - public virtual ClientResult GetResponse(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponse(string responseId, IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options); - public virtual ClientResult GetResponse(string responseId, CancellationToken cancellationToken = default); - public virtual Task> GetResponseAsync(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual Task GetResponseAsync(string responseId, IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options); - public virtual Task> GetResponseAsync(string responseId, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponseInputItemCollectionPage(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult GetResponseInputItemCollectionPage(string responseId, int? limit, string order, string after, string before, RequestOptions options); - public virtual Task> GetResponseInputItemCollectionPageAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual Task GetResponseInputItemCollectionPageAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options); - public virtual CollectionResult GetResponseInputItems(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseInputItems(string responseId, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseInputItemsAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseStreaming(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual CollectionResult GetResponseStreaming(string responseId, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseStreamingAsync(GetResponseOptions options, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetResponseStreamingAsync(string responseId, CancellationToken cancellationToken = default); - } - public readonly partial struct ResponseServiceTier : IEquatable { - public ResponseServiceTier(string value); - public static ResponseServiceTier Auto { get; } - public static ResponseServiceTier Default { get; } - public static ResponseServiceTier Flex { get; } - public static ResponseServiceTier Scale { get; } - public readonly bool Equals(ResponseServiceTier other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseServiceTier left, ResponseServiceTier right); - public static implicit operator ResponseServiceTier(string value); - public static implicit operator ResponseServiceTier?(string value); - public static bool operator !=(ResponseServiceTier left, ResponseServiceTier right); - public override readonly string ToString(); - } - public enum ResponseStatus { + + public partial class ResponseOutputTokenUsageDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int ReasoningTokenCount { get { throw null; } set { } } + + protected virtual ResponseOutputTokenUsageDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseOutputTokenUsageDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseOutputTokenUsageDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseOutputTokenUsageDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ResponseReasoningEffortLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseReasoningEffortLevel(string value) { } + public static ResponseReasoningEffortLevel High { get { throw null; } } + public static ResponseReasoningEffortLevel Low { get { throw null; } } + public static ResponseReasoningEffortLevel Medium { get { throw null; } } + public static ResponseReasoningEffortLevel Minimal { get { throw null; } } + public static ResponseReasoningEffortLevel None { get { throw null; } } + + public readonly bool Equals(ResponseReasoningEffortLevel other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right) { throw null; } + public static implicit operator ResponseReasoningEffortLevel(string value) { throw null; } + public static implicit operator ResponseReasoningEffortLevel?(string value) { throw null; } + public static bool operator !=(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ResponseReasoningOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseReasoningEffortLevel? ReasoningEffortLevel { get { throw null; } set { } } + public ResponseReasoningSummaryVerbosity? ReasoningSummaryVerbosity { get { throw null; } set { } } + + protected virtual ResponseReasoningOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseReasoningOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseReasoningOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseReasoningOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct ResponseReasoningSummaryVerbosity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseReasoningSummaryVerbosity(string value) { } + public static ResponseReasoningSummaryVerbosity Auto { get { throw null; } } + public static ResponseReasoningSummaryVerbosity Concise { get { throw null; } } + public static ResponseReasoningSummaryVerbosity Detailed { get { throw null; } } + + public readonly bool Equals(ResponseReasoningSummaryVerbosity other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right) { throw null; } + public static implicit operator ResponseReasoningSummaryVerbosity(string value) { throw null; } + public static implicit operator ResponseReasoningSummaryVerbosity?(string value) { throw null; } + public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class ResponseResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public bool? BackgroundModeEnabled { get { throw null; } set { } } + public ResponseConversationOptions ConversationOptions { get { throw null; } set { } } + public System.DateTimeOffset CreatedAt { get { throw null; } set { } } + public string EndUserId { get { throw null; } set { } } + public ResponseError Error { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public ResponseIncompleteStatusDetails IncompleteStatusDetails { get { throw null; } set { } } + public string Instructions { get { throw null; } set { } } + public int? MaxOutputTokenCount { get { throw null; } set { } } + public int? MaxToolCallCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Model { get { throw null; } set { } } + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public string Object { get { throw null; } set { } } + public System.Collections.Generic.IList OutputItems { get { throw null; } } + public bool ParallelToolCallsEnabled { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public string PreviousResponseId { get { throw null; } set { } } + public ResponseReasoningOptions ReasoningOptions { get { throw null; } set { } } + public string SafetyIdentifier { get { throw null; } set { } } + public ResponseServiceTier? ServiceTier { get { throw null; } set { } } + public ResponseStatus? Status { get { throw null; } set { } } + public float? Temperature { get { throw null; } set { } } + public ResponseTextOptions TextOptions { get { throw null; } set { } } + public ResponseToolChoice ToolChoice { get { throw null; } set { } } + public System.Collections.Generic.IList Tools { get { throw null; } } + public int? TopLogProbabilityCount { get { throw null; } set { } } + public float? TopP { get { throw null; } set { } } + public ResponseTruncationMode? TruncationMode { get { throw null; } set { } } + public ResponseTokenUsage Usage { get { throw null; } set { } } + + public string GetOutputText() { throw null; } + protected virtual ResponseResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator ResponseResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual ResponseResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponsesClient + { + protected ResponsesClient() { } + public ResponsesClient(ResponsesClientSettings settings) { } + protected internal ResponsesClient(System.ClientModel.Primitives.ClientPipeline pipeline, string model, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.ApiKeyCredential credential) { } + public ResponsesClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public ResponsesClient(string model, System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + public ResponsesClient(string model, string apiKey) { } + public virtual System.Uri Endpoint { get { throw null; } } + public string Model { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CancelResponse(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelResponseAsync(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CompactResponse(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CompactResponseAsync(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateResponse(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateResponseAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> CreateResponseAsync(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult CreateResponseStreaming(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(System.Collections.Generic.IEnumerable inputItems, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult CreateResponseStreamingAsync(string userInputText, string previousResponseId = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult DeleteResponse(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteResponseAsync(string responseId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetInputTokenCount(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetInputTokenCountAsync(string contentType, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(string responseId, System.Collections.Generic.IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetResponse(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseAsync(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetResponseAsync(string responseId, System.Collections.Generic.IEnumerable include, bool? stream, int? startingAfter, bool? includeObfuscation, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponseInputItemCollectionPage(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetResponseInputItemCollectionPage(string responseId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetResponseInputItemCollectionPageAsync(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetResponseInputItemCollectionPageAsync(string responseId, int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseInputItems(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseInputItems(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseInputItemsAsync(ResponseItemCollectionOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseInputItemsAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseStreaming(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetResponseStreaming(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseStreamingAsync(GetResponseOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetResponseStreamingAsync(string responseId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public sealed partial class ResponsesClientSettings : System.ClientModel.Primitives.ClientSettings + { + public string Model { get { throw null; } set { } } + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public readonly partial struct ResponseServiceTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseServiceTier(string value) { } + public static ResponseServiceTier Auto { get { throw null; } } + public static ResponseServiceTier Default { get { throw null; } } + public static ResponseServiceTier Flex { get { throw null; } } + public static ResponseServiceTier Scale { get { throw null; } } + + public readonly bool Equals(ResponseServiceTier other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseServiceTier left, ResponseServiceTier right) { throw null; } + public static implicit operator ResponseServiceTier(string value) { throw null; } + public static implicit operator ResponseServiceTier?(string value) { throw null; } + public static bool operator !=(ResponseServiceTier left, ResponseServiceTier right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public enum ResponseStatus + { InProgress = 0, Completed = 1, Cancelled = 2, @@ -5668,79 +9085,128 @@ public enum ResponseStatus { Incomplete = 4, Failed = 5 } - public class ResponseTextFormat : IJsonModel, IPersistableModel { - public ResponseTextFormatKind Kind { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static ResponseTextFormat CreateJsonObjectFormat(); - public static ResponseTextFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null); - public static ResponseTextFormat CreateTextFormat(); - protected virtual ResponseTextFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTextFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum ResponseTextFormatKind { + + public partial class ResponseTextFormat : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseTextFormat() { } + public ResponseTextFormatKind Kind { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static ResponseTextFormat CreateJsonObjectFormat() { throw null; } + public static ResponseTextFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, System.BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null) { throw null; } + public static ResponseTextFormat CreateTextFormat() { throw null; } + protected virtual ResponseTextFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTextFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTextFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTextFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ResponseTextFormatKind + { Unknown = 0, Text = 1, JsonObject = 2, JsonSchema = 3 } - public class ResponseTextOptions : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public ResponseTextFormat TextFormat { get; set; } - protected virtual ResponseTextOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTextOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseTokenUsage : IJsonModel, IPersistableModel { - public int InputTokenCount { get; set; } - public ResponseInputTokenUsageDetails InputTokenDetails { get; set; } - public int OutputTokenCount { get; set; } - public ResponseOutputTokenUsageDetails OutputTokenDetails { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public int TotalTokenCount { get; set; } - protected virtual ResponseTokenUsage JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTokenUsage PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseTool : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static CodeInterpreterTool CreateCodeInterpreterTool(CodeInterpreterToolContainer container); - public static ComputerTool CreateComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight); - public static FileSearchTool CreateFileSearchTool(IEnumerable vectorStoreIds, int? maxResultCount = null, FileSearchToolRankingOptions rankingOptions = null, BinaryData filters = null); - public static FunctionTool CreateFunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled, string functionDescription = null); - public static ImageGenerationTool CreateImageGenerationTool(string model, ImageGenerationToolQuality? quality = null, ImageGenerationToolSize? size = null, ImageGenerationToolOutputFileFormat? outputFileFormat = null, int? outputCompressionFactor = null, ImageGenerationToolModerationLevel? moderationLevel = null, ImageGenerationToolBackground? background = null, ImageGenerationToolInputFidelity? inputFidelity = null, ImageGenerationToolInputImageMask inputImageMask = null, int? partialImageCount = null); - public static McpTool CreateMcpTool(string serverLabel, McpToolConnectorId connectorId, string authorizationToken = null, string serverDescription = null, IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null); - public static McpTool CreateMcpTool(string serverLabel, Uri serverUri, string authorizationToken = null, string serverDescription = null, IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null); - public static WebSearchPreviewTool CreateWebSearchPreviewTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null); - public static WebSearchTool CreateWebSearchTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null, WebSearchToolFilters filters = null); - protected virtual ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class ResponseToolChoice : IJsonModel, IPersistableModel { - public string FunctionName { get; } - public ResponseToolChoiceKind Kind { get; } - public static ResponseToolChoice CreateAutoChoice(); - public static ResponseToolChoice CreateComputerChoice(); - public static ResponseToolChoice CreateFileSearchChoice(); - public static ResponseToolChoice CreateFunctionChoice(string functionName); - public static ResponseToolChoice CreateNoneChoice(); - public static ResponseToolChoice CreateRequiredChoice(); - public static ResponseToolChoice CreateWebSearchChoice(); - } - public enum ResponseToolChoiceKind { + + public partial class ResponseTextOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public ResponseTextFormat TextFormat { get { throw null; } set { } } + + protected virtual ResponseTextOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTextOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTextOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTextOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseTokenUsage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public int InputTokenCount { get { throw null; } set { } } + public ResponseInputTokenUsageDetails InputTokenDetails { get { throw null; } set { } } + public int OutputTokenCount { get { throw null; } set { } } + public ResponseOutputTokenUsageDetails OutputTokenDetails { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int TotalTokenCount { get { throw null; } set { } } + + protected virtual ResponseTokenUsage JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTokenUsage PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTokenUsage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTokenUsage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseTool() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static CodeInterpreterTool CreateCodeInterpreterTool(CodeInterpreterToolContainer container) { throw null; } + public static ComputerTool CreateComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight) { throw null; } + public static FileSearchTool CreateFileSearchTool(System.Collections.Generic.IEnumerable vectorStoreIds, int? maxResultCount = null, FileSearchToolRankingOptions rankingOptions = null, System.BinaryData filters = null) { throw null; } + public static FunctionTool CreateFunctionTool(string functionName, System.BinaryData functionParameters, bool? strictModeEnabled, string functionDescription = null) { throw null; } + public static ImageGenerationTool CreateImageGenerationTool(string model, ImageGenerationToolQuality? quality = null, ImageGenerationToolSize? size = null, ImageGenerationToolOutputFileFormat? outputFileFormat = null, int? outputCompressionFactor = null, ImageGenerationToolModerationLevel? moderationLevel = null, ImageGenerationToolBackground? background = null, ImageGenerationToolInputFidelity? inputFidelity = null, ImageGenerationToolInputImageMask inputImageMask = null, int? partialImageCount = null) { throw null; } + public static McpTool CreateMcpTool(string serverLabel, McpToolConnectorId connectorId, string authorizationToken = null, string serverDescription = null, System.Collections.Generic.IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null) { throw null; } + public static McpTool CreateMcpTool(string serverLabel, System.Uri serverUri, string authorizationToken = null, string serverDescription = null, System.Collections.Generic.IDictionary headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null) { throw null; } + public static WebSearchPreviewTool CreateWebSearchPreviewTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null) { throw null; } + public static WebSearchTool CreateWebSearchTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null, WebSearchToolFilters filters = null) { throw null; } + protected virtual ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + ResponseTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class ResponseToolChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResponseToolChoice() { } + public string FunctionName { get { throw null; } } + public ResponseToolChoiceKind Kind { get { throw null; } } + + public static ResponseToolChoice CreateAutoChoice() { throw null; } + public static ResponseToolChoice CreateComputerChoice() { throw null; } + public static ResponseToolChoice CreateFileSearchChoice() { throw null; } + public static ResponseToolChoice CreateFunctionChoice(string functionName) { throw null; } + public static ResponseToolChoice CreateNoneChoice() { throw null; } + public static ResponseToolChoice CreateRequiredChoice() { throw null; } + public static ResponseToolChoice CreateWebSearchChoice() { throw null; } + ResponseToolChoice System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + ResponseToolChoice System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum ResponseToolChoiceKind + { Unknown = 0, Auto = 1, None = 2, @@ -5750,917 +9216,1545 @@ public enum ResponseToolChoiceKind { WebSearch = 6, Computer = 7 } - public readonly partial struct ResponseTruncationMode : IEquatable { - public ResponseTruncationMode(string value); - public static ResponseTruncationMode Auto { get; } - public static ResponseTruncationMode Disabled { get; } - public readonly bool Equals(ResponseTruncationMode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right); - public static implicit operator ResponseTruncationMode(string value); - public static implicit operator ResponseTruncationMode?(string value); - public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right); - public override readonly string ToString(); - } - public class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCodeDeltaUpdate(); - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCodeDoneUpdate(); - public string Code { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCodeInterpreterCallInterpretingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCompletedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseContentPartAddedUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ResponseContentPart Part { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseContentPartDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ResponseContentPart Part { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseCreatedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseCreatedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseErrorUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseErrorUpdate(); - public string Code { get; set; } - public string Message { get; set; } - public string Param { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFailedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFileSearchCallSearchingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFunctionCallArgumentsDeltaUpdate(); - public BinaryData Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseFunctionCallArgumentsDoneUpdate(); - public BinaryData FunctionArguments { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallGeneratingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseImageGenerationCallPartialImageUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public BinaryData PartialImageBytes { get; set; } - public int PartialImageIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseIncompleteUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseInProgressUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallArgumentsDeltaUpdate(); - public BinaryData Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallArgumentsDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public BinaryData ToolArguments { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallFailedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsFailedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseMcpListToolsInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputItemAddedUpdate(); - public ResponseItem Item { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputItemDoneUpdate(); - public ResponseItem Item { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputTextDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseOutputTextDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseQueuedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseQueuedUpdate(); - public ResponseResult Response { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseReasoningSummaryPartAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryPartAddedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ReasoningSummaryPart Part { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseReasoningSummaryPartDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryPartDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public ReasoningSummaryPart Part { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseReasoningSummaryTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryTextDeltaUpdate(); - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public int SummaryIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseReasoningSummaryTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningSummaryTextDoneUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public int SummaryIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseReasoningTextDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningTextDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseReasoningTextDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseReasoningTextDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Text { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseRefusalDeltaUpdate(); - public int ContentIndex { get; set; } - public string Delta { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseRefusalDoneUpdate(); - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - public string Refusal { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseTextAnnotationAddedUpdate(); - public BinaryData Annotation { get; set; } - public int AnnotationIndex { get; set; } - public int ContentIndex { get; set; } - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseUpdate : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public int SequenceNumber { get; set; } - protected virtual StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallCompletedUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallInProgressUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel, IPersistableModel { - public StreamingResponseWebSearchCallSearchingUpdate(); - public string ItemId { get; set; } - public int OutputIndex { get; set; } - protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class UriCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel, IPersistableModel { - public UriCitationMessageAnnotation(Uri uri, int startIndex, int endIndex, string title); - public int EndIndex { get; set; } - public int StartIndex { get; set; } - public string Title { get; set; } - public Uri Uri { get; set; } - protected override ResponseMessageAnnotation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseMessageAnnotation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class WebSearchCallResponseItem : ResponseItem, IJsonModel, IPersistableModel { - public WebSearchCallResponseItem(); - public WebSearchCallStatus? Status { get; set; } - protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum WebSearchCallStatus { + + public readonly partial struct ResponseTruncationMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ResponseTruncationMode(string value) { } + public static ResponseTruncationMode Auto { get { throw null; } } + public static ResponseTruncationMode Disabled { get { throw null; } } + + public readonly bool Equals(ResponseTruncationMode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right) { throw null; } + public static implicit operator ResponseTruncationMode(string value) { throw null; } + public static implicit operator ResponseTruncationMode?(string value) { throw null; } + public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCodeDeltaUpdate() { } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCodeDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCodeDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCodeDoneUpdate() { } + public string Code { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCodeDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCodeDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCodeInterpreterCallInterpretingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCodeInterpreterCallInterpretingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCodeInterpreterCallInterpretingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCompletedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseContentPartAddedUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ResponseContentPart Part { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseContentPartAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseContentPartAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseContentPartDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ResponseContentPart Part { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseContentPartDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseContentPartDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseCreatedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseCreatedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseCreatedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseCreatedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseErrorUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseErrorUpdate() { } + public string Code { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + public string Param { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseErrorUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseErrorUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFailedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFileSearchCallSearchingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFileSearchCallSearchingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFileSearchCallSearchingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFunctionCallArgumentsDeltaUpdate() { } + public System.BinaryData Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFunctionCallArgumentsDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFunctionCallArgumentsDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseFunctionCallArgumentsDoneUpdate() { } + public System.BinaryData FunctionArguments { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseFunctionCallArgumentsDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseFunctionCallArgumentsDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallGeneratingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallGeneratingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallGeneratingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseImageGenerationCallPartialImageUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public System.BinaryData PartialImageBytes { get { throw null; } set { } } + public int PartialImageIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseImageGenerationCallPartialImageUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseImageGenerationCallPartialImageUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseIncompleteUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseIncompleteUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseIncompleteUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseInProgressUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallArgumentsDeltaUpdate() { } + public System.BinaryData Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallArgumentsDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallArgumentsDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallArgumentsDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public System.BinaryData ToolArguments { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallArgumentsDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallArgumentsDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallFailedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsFailedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsFailedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsFailedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseMcpListToolsInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseMcpListToolsInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseMcpListToolsInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputItemAddedUpdate() { } + public ResponseItem Item { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputItemAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputItemAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputItemDoneUpdate() { } + public ResponseItem Item { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputItemDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputItemDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputTextDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseOutputTextDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseOutputTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseOutputTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseQueuedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseQueuedUpdate() { } + public ResponseResult Response { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseQueuedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseQueuedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseReasoningSummaryPartAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryPartAddedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ReasoningSummaryPart Part { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryPartAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryPartAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseReasoningSummaryPartDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryPartDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public ReasoningSummaryPart Part { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryPartDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryPartDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseReasoningSummaryTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryTextDeltaUpdate() { } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseReasoningSummaryTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningSummaryTextDoneUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public int SummaryIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningSummaryTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningSummaryTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseReasoningTextDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningTextDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningTextDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningTextDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseReasoningTextDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseReasoningTextDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Text { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseReasoningTextDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseReasoningTextDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseRefusalDeltaUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string Delta { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseRefusalDeltaUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseRefusalDeltaUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseRefusalDoneUpdate() { } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + public string Refusal { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseRefusalDoneUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseRefusalDoneUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseTextAnnotationAddedUpdate() { } + public System.BinaryData Annotation { get { throw null; } set { } } + public int AnnotationIndex { get { throw null; } set { } } + public int ContentIndex { get { throw null; } set { } } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseTextAnnotationAddedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseTextAnnotationAddedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StreamingResponseUpdate() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + public int SequenceNumber { get { throw null; } set { } } + + protected virtual StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallCompletedUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallCompletedUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallCompletedUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallInProgressUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallInProgressUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallInProgressUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StreamingResponseWebSearchCallSearchingUpdate() { } + public string ItemId { get { throw null; } set { } } + public int OutputIndex { get { throw null; } set { } } + + protected override StreamingResponseUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override StreamingResponseUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StreamingResponseWebSearchCallSearchingUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StreamingResponseWebSearchCallSearchingUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class UriCitationMessageAnnotation : ResponseMessageAnnotation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UriCitationMessageAnnotation(System.Uri uri, int startIndex, int endIndex, string title) { } + public int EndIndex { get { throw null; } set { } } + public int StartIndex { get { throw null; } set { } } + public string Title { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + + protected override ResponseMessageAnnotation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseMessageAnnotation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + UriCitationMessageAnnotation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + UriCitationMessageAnnotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class WebSearchCallResponseItem : ResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchCallResponseItem() { } + public WebSearchCallStatus? Status { get { throw null; } set { } } + + protected override ResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchCallResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchCallResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum WebSearchCallStatus + { InProgress = 0, Searching = 1, Completed = 2, Failed = 3 } - public class WebSearchPreviewTool : ResponseTool, IJsonModel, IPersistableModel { - public WebSearchPreviewTool(); - public WebSearchToolContextSize? SearchContextSize { get; set; } - public WebSearchToolLocation UserLocation { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class WebSearchTool : ResponseTool, IJsonModel, IPersistableModel { - public WebSearchTool(); - public WebSearchToolFilters Filters { get; set; } - public WebSearchToolContextSize? SearchContextSize { get; set; } - public WebSearchToolLocation UserLocation { get; set; } - protected override ResponseTool JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override ResponseTool PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class WebSearchToolApproximateLocation : WebSearchToolLocation, IJsonModel, IPersistableModel { - public WebSearchToolApproximateLocation(); - public string City { get; set; } - public string Country { get; set; } - public string Region { get; set; } - public string Timezone { get; set; } - protected override WebSearchToolLocation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override WebSearchToolLocation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct WebSearchToolContextSize : IEquatable { - public WebSearchToolContextSize(string value); - public static WebSearchToolContextSize High { get; } - public static WebSearchToolContextSize Low { get; } - public static WebSearchToolContextSize Medium { get; } - public readonly bool Equals(WebSearchToolContextSize other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(WebSearchToolContextSize left, WebSearchToolContextSize right); - public static implicit operator WebSearchToolContextSize(string value); - public static implicit operator WebSearchToolContextSize?(string value); - public static bool operator !=(WebSearchToolContextSize left, WebSearchToolContextSize right); - public override readonly string ToString(); - } - public class WebSearchToolFilters : IJsonModel, IPersistableModel { - public IList AllowedDomains { get; set; } - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - protected virtual WebSearchToolFilters JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual WebSearchToolFilters PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class WebSearchToolLocation : IJsonModel, IPersistableModel { - [Serialization.JsonIgnore] - [EditorBrowsable(EditorBrowsableState.Never)] - public ref JsonPatch Patch { get; } - public static WebSearchToolApproximateLocation CreateApproximateLocation(string country = null, string region = null, string city = null, string timezone = null); - protected virtual WebSearchToolLocation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual WebSearchToolLocation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); + + public partial class WebSearchPreviewTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchPreviewTool() { } + public WebSearchToolContextSize? SearchContextSize { get { throw null; } set { } } + public WebSearchToolLocation UserLocation { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchPreviewTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchPreviewTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class WebSearchTool : ResponseTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchTool() { } + public WebSearchToolFilters Filters { get { throw null; } set { } } + public WebSearchToolContextSize? SearchContextSize { get { throw null; } set { } } + public WebSearchToolLocation UserLocation { get { throw null; } set { } } + + protected override ResponseTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override ResponseTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class WebSearchToolApproximateLocation : WebSearchToolLocation, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebSearchToolApproximateLocation() { } + public string City { get { throw null; } set { } } + public string Country { get { throw null; } set { } } + public string Region { get { throw null; } set { } } + public string Timezone { get { throw null; } set { } } + + protected override WebSearchToolLocation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override WebSearchToolLocation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolApproximateLocation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolApproximateLocation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct WebSearchToolContextSize : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WebSearchToolContextSize(string value) { } + public static WebSearchToolContextSize High { get { throw null; } } + public static WebSearchToolContextSize Low { get { throw null; } } + public static WebSearchToolContextSize Medium { get { throw null; } } + + public readonly bool Equals(WebSearchToolContextSize other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(WebSearchToolContextSize left, WebSearchToolContextSize right) { throw null; } + public static implicit operator WebSearchToolContextSize(string value) { throw null; } + public static implicit operator WebSearchToolContextSize?(string value) { throw null; } + public static bool operator !=(WebSearchToolContextSize left, WebSearchToolContextSize right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class WebSearchToolFilters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public System.Collections.Generic.IList AllowedDomains { get { throw null; } set { } } + + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + protected virtual WebSearchToolFilters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual WebSearchToolFilters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolFilters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolFilters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class WebSearchToolLocation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal WebSearchToolLocation() { } + [System.Text.Json.Serialization.JsonIgnore] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public ref System.ClientModel.Primitives.JsonPatch Patch { get { throw null; } } + + public static WebSearchToolApproximateLocation CreateApproximateLocation(string country = null, string region = null, string city = null, string timezone = null) { throw null; } + protected virtual WebSearchToolLocation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual WebSearchToolLocation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + WebSearchToolLocation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + WebSearchToolLocation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace OpenAI.VectorStores { - public abstract class FileChunkingStrategy : IJsonModel, IPersistableModel { - public static FileChunkingStrategy Auto { get; } - public static FileChunkingStrategy Unknown { get; } - public static FileChunkingStrategy CreateStaticStrategy(int maxTokensPerChunk, int overlappingTokenCount); - protected virtual FileChunkingStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual FileChunkingStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class FileFromStoreRemovalResult : IJsonModel, IPersistableModel { - public string FileId { get; } - public bool Removed { get; } - protected virtual FileFromStoreRemovalResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator FileFromStoreRemovalResult(ClientResult result); - protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class StaticFileChunkingStrategy : FileChunkingStrategy, IJsonModel, IPersistableModel { - public StaticFileChunkingStrategy(int maxTokensPerChunk, int overlappingTokenCount); - public int MaxTokensPerChunk { get; } - public int OverlappingTokenCount { get; } - protected override FileChunkingStrategy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected override FileChunkingStrategy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class VectorStore : IJsonModel, IPersistableModel { - public DateTimeOffset CreatedAt { get; } - public VectorStoreExpirationPolicy ExpirationPolicy { get; } - public DateTimeOffset? ExpiresAt { get; } - public VectorStoreFileCounts FileCounts { get; } - public string Id { get; } - public DateTimeOffset? LastActiveAt { get; } - public IReadOnlyDictionary Metadata { get; } - public string Name { get; } - public VectorStoreStatus Status { get; } - public int UsageBytes { get; } - protected virtual VectorStore JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStore(ClientResult result); - protected virtual VectorStore PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class VectorStoreClient { - protected VectorStoreClient(); - public VectorStoreClient(ApiKeyCredential credential, OpenAIClientOptions options); - public VectorStoreClient(ApiKeyCredential credential); - public VectorStoreClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public VectorStoreClient(AuthenticationPolicy authenticationPolicy); - protected internal VectorStoreClient(ClientPipeline pipeline, OpenAIClientOptions options); - public VectorStoreClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult AddFileBatchToVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult AddFileBatchToVectorStore(string vectorStoreId, IEnumerable fileIds, CancellationToken cancellationToken = default); - public virtual Task AddFileBatchToVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> AddFileBatchToVectorStoreAsync(string vectorStoreId, IEnumerable fileIds, CancellationToken cancellationToken = default); - public virtual ClientResult AddFileToVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult AddFileToVectorStore(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task AddFileToVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> AddFileToVectorStoreAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, RequestOptions options); - public virtual ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual Task CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, RequestOptions options); - public virtual Task> CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual ClientResult CreateVectorStore(VectorStoreCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual ClientResult CreateVectorStore(BinaryContent content, RequestOptions options = null); - public virtual Task> CreateVectorStoreAsync(VectorStoreCreationOptions options = null, CancellationToken cancellationToken = default); - public virtual Task CreateVectorStoreAsync(BinaryContent content, RequestOptions options = null); - public virtual ClientResult DeleteVectorStore(string vectorStoreId, RequestOptions options); - public virtual ClientResult DeleteVectorStore(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual Task DeleteVectorStoreAsync(string vectorStoreId, RequestOptions options); - public virtual Task> DeleteVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStore(string vectorStoreId, RequestOptions options); - public virtual ClientResult GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreAsync(string vectorStoreId, RequestOptions options); - public virtual Task> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreFileAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task> GetVectorStoreFileAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, RequestOptions options); - public virtual ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual Task GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, RequestOptions options); - public virtual Task> GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFiles(string vectorStoreId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFiles(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options); - public virtual CollectionResult GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options); - public virtual AsyncCollectionResult GetVectorStoresAsync(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default); - public virtual AsyncCollectionResult GetVectorStoresAsync(int? limit, string order, string after, string before, RequestOptions options); - public virtual ClientResult ModifyVectorStore(string vectorStoreId, VectorStoreModificationOptions options, CancellationToken cancellationToken = default); - public virtual ClientResult ModifyVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task> ModifyVectorStoreAsync(string vectorStoreId, VectorStoreModificationOptions options, CancellationToken cancellationToken = default); - public virtual Task ModifyVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual Task RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task> RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default); - public virtual ClientResult RetrieveVectorStoreFileContent(string vectorStoreId, string fileId, RequestOptions options); - public virtual Task RetrieveVectorStoreFileContentAsync(string vectorStoreId, string fileId, RequestOptions options); - public virtual ClientResult SearchVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual Task SearchVectorStoreAsync(string vectorStoreId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, BinaryContent content, RequestOptions options = null); - public virtual ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, IDictionary attributes, CancellationToken cancellationToken = default); - public virtual Task UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, BinaryContent content, RequestOptions options = null); - public virtual Task> UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, IDictionary attributes, CancellationToken cancellationToken = default); - } - public class VectorStoreCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public VectorStoreCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual VectorStoreCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct VectorStoreCollectionOrder : IEquatable { - public VectorStoreCollectionOrder(string value); - public static VectorStoreCollectionOrder Ascending { get; } - public static VectorStoreCollectionOrder Descending { get; } - public readonly bool Equals(VectorStoreCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); - public static implicit operator VectorStoreCollectionOrder(string value); - public static implicit operator VectorStoreCollectionOrder?(string value); - public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); - public override readonly string ToString(); - } - public class VectorStoreCreationOptions : IJsonModel, IPersistableModel { - public FileChunkingStrategy ChunkingStrategy { get; set; } - public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } - public IList FileIds { get; } - public IDictionary Metadata { get; } - public string Name { get; set; } - protected virtual VectorStoreCreationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreCreationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class VectorStoreDeletionResult : IJsonModel, IPersistableModel { - public bool Deleted { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreDeletionResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreDeletionResult(ClientResult result); - protected virtual VectorStoreDeletionResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum VectorStoreExpirationAnchor { + +namespace OpenAI.VectorStores +{ + public abstract partial class FileChunkingStrategy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileChunkingStrategy() { } + public static FileChunkingStrategy Auto { get { throw null; } } + public static FileChunkingStrategy Unknown { get { throw null; } } + + public static FileChunkingStrategy CreateStaticStrategy(int maxTokensPerChunk, int overlappingTokenCount) { throw null; } + protected virtual FileChunkingStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual FileChunkingStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileChunkingStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileChunkingStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class FileFromStoreRemovalResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal FileFromStoreRemovalResult() { } + public string FileId { get { throw null; } } + public bool Removed { get { throw null; } } + + protected virtual FileFromStoreRemovalResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator FileFromStoreRemovalResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + FileFromStoreRemovalResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + FileFromStoreRemovalResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class StaticFileChunkingStrategy : FileChunkingStrategy, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public StaticFileChunkingStrategy(int maxTokensPerChunk, int overlappingTokenCount) { } + public int MaxTokensPerChunk { get { throw null; } } + public int OverlappingTokenCount { get { throw null; } } + + protected override FileChunkingStrategy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected override FileChunkingStrategy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + StaticFileChunkingStrategy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + StaticFileChunkingStrategy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class VectorStore : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStore() { } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } } + public System.DateTimeOffset? ExpiresAt { get { throw null; } } + public VectorStoreFileCounts FileCounts { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? LastActiveAt { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } } + public VectorStoreStatus Status { get { throw null; } } + public int UsageBytes { get { throw null; } } + + protected virtual VectorStore JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStore(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStore PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStore System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStore System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class VectorStoreClient + { + protected VectorStoreClient() { } + public VectorStoreClient(VectorStoreClientSettings settings) { } + public VectorStoreClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public VectorStoreClient(System.ClientModel.ApiKeyCredential credential) { } + public VectorStoreClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public VectorStoreClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal VectorStoreClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public VectorStoreClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult AddFileBatchToVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult AddFileBatchToVectorStore(string vectorStoreId, System.Collections.Generic.IEnumerable fileIds, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddFileBatchToVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> AddFileBatchToVectorStoreAsync(string vectorStoreId, System.Collections.Generic.IEnumerable fileIds, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult AddFileToVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult AddFileToVectorStore(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task AddFileToVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> AddFileToVectorStoreAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult CancelVectorStoreFileBatch(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> CancelVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateVectorStore(VectorStoreCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult CreateVectorStore(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CreateVectorStoreAsync(VectorStoreCreationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task CreateVectorStoreAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVectorStore(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVectorStore(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task DeleteVectorStoreAsync(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteVectorStoreAsync(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStore(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStore(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreAsync(string vectorStoreId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreAsync(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFile(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreFileAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreFileAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult GetVectorStoreFileBatch(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> GetVectorStoreFileBatchAsync(string vectorStoreId, string batchId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStoreFiles(string vectorStoreId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStoreFiles(string vectorStoreId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoreFilesAsync(string vectorStoreId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStoreFilesInBatch(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoreFilesInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.CollectionResult GetVectorStores(VectorStoreCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVectorStores(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.AsyncCollectionResult GetVectorStoresAsync(VectorStoreCollectionOptions options = null, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVectorStoresAsync(int? limit, string order, string after, string before, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult ModifyVectorStore(string vectorStoreId, VectorStoreModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult ModifyVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ModifyVectorStoreAsync(string vectorStoreId, VectorStoreModificationOptions options, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task ModifyVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult RemoveFileFromVectorStore(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveFileFromVectorStoreAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.ClientModel.ClientResult RetrieveVectorStoreFileContent(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.Threading.Tasks.Task RetrieveVectorStoreFileContentAsync(string vectorStoreId, string fileId, System.ClientModel.Primitives.RequestOptions options) { throw null; } + public virtual System.ClientModel.ClientResult SearchVectorStore(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SearchVectorStoreAsync(string vectorStoreId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult UpdateVectorStoreFileAttributes(string vectorStoreId, string fileId, System.Collections.Generic.IDictionary attributes, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public virtual System.Threading.Tasks.Task UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, System.Collections.Generic.IDictionary attributes, System.Threading.CancellationToken cancellationToken = default) { throw null; } + } + public sealed partial class VectorStoreClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } + } + + public partial class VectorStoreCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public VectorStoreCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual VectorStoreCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct VectorStoreCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreCollectionOrder(string value) { } + public static VectorStoreCollectionOrder Ascending { get { throw null; } } + public static VectorStoreCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(VectorStoreCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right) { throw null; } + public static implicit operator VectorStoreCollectionOrder(string value) { throw null; } + public static implicit operator VectorStoreCollectionOrder?(string value) { throw null; } + public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class VectorStoreCreationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FileChunkingStrategy ChunkingStrategy { get { throw null; } set { } } + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList FileIds { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + + protected virtual VectorStoreCreationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreCreationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreCreationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreCreationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class VectorStoreDeletionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreDeletionResult() { } + public bool Deleted { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreDeletionResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreDeletionResult(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreDeletionResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreDeletionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreDeletionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum VectorStoreExpirationAnchor + { Unknown = 0, LastActiveAt = 1 } - public class VectorStoreExpirationPolicy : IJsonModel, IPersistableModel { - public VectorStoreExpirationPolicy(VectorStoreExpirationAnchor anchor, int days); - public VectorStoreExpirationAnchor Anchor { get; set; } - public int Days { get; set; } - protected virtual VectorStoreExpirationPolicy JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreExpirationPolicy PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class VectorStoreFile : IJsonModel, IPersistableModel { - public IDictionary Attributes { get; } - public FileChunkingStrategy ChunkingStrategy { get; } - public DateTimeOffset CreatedAt { get; } - public string FileId { get; } - public VectorStoreFileError LastError { get; } - public int Size { get; } - public VectorStoreFileStatus Status { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreFile JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreFile(ClientResult result); - protected virtual VectorStoreFile PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class VectorStoreFileBatch : IJsonModel, IPersistableModel { - public string BatchId { get; } - public DateTimeOffset CreatedAt { get; } - public VectorStoreFileCounts FileCounts { get; } - public VectorStoreFileBatchStatus Status { get; } - public string VectorStoreId { get; } - protected virtual VectorStoreFileBatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - public static explicit operator VectorStoreFileBatch(ClientResult result); - protected virtual VectorStoreFileBatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct VectorStoreFileBatchStatus : IEquatable { - public VectorStoreFileBatchStatus(string value); - public static VectorStoreFileBatchStatus Cancelled { get; } - public static VectorStoreFileBatchStatus Completed { get; } - public static VectorStoreFileBatchStatus Failed { get; } - public static VectorStoreFileBatchStatus InProgress { get; } - public readonly bool Equals(VectorStoreFileBatchStatus other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right); - public static implicit operator VectorStoreFileBatchStatus(string value); - public static implicit operator VectorStoreFileBatchStatus?(string value); - public static bool operator !=(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right); - public override readonly string ToString(); - } - public class VectorStoreFileCollectionOptions : IJsonModel, IPersistableModel { - public string AfterId { get; set; } - public string BeforeId { get; set; } - public VectorStoreFileStatusFilter? Filter { get; set; } - public VectorStoreFileCollectionOrder? Order { get; set; } - public int? PageSizeLimit { get; set; } - protected virtual VectorStoreFileCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct VectorStoreFileCollectionOrder : IEquatable { - public VectorStoreFileCollectionOrder(string value); - public static VectorStoreFileCollectionOrder Ascending { get; } - public static VectorStoreFileCollectionOrder Descending { get; } - public readonly bool Equals(VectorStoreFileCollectionOrder other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right); - public static implicit operator VectorStoreFileCollectionOrder(string value); - public static implicit operator VectorStoreFileCollectionOrder?(string value); - public static bool operator !=(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right); - public override readonly string ToString(); - } - public class VectorStoreFileCounts : IJsonModel, IPersistableModel { - public int Cancelled { get; } - public int Completed { get; } - public int Failed { get; } - public int InProgress { get; } - public int Total { get; } - protected virtual VectorStoreFileCounts JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileCounts PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public class VectorStoreFileError : IJsonModel, IPersistableModel { - public VectorStoreFileErrorCode Code { get; } - public string Message { get; } - protected virtual VectorStoreFileError JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreFileError PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public readonly partial struct VectorStoreFileErrorCode : IEquatable { - public VectorStoreFileErrorCode(string value); - public static VectorStoreFileErrorCode InvalidFile { get; } - public static VectorStoreFileErrorCode ServerError { get; } - public static VectorStoreFileErrorCode UnsupportedFile { get; } - public readonly bool Equals(VectorStoreFileErrorCode other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right); - public static implicit operator VectorStoreFileErrorCode(string value); - public static implicit operator VectorStoreFileErrorCode?(string value); - public static bool operator !=(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right); - public override readonly string ToString(); - } - public enum VectorStoreFileStatus { + + public partial class VectorStoreExpirationPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreExpirationPolicy(VectorStoreExpirationAnchor anchor, int days) { } + public VectorStoreExpirationAnchor Anchor { get { throw null; } set { } } + public int Days { get { throw null; } set { } } + + protected virtual VectorStoreExpirationPolicy JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreExpirationPolicy PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreExpirationPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreExpirationPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class VectorStoreFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFile() { } + public System.Collections.Generic.IDictionary Attributes { get { throw null; } } + public FileChunkingStrategy ChunkingStrategy { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public string FileId { get { throw null; } } + public VectorStoreFileError LastError { get { throw null; } } + public int Size { get { throw null; } } + public VectorStoreFileStatus Status { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreFile JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreFile(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreFile PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class VectorStoreFileBatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileBatch() { } + public string BatchId { get { throw null; } } + public System.DateTimeOffset CreatedAt { get { throw null; } } + public VectorStoreFileCounts FileCounts { get { throw null; } } + public VectorStoreFileBatchStatus Status { get { throw null; } } + public string VectorStoreId { get { throw null; } } + + protected virtual VectorStoreFileBatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator VectorStoreFileBatch(System.ClientModel.ClientResult result) { throw null; } + protected virtual VectorStoreFileBatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileBatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileBatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct VectorStoreFileBatchStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileBatchStatus(string value) { } + public static VectorStoreFileBatchStatus Cancelled { get { throw null; } } + public static VectorStoreFileBatchStatus Completed { get { throw null; } } + public static VectorStoreFileBatchStatus Failed { get { throw null; } } + public static VectorStoreFileBatchStatus InProgress { get { throw null; } } + + public readonly bool Equals(VectorStoreFileBatchStatus other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right) { throw null; } + public static implicit operator VectorStoreFileBatchStatus(string value) { throw null; } + public static implicit operator VectorStoreFileBatchStatus?(string value) { throw null; } + public static bool operator !=(VectorStoreFileBatchStatus left, VectorStoreFileBatchStatus right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class VectorStoreFileCollectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public string AfterId { get { throw null; } set { } } + public string BeforeId { get { throw null; } set { } } + public VectorStoreFileStatusFilter? Filter { get { throw null; } set { } } + public VectorStoreFileCollectionOrder? Order { get { throw null; } set { } } + public int? PageSizeLimit { get { throw null; } set { } } + + protected virtual VectorStoreFileCollectionOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileCollectionOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileCollectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileCollectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct VectorStoreFileCollectionOrder : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileCollectionOrder(string value) { } + public static VectorStoreFileCollectionOrder Ascending { get { throw null; } } + public static VectorStoreFileCollectionOrder Descending { get { throw null; } } + + public readonly bool Equals(VectorStoreFileCollectionOrder other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right) { throw null; } + public static implicit operator VectorStoreFileCollectionOrder(string value) { throw null; } + public static implicit operator VectorStoreFileCollectionOrder?(string value) { throw null; } + public static bool operator !=(VectorStoreFileCollectionOrder left, VectorStoreFileCollectionOrder right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class VectorStoreFileCounts : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileCounts() { } + public int Cancelled { get { throw null; } } + public int Completed { get { throw null; } } + public int Failed { get { throw null; } } + public int InProgress { get { throw null; } } + public int Total { get { throw null; } } + + protected virtual VectorStoreFileCounts JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileCounts PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileCounts System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileCounts System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public partial class VectorStoreFileError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VectorStoreFileError() { } + public VectorStoreFileErrorCode Code { get { throw null; } } + public string Message { get { throw null; } } + + protected virtual VectorStoreFileError JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreFileError PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreFileError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreFileError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public readonly partial struct VectorStoreFileErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileErrorCode(string value) { } + public static VectorStoreFileErrorCode InvalidFile { get { throw null; } } + public static VectorStoreFileErrorCode ServerError { get { throw null; } } + public static VectorStoreFileErrorCode UnsupportedFile { get { throw null; } } + + public readonly bool Equals(VectorStoreFileErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right) { throw null; } + public static implicit operator VectorStoreFileErrorCode(string value) { throw null; } + public static implicit operator VectorStoreFileErrorCode?(string value) { throw null; } + public static bool operator !=(VectorStoreFileErrorCode left, VectorStoreFileErrorCode right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public enum VectorStoreFileStatus + { Unknown = 0, InProgress = 1, Completed = 2, Cancelled = 3, Failed = 4 } - public readonly partial struct VectorStoreFileStatusFilter : IEquatable { - public VectorStoreFileStatusFilter(string value); - public static VectorStoreFileStatusFilter Cancelled { get; } - public static VectorStoreFileStatusFilter Completed { get; } - public static VectorStoreFileStatusFilter Failed { get; } - public static VectorStoreFileStatusFilter InProgress { get; } - public readonly bool Equals(VectorStoreFileStatusFilter other); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly bool Equals(object obj); - [EditorBrowsable(EditorBrowsableState.Never)] - public override readonly int GetHashCode(); - public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); - public static implicit operator VectorStoreFileStatusFilter(string value); - public static implicit operator VectorStoreFileStatusFilter?(string value); - public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); - public override readonly string ToString(); - } - public class VectorStoreModificationOptions : IJsonModel, IPersistableModel { - public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } - public IDictionary Metadata { get; } - public string Name { get; set; } - protected virtual VectorStoreModificationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options); - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options); - protected virtual VectorStoreModificationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options); - } - public enum VectorStoreStatus { + + public readonly partial struct VectorStoreFileStatusFilter : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VectorStoreFileStatusFilter(string value) { } + public static VectorStoreFileStatusFilter Cancelled { get { throw null; } } + public static VectorStoreFileStatusFilter Completed { get { throw null; } } + public static VectorStoreFileStatusFilter Failed { get { throw null; } } + public static VectorStoreFileStatusFilter InProgress { get { throw null; } } + + public readonly bool Equals(VectorStoreFileStatusFilter other) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right) { throw null; } + public static implicit operator VectorStoreFileStatusFilter(string value) { throw null; } + public static implicit operator VectorStoreFileStatusFilter?(string value) { throw null; } + public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial class VectorStoreModificationOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VectorStoreExpirationPolicy ExpirationPolicy { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } set { } } + + protected virtual VectorStoreModificationOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual VectorStoreModificationOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + VectorStoreModificationOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + VectorStoreModificationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + + public enum VectorStoreStatus + { Unknown = 0, InProgress = 1, Completed = 2, Expired = 3 } } -namespace OpenAI.Videos { - public class VideoClient { - protected VideoClient(); - public VideoClient(ApiKeyCredential credential, OpenAIClientOptions options); - public VideoClient(ApiKeyCredential credential); - public VideoClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options); - public VideoClient(AuthenticationPolicy authenticationPolicy); - protected internal VideoClient(ClientPipeline pipeline, OpenAIClientOptions options); - public VideoClient(string apiKey); - public Uri Endpoint { get; } - public ClientPipeline Pipeline { get; } - public virtual ClientResult CreateVideo(BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateVideoAsync(BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult CreateVideoRemix(string videoId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual Task CreateVideoRemixAsync(string videoId, BinaryContent content, string contentType, RequestOptions options = null); - public virtual ClientResult DeleteVideo(string videoId, RequestOptions options = null); - public virtual Task DeleteVideoAsync(string videoId, RequestOptions options = null); - public virtual ClientResult DownloadVideo(string videoId, string variant = null, RequestOptions options = null); - public virtual Task DownloadVideoAsync(string videoId, string variant = null, RequestOptions options = null); - public virtual ClientResult GetVideo(string videoId, RequestOptions options = null); - public virtual Task GetVideoAsync(string videoId, RequestOptions options = null); - public virtual CollectionResult GetVideos(long? limit = null, string order = null, string after = null, RequestOptions options = null); - public virtual AsyncCollectionResult GetVideosAsync(long? limit = null, string order = null, string after = null, RequestOptions options = null); + +namespace OpenAI.Videos +{ + public partial class VideoClient + { + protected VideoClient() { } + public VideoClient(VideoClientSettings settings) { } + public VideoClient(System.ClientModel.ApiKeyCredential credential, OpenAIClientOptions options) { } + public VideoClient(System.ClientModel.ApiKeyCredential credential) { } + public VideoClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options) { } + public VideoClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy) { } + protected internal VideoClient(System.ClientModel.Primitives.ClientPipeline pipeline, OpenAIClientOptions options) { } + public VideoClient(string apiKey) { } + public System.Uri Endpoint { get { throw null; } } + public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } } + + public virtual System.ClientModel.ClientResult CreateVideo(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateVideoAsync(System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult CreateVideoRemix(string videoId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateVideoRemixAsync(string videoId, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DeleteVideo(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteVideoAsync(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult DownloadVideo(string videoId, string variant = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DownloadVideoAsync(string videoId, string variant = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.ClientResult GetVideo(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetVideoAsync(string videoId, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.CollectionResult GetVideos(long? limit = null, string order = null, string after = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + public virtual System.ClientModel.Primitives.AsyncCollectionResult GetVideosAsync(long? limit = null, string order = null, string after = null, System.ClientModel.Primitives.RequestOptions options = null) { throw null; } + } + public sealed partial class VideoClientSettings : System.ClientModel.Primitives.ClientSettings + { + public OpenAIClientOptions Options { get { throw null; } set { } } + + protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section) { } } } \ No newline at end of file diff --git a/src/Custom/Assistants/AssistantClient.cs b/src/Custom/Assistants/AssistantClient.cs index 723942ee6..483531343 100644 --- a/src/Custom/Assistants/AssistantClient.cs +++ b/src/Custom/Assistants/AssistantClient.cs @@ -82,6 +82,12 @@ public AssistantClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOp _threadSubClient = new(Pipeline, options); } + [Experimental("SCME0002")] + public AssistantClient(AssistantClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Assistants/AssistantClientSettings.cs b/src/Custom/Assistants/AssistantClientSettings.cs new file mode 100644 index 000000000..3fb752baa --- /dev/null +++ b/src/Custom/Assistants/AssistantClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Assistants; + +[Experimental("SCME0002")] +public sealed class AssistantClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Audio/AudioClient.cs b/src/Custom/Audio/AudioClient.cs index 0f1fa3ffe..9355c4d08 100644 --- a/src/Custom/Audio/AudioClient.cs +++ b/src/Custom/Audio/AudioClient.cs @@ -111,6 +111,12 @@ protected internal AudioClient(ClientPipeline pipeline, string model, OpenAIClie _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public AudioClient(AudioClientSettings settings) + : this(settings?.Model, AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the name of the model used in requests sent to the service. /// diff --git a/src/Custom/Audio/AudioClientSettings.cs b/src/Custom/Audio/AudioClientSettings.cs new file mode 100644 index 000000000..65bdef0bb --- /dev/null +++ b/src/Custom/Audio/AudioClientSettings.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Audio; + +[Experimental("SCME0002")] +public sealed class AudioClientSettings : ClientSettings +{ + public string Model { get; set; } + + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + Model = section["Model"]; + + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Batch/BatchClient.cs b/src/Custom/Batch/BatchClient.cs index af72347ae..a7df1cd39 100644 --- a/src/Custom/Batch/BatchClient.cs +++ b/src/Custom/Batch/BatchClient.cs @@ -94,6 +94,12 @@ protected internal BatchClient(ClientPipeline pipeline, OpenAIClientOptions opti _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public BatchClient(BatchClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Batch/BatchClientSettings.cs b/src/Custom/Batch/BatchClientSettings.cs new file mode 100644 index 000000000..bcf88a2e9 --- /dev/null +++ b/src/Custom/Batch/BatchClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Batch; + +[Experimental("SCME0002")] +public sealed class BatchClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Chat/ChatClient.cs b/src/Custom/Chat/ChatClient.cs index b6d0efbbf..49f045b94 100644 --- a/src/Custom/Chat/ChatClient.cs +++ b/src/Custom/Chat/ChatClient.cs @@ -119,6 +119,12 @@ protected internal ChatClient(ClientPipeline pipeline, string model, OpenAIClien _telemetry = new OpenTelemetrySource(model, _endpoint); } + [Experimental("SCME0002")] + public ChatClient(ChatClientSettings settings) + : this(settings?.Model, AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the name of the model used in requests sent to the service. /// diff --git a/src/Custom/Chat/ChatClientSettings.cs b/src/Custom/Chat/ChatClientSettings.cs new file mode 100644 index 000000000..65d4701e1 --- /dev/null +++ b/src/Custom/Chat/ChatClientSettings.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Chat; + +[Experimental("SCME0002")] +public sealed class ChatClientSettings : ClientSettings +{ + public string Model { get; set; } + + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + Model = section["Model"]; + + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Containers/ContainerClient.cs b/src/Custom/Containers/ContainerClient.cs index 84865d55b..8548f4e88 100644 --- a/src/Custom/Containers/ContainerClient.cs +++ b/src/Custom/Containers/ContainerClient.cs @@ -78,6 +78,12 @@ protected internal ContainerClient(ClientPipeline pipeline, OpenAIClientOptions _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public ContainerClient(ContainerClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Containers/ContainerClientSettings.cs b/src/Custom/Containers/ContainerClientSettings.cs new file mode 100644 index 000000000..39a5391fa --- /dev/null +++ b/src/Custom/Containers/ContainerClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Containers; + +[Experimental("SCME0002")] +public sealed class ContainerClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Conversations/ConversationClient.cs b/src/Custom/Conversations/ConversationClient.cs index 7aaf2c8f0..21a085734 100644 --- a/src/Custom/Conversations/ConversationClient.cs +++ b/src/Custom/Conversations/ConversationClient.cs @@ -82,6 +82,12 @@ protected internal ConversationClient(ClientPipeline pipeline, OpenAIClientOptio _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public ConversationClient(ConversationClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Conversations/ConversationClientSettings.cs b/src/Custom/Conversations/ConversationClientSettings.cs new file mode 100644 index 000000000..d8ba4d383 --- /dev/null +++ b/src/Custom/Conversations/ConversationClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Conversations; + +[Experimental("SCME0002")] +public sealed class ConversationClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/DependencyInjection/OpenAIHostBuilderExtensions.cs b/src/Custom/DependencyInjection/OpenAIHostBuilderExtensions.cs new file mode 100644 index 000000000..ab0e2a1ab --- /dev/null +++ b/src/Custom/DependencyInjection/OpenAIHostBuilderExtensions.cs @@ -0,0 +1,483 @@ +using Microsoft.Extensions.Hosting; +using OpenAI.Assistants; +using OpenAI.Audio; +using OpenAI.Batch; +using OpenAI.Chat; +using OpenAI.Containers; +using OpenAI.Conversations; +using OpenAI.Embeddings; +using OpenAI.Evals; +using OpenAI.Files; +using OpenAI.FineTuning; +using OpenAI.Graders; +using OpenAI.Images; +using OpenAI.Models; +using OpenAI.Moderations; +using OpenAI.Realtime; +using OpenAI.Responses; +using OpenAI.VectorStores; +using OpenAI.Videos; +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.DependencyInjection; + +/// +/// Extension methods for adding OpenAI clients with configuration and DI support following System.ClientModel pattern. +/// See: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ConfigurationAndDependencyInjection.md +/// +[Experimental("SCME0002")] +public static class OpenAIHostBuilderExtensions +{ + public static IClientBuilder AddAssistantClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedAssistantClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddAudioClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedAudioClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddBatchClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedBatchClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddChatClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedChatClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddContainerClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedContainerClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddConversationClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedConversationClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddEmbeddingClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedEmbeddingClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddEvaluationClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedEvaluationClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddOpenAIFileClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedOpenAIFileClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddFineTuningClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedFineTuningClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddGraderClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedGraderClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddImageClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedImageClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddOpenAIModelClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedOpenAIModelClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddModerationClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedModerationClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddRealtimeClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedRealtimeClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddResponsesClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedResponsesClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddVectorStoreClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedVectorStoreClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } + + public static IClientBuilder AddVideoClient( + this IHostApplicationBuilder builder, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddClient(sectionName); + } + + public static IClientBuilder AddKeyedVideoClient( + this IHostApplicationBuilder builder, + string serviceKey, + string sectionName) + { + if (builder is null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return builder.AddKeyedClient(serviceKey, sectionName); + } +} diff --git a/src/Custom/Embeddings/EmbeddingClient.cs b/src/Custom/Embeddings/EmbeddingClient.cs index e0e1eeb40..c71c60fc6 100644 --- a/src/Custom/Embeddings/EmbeddingClient.cs +++ b/src/Custom/Embeddings/EmbeddingClient.cs @@ -92,6 +92,12 @@ public EmbeddingClient(string model, AuthenticationPolicy authenticationPolicy, _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public EmbeddingClient(EmbeddingClientSettings settings) + : this(settings?.Model, AuthenticationPolicy.Create(settings), settings?.Options) + { + } + // CUSTOM: // - Added `model` parameter. // - Used a custom pipeline. diff --git a/src/Custom/Embeddings/EmbeddingClientSettings.cs b/src/Custom/Embeddings/EmbeddingClientSettings.cs new file mode 100644 index 000000000..976a6afd0 --- /dev/null +++ b/src/Custom/Embeddings/EmbeddingClientSettings.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Embeddings; + +[Experimental("SCME0002")] +public sealed class EmbeddingClientSettings : ClientSettings +{ + public string Model { get; set; } + + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + Model = section["Model"]; + + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Evals/EvaluationClient.cs b/src/Custom/Evals/EvaluationClient.cs index 106712831..a1b950171 100644 --- a/src/Custom/Evals/EvaluationClient.cs +++ b/src/Custom/Evals/EvaluationClient.cs @@ -100,6 +100,12 @@ protected internal EvaluationClient(ClientPipeline pipeline, OpenAIClientOptions _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public EvaluationClient(EvaluationClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Evals/EvaluationClientSettings.cs b/src/Custom/Evals/EvaluationClientSettings.cs new file mode 100644 index 000000000..802394d9b --- /dev/null +++ b/src/Custom/Evals/EvaluationClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Evals; + +[Experimental("SCME0002")] +public sealed class EvaluationClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Files/OpenAIFileClient.cs b/src/Custom/Files/OpenAIFileClient.cs index 3cb6d8af0..5b3d103b3 100644 --- a/src/Custom/Files/OpenAIFileClient.cs +++ b/src/Custom/Files/OpenAIFileClient.cs @@ -95,6 +95,12 @@ protected internal OpenAIFileClient(ClientPipeline pipeline, OpenAIClientOptions _internalUploadsClient = new(pipeline, options); } + [Experimental("SCME0002")] + public OpenAIFileClient(OpenAIFileClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Files/OpenAIFileClientSettings.cs b/src/Custom/Files/OpenAIFileClientSettings.cs new file mode 100644 index 000000000..f6e9d0fb1 --- /dev/null +++ b/src/Custom/Files/OpenAIFileClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Files; + +[Experimental("SCME0002")] +public sealed class OpenAIFileClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/FineTuning/FineTuningClient.cs b/src/Custom/FineTuning/FineTuningClient.cs index da42235ce..a3615e9a4 100644 --- a/src/Custom/FineTuning/FineTuningClient.cs +++ b/src/Custom/FineTuning/FineTuningClient.cs @@ -124,6 +124,12 @@ protected internal FineTuningClient(ClientPipeline pipeline, Uri endpoint) _endpoint = endpoint; } + [Experimental("SCME0002")] + public FineTuningClient(FineTuningClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/FineTuning/FineTuningClientSettings.cs b/src/Custom/FineTuning/FineTuningClientSettings.cs new file mode 100644 index 000000000..7cc7bb989 --- /dev/null +++ b/src/Custom/FineTuning/FineTuningClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.FineTuning; + +[Experimental("SCME0002")] +public sealed class FineTuningClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Graders/GraderClient.cs b/src/Custom/Graders/GraderClient.cs index e373382ad..46e24ad6f 100644 --- a/src/Custom/Graders/GraderClient.cs +++ b/src/Custom/Graders/GraderClient.cs @@ -78,6 +78,12 @@ protected internal GraderClient(ClientPipeline pipeline, OpenAIClientOptions opt _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public GraderClient(GraderClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Graders/GraderClientSettings.cs b/src/Custom/Graders/GraderClientSettings.cs new file mode 100644 index 000000000..77c0a2621 --- /dev/null +++ b/src/Custom/Graders/GraderClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Graders; + +[Experimental("SCME0002")] +public sealed class GraderClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Images/ImageClient.cs b/src/Custom/Images/ImageClient.cs index d118dd804..29a3da3d0 100644 --- a/src/Custom/Images/ImageClient.cs +++ b/src/Custom/Images/ImageClient.cs @@ -90,6 +90,12 @@ public ImageClient(string model, AuthenticationPolicy authenticationPolicy, Open _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public ImageClient(ImageClientSettings settings) + : this(settings?.Model, AuthenticationPolicy.Create(settings), settings?.Options) + { + } + // CUSTOM: // - Added `model` parameter. // - Used a custom pipeline. diff --git a/src/Custom/Images/ImageClientSettings.cs b/src/Custom/Images/ImageClientSettings.cs new file mode 100644 index 000000000..9dc289557 --- /dev/null +++ b/src/Custom/Images/ImageClientSettings.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Images; + +[Experimental("SCME0002")] +public sealed class ImageClientSettings : ClientSettings +{ + public string Model { get; set; } + + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + Model = section["Model"]; + + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Models/OpenAIModelClient.cs b/src/Custom/Models/OpenAIModelClient.cs index 9cbd1463a..3e58a5ebf 100644 --- a/src/Custom/Models/OpenAIModelClient.cs +++ b/src/Custom/Models/OpenAIModelClient.cs @@ -92,6 +92,12 @@ protected internal OpenAIModelClient(ClientPipeline pipeline, OpenAIClientOption _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public OpenAIModelClient(OpenAIModelClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Models/OpenAIModelClientSettings.cs b/src/Custom/Models/OpenAIModelClientSettings.cs new file mode 100644 index 000000000..893573af9 --- /dev/null +++ b/src/Custom/Models/OpenAIModelClientSettings.cs @@ -0,0 +1,21 @@ +using Microsoft.Extensions.Configuration; +using System; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Models; + +[Experimental("SCME0002")] +public sealed class OpenAIModelClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Moderations/ModerationClient.cs b/src/Custom/Moderations/ModerationClient.cs index 79adf73b8..b0d6fd5b0 100644 --- a/src/Custom/Moderations/ModerationClient.cs +++ b/src/Custom/Moderations/ModerationClient.cs @@ -92,6 +92,12 @@ public ModerationClient(string model, AuthenticationPolicy authenticationPolicy, _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public ModerationClient(ModerationClientSettings settings) + : this(settings?.Model, AuthenticationPolicy.Create(settings), settings?.Options) + { + } + // CUSTOM: // - Added `model` parameter. // - Used a custom pipeline. diff --git a/src/Custom/Moderations/ModerationClientSettings.cs b/src/Custom/Moderations/ModerationClientSettings.cs new file mode 100644 index 000000000..6330b9078 --- /dev/null +++ b/src/Custom/Moderations/ModerationClientSettings.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Moderations; + +[Experimental("SCME0002")] +public sealed class ModerationClientSettings : ClientSettings +{ + public string Model { get; set; } + + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + Model = section["Model"]; + + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/OpenAIClientOptions.cs b/src/Custom/OpenAIClientOptions.cs index 33a62efaf..9d6e9146d 100644 --- a/src/Custom/OpenAIClientOptions.cs +++ b/src/Custom/OpenAIClientOptions.cs @@ -1,3 +1,4 @@ +using Microsoft.Extensions.Configuration; using Microsoft.TypeSpec.Generator.Customizations; using System; using System.ClientModel.Primitives; @@ -71,4 +72,36 @@ public string UserAgentApplicationId _userAgentApplicationId = value; } } + + public OpenAIClientOptions() + { + + } + + /// + /// Internal constructor for binding from a configuration section. + /// Used by ClientSettings classes to bind nested "Options" section. + /// + internal OpenAIClientOptions(IConfigurationSection section) + { + if (Uri.TryCreate(section[nameof(Endpoint)], UriKind.Absolute, out Uri endpoint)) + { + Endpoint = endpoint; + } + + if (section[nameof(OrganizationId)] is string organizationId) + { + OrganizationId = organizationId; + } + + if (section[nameof(ProjectId)] is string projectId) + { + ProjectId = projectId; + } + + if (section[nameof(UserAgentApplicationId)] is string userAgentApplicationId) + { + UserAgentApplicationId = userAgentApplicationId; + } + } } diff --git a/src/Custom/Realtime/RealtimeClient.cs b/src/Custom/Realtime/RealtimeClient.cs index d07b5e2e0..52ad62060 100644 --- a/src/Custom/Realtime/RealtimeClient.cs +++ b/src/Custom/Realtime/RealtimeClient.cs @@ -107,6 +107,12 @@ protected internal RealtimeClient(ClientPipeline pipeline, RealtimeClientOptions _webSocketEndpoint = GetWebSocketEndpoint(options); } + [Experimental("SCME0002")] + public RealtimeClient(RealtimeClientSettings settings) + : this(AuthenticationPolicy.Create(settings), RealtimeClientOptions.FromClientOptions(settings?.Options)) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Realtime/RealtimeClientSettings.cs b/src/Custom/Realtime/RealtimeClientSettings.cs new file mode 100644 index 000000000..99daf96a3 --- /dev/null +++ b/src/Custom/Realtime/RealtimeClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Realtime; + +[Experimental("SCME0002")] +public sealed class RealtimeClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Responses/ResponsesClient.cs b/src/Custom/Responses/ResponsesClient.cs index b55cd160b..a7b22c63d 100644 --- a/src/Custom/Responses/ResponsesClient.cs +++ b/src/Custom/Responses/ResponsesClient.cs @@ -113,6 +113,12 @@ protected internal ResponsesClient(ClientPipeline pipeline, string model, OpenAI _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public ResponsesClient(ResponsesClientSettings settings) + : this(settings?.Model, AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the name of the model used in requests sent to the service. /// @@ -596,7 +602,6 @@ public virtual AsyncCollectionResult GetResponseInputItemsAsync(Re { Argument.AssertNotNull(options, nameof(options)); Argument.AssertNotNullOrEmpty(options.ResponseId, nameof(options.ResponseId)); - return new ResponsesClientGetResponseInputItemsAsyncCollectionResultOfT( client: this, responseId: options.ResponseId, diff --git a/src/Custom/Responses/ResponsesClientSettings.cs b/src/Custom/Responses/ResponsesClientSettings.cs new file mode 100644 index 000000000..dd1d12ab9 --- /dev/null +++ b/src/Custom/Responses/ResponsesClientSettings.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Responses; + +[Experimental("SCME0002")] +public sealed class ResponsesClientSettings : ClientSettings +{ + public string Model { get; set; } + + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + Model = section["Model"]; + + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/VectorStores/VectorStoreClient.cs b/src/Custom/VectorStores/VectorStoreClient.cs index 164b63f53..6de1c1614 100644 --- a/src/Custom/VectorStores/VectorStoreClient.cs +++ b/src/Custom/VectorStores/VectorStoreClient.cs @@ -100,6 +100,12 @@ protected internal VectorStoreClient(ClientPipeline pipeline, OpenAIClientOption _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public VectorStoreClient(VectorStoreClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/VectorStores/VectorStoreClientSettings.cs b/src/Custom/VectorStores/VectorStoreClientSettings.cs new file mode 100644 index 000000000..7ab460801 --- /dev/null +++ b/src/Custom/VectorStores/VectorStoreClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.VectorStores; + +[Experimental("SCME0002")] +public sealed class VectorStoreClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/src/Custom/Videos/VideoClient.cs b/src/Custom/Videos/VideoClient.cs index 29915a814..b92a54944 100644 --- a/src/Custom/Videos/VideoClient.cs +++ b/src/Custom/Videos/VideoClient.cs @@ -82,6 +82,12 @@ protected internal VideoClient(ClientPipeline pipeline, OpenAIClientOptions opti _endpoint = OpenAIClient.GetEndpoint(options); } + [Experimental("SCME0002")] + public VideoClient(VideoClientSettings settings) + : this(AuthenticationPolicy.Create(settings), settings?.Options) + { + } + /// /// Gets the endpoint URI for the service. /// diff --git a/src/Custom/Videos/VideoClientSettings.cs b/src/Custom/Videos/VideoClientSettings.cs new file mode 100644 index 000000000..9d687522b --- /dev/null +++ b/src/Custom/Videos/VideoClientSettings.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.Configuration; +using System.ClientModel.Primitives; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Videos; + +[Experimental("SCME0002")] +public sealed class VideoClientSettings : ClientSettings +{ + public OpenAIClientOptions Options { get; set; } + + protected override void BindCore(IConfigurationSection section) + { + var optionsSection = section.GetSection("Options"); + if (optionsSection.Exists()) + { + Options ??= new OpenAIClientOptions(optionsSection); + } + } +} diff --git a/tests/DependencyInjection/ClientSettingsConstructorTests.cs b/tests/DependencyInjection/ClientSettingsConstructorTests.cs new file mode 100644 index 000000000..738f8735a --- /dev/null +++ b/tests/DependencyInjection/ClientSettingsConstructorTests.cs @@ -0,0 +1,815 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Moq; +using NUnit.Framework; +using OpenAI.Assistants; +using OpenAI.Audio; +using OpenAI.Batch; +using OpenAI.Chat; +using OpenAI.Containers; +using OpenAI.Conversations; +using OpenAI.Embeddings; +using OpenAI.Evals; +using OpenAI.Files; +using OpenAI.FineTuning; +using OpenAI.Graders; +using OpenAI.Images; +using OpenAI.Models; +using OpenAI.Moderations; +using OpenAI.Realtime; +using OpenAI.Responses; +using OpenAI.VectorStores; +using OpenAI.Videos; +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Tests.DependencyInjection; + +[Experimental("SCME0002")] +[TestFixture] +[NonParallelizable] +public class ClientSettingsConstructorTests +{ + #region GetClientSettings Binding Tests + + [Test] + public void GetClientSettings_ChatClientSettings_BindsAllProperties() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Chat:Credential:CredentialSource"] = "ApiKey", + ["Chat:Credential:Key"] = "sk-test-key", + ["Chat:Model"] = "gpt-4o-mini", + ["Chat:Options:Endpoint"] = "https://custom.openai.com", + ["Chat:Options:OrganizationId"] = "org-123", + ["Chat:Options:ProjectId"] = "proj-456", + ["Chat:Options:UserAgentApplicationId"] = "my-app" + }) + .Build(); + + var settings = config.GetClientSettings("Chat"); + + Assert.That(settings, Is.Not.Null); + Assert.That(settings.Model, Is.EqualTo("gpt-4o-mini")); + Assert.That(settings.Credential, Is.Not.Null); + Assert.That(settings.Options, Is.Not.Null); + Assert.That(settings.Options.Endpoint, Is.EqualTo(new Uri("https://custom.openai.com"))); + Assert.That(settings.Options.OrganizationId, Is.EqualTo("org-123")); + Assert.That(settings.Options.ProjectId, Is.EqualTo("proj-456")); + Assert.That(settings.Options.UserAgentApplicationId, Is.EqualTo("my-app")); + } + + [Test] + public void GetClientSettings_ChatClientSettings_WithoutOptions_OptionsIsNull() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Chat:Credential:CredentialSource"] = "ApiKey", + ["Chat:Credential:Key"] = "sk-test-key", + ["Chat:Model"] = "gpt-4" + }) + .Build(); + + var settings = config.GetClientSettings("Chat"); + + Assert.That(settings.Model, Is.EqualTo("gpt-4")); + Assert.That(settings.Options, Is.Null); + } + + [Test] + public void GetClientSettings_ChatClientSettings_EmptyConfig_PropertiesAreDefault() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary()) + .Build(); + + var settings = config.GetClientSettings("Chat"); + + Assert.That(settings, Is.Not.Null); + Assert.That(settings.Model, Is.Null); + Assert.That(settings.Options, Is.Null); + Assert.That(settings.Credential.CredentialSource, Is.Null); + } + + [Test] + public void GetClientSettings_AudioClientSettings_BindsModelAndOptions() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Audio:Credential:CredentialSource"] = "ApiKey", + ["Audio:Credential:Key"] = "sk-test-key", + ["Audio:Model"] = "whisper-1", + ["Audio:Options:Endpoint"] = "https://audio.openai.com" + }) + .Build(); + + var settings = config.GetClientSettings("Audio"); + + Assert.That(settings.Model, Is.EqualTo("whisper-1")); + Assert.That(settings.Options, Is.Not.Null); + Assert.That(settings.Options.Endpoint, Is.EqualTo(new Uri("https://audio.openai.com"))); + } + + [Test] + public void GetClientSettings_EmbeddingClientSettings_BindsModelAndOptions() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Embedding:Credential:CredentialSource"] = "ApiKey", + ["Embedding:Credential:Key"] = "sk-test-key", + ["Embedding:Model"] = "text-embedding-3-small", + ["Embedding:Options:OrganizationId"] = "org-embed" + }) + .Build(); + + var settings = config.GetClientSettings("Embedding"); + + Assert.That(settings.Model, Is.EqualTo("text-embedding-3-small")); + Assert.That(settings.Options.OrganizationId, Is.EqualTo("org-embed")); + } + + [Test] + public void GetClientSettings_ImageClientSettings_BindsModelAndOptions() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Image:Credential:CredentialSource"] = "ApiKey", + ["Image:Credential:Key"] = "sk-test-key", + ["Image:Model"] = "dall-e-3", + ["Image:Options:ProjectId"] = "proj-img" + }) + .Build(); + + var settings = config.GetClientSettings("Image"); + + Assert.That(settings.Model, Is.EqualTo("dall-e-3")); + Assert.That(settings.Options.ProjectId, Is.EqualTo("proj-img")); + } + + [Test] + public void GetClientSettings_ModerationClientSettings_BindsModel() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Moderation:Credential:CredentialSource"] = "ApiKey", + ["Moderation:Credential:Key"] = "sk-test-key", + ["Moderation:Model"] = "text-moderation-latest" + }) + .Build(); + + var settings = config.GetClientSettings("Moderation"); + + Assert.That(settings.Model, Is.EqualTo("text-moderation-latest")); + } + + [Test] + public void GetClientSettings_ResponsesClientSettings_BindsModel() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Responses:Credential:CredentialSource"] = "ApiKey", + ["Responses:Credential:Key"] = "sk-test-key", + ["Responses:Model"] = "gpt-4o" + }) + .Build(); + + var settings = config.GetClientSettings("Responses"); + + Assert.That(settings.Model, Is.EqualTo("gpt-4o")); + } + + [Test] + public void GetClientSettings_AssistantClientSettings_BindsOptionsOnly() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Assistant:Credential:CredentialSource"] = "ApiKey", + ["Assistant:Credential:Key"] = "sk-test-key", + ["Assistant:Options:Endpoint"] = "https://assistant.openai.com", + ["Assistant:Options:OrganizationId"] = "org-assist" + }) + .Build(); + + var settings = config.GetClientSettings("Assistant"); + + Assert.That(settings, Is.Not.Null); + Assert.That(settings.Credential, Is.Not.Null); + Assert.That(settings.Options, Is.Not.Null); + Assert.That(settings.Options.Endpoint, Is.EqualTo(new Uri("https://assistant.openai.com"))); + Assert.That(settings.Options.OrganizationId, Is.EqualTo("org-assist")); + } + + [Test] + public void GetClientSettings_BatchClientSettings_BindsOptions() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Batch:Credential:CredentialSource"] = "ApiKey", + ["Batch:Credential:Key"] = "sk-test-key", + ["Batch:Options:Endpoint"] = "https://batch.openai.com" + }) + .Build(); + + var settings = config.GetClientSettings("Batch"); + + Assert.That(settings.Options.Endpoint, Is.EqualTo(new Uri("https://batch.openai.com"))); + } + + [Test] + public void GetClientSettings_RealtimeClientSettings_BindsOptions() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Realtime:Credential:CredentialSource"] = "ApiKey", + ["Realtime:Credential:Key"] = "sk-test-key", + ["Realtime:Options:Endpoint"] = "https://realtime.openai.com" + }) + .Build(); + + var settings = config.GetClientSettings("Realtime"); + + Assert.That(settings.Options.Endpoint, Is.EqualTo(new Uri("https://realtime.openai.com"))); + } + + [Test] + public void GetClientSettings_WithOnlyCredential_CredentialIsSet() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Section:Credential:CredentialSource"] = "ApiKey", + ["Section:Credential:Key"] = "sk-only-key" + }) + .Build(); + + var settings = config.GetClientSettings("Section"); + + Assert.That(settings.Credential.CredentialSource, Is.EqualTo("ApiKey")); + Assert.That(settings.Options, Is.Null); + } + + [Test] + public void GetClientSettings_MissingSectionName_ReturnsDefaultSettings() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Other:Credential:CredentialSource"] = "ApiKey", + ["Other:Credential:Key"] = "sk-test-key" + }) + .Build(); + + var settings = config.GetClientSettings("NonExistentSection"); + + Assert.That(settings, Is.Not.Null); + Assert.That(settings.Model, Is.Null); + Assert.That(settings.Options, Is.Null); + Assert.That(settings.Credential.CredentialSource, Is.Null); + } + + #endregion + + #region Constructor Null Settings Tests + + [Test] + public void ChatClient_NullSettings_Throws() + { + Assert.Throws(() => new ChatClient((ChatClientSettings)null)); + } + + [Test] + public void AudioClient_NullSettings_Throws() + { + Assert.Throws(() => new AudioClient((AudioClientSettings)null)); + } + + [Test] + public void EmbeddingClient_NullSettings_Throws() + { + Assert.Throws(() => new EmbeddingClient((EmbeddingClientSettings)null)); + } + + [Test] + public void ImageClient_NullSettings_Throws() + { + Assert.Throws(() => new ImageClient((ImageClientSettings)null)); + } + + [Test] + public void ModerationClient_NullSettings_Throws() + { + Assert.Throws(() => new ModerationClient((ModerationClientSettings)null)); + } + + [Test] + public void ResponsesClient_NullSettings_Throws() + { + Assert.Throws(() => new ResponsesClient((ResponsesClientSettings)null)); + } + + [Test] + public void AssistantClient_NullSettings_Throws() + { + Assert.Throws(() => new AssistantClient((AssistantClientSettings)null)); + } + + [Test] + public void BatchClient_NullSettings_Throws() + { + Assert.Throws(() => new BatchClient((BatchClientSettings)null)); + } + + [Test] + public void ContainerClient_NullSettings_Throws() + { + Assert.Throws(() => new ContainerClient((ContainerClientSettings)null)); + } + + [Test] + public void ConversationClient_NullSettings_Throws() + { + Assert.Throws(() => new ConversationClient((ConversationClientSettings)null)); + } + + [Test] + public void EvaluationClient_NullSettings_Throws() + { + Assert.Throws(() => new EvaluationClient((EvaluationClientSettings)null)); + } + + [Test] + public void OpenAIFileClient_NullSettings_Throws() + { + Assert.Throws(() => new OpenAIFileClient((OpenAIFileClientSettings)null)); + } + + [Test] + public void FineTuningClient_NullSettings_Throws() + { + Assert.Throws(() => new FineTuningClient((FineTuningClientSettings)null)); + } + + [Test] + public void GraderClient_NullSettings_Throws() + { + Assert.Throws(() => new GraderClient((GraderClientSettings)null)); + } + + [Test] + public void OpenAIModelClient_NullSettings_Throws() + { + Assert.Throws(() => new OpenAIModelClient((OpenAIModelClientSettings)null)); + } + + [Test] + public void VectorStoreClient_NullSettings_Throws() + { + Assert.Throws(() => new VectorStoreClient((VectorStoreClientSettings)null)); + } + + [Test] + public void VideoClient_NullSettings_Throws() + { + Assert.Throws(() => new VideoClient((VideoClientSettings)null)); + } + + [Test] + public void RealtimeClient_NullSettings_Throws() + { + Assert.Throws(() => new RealtimeClient((RealtimeClientSettings)null)); + } + + #endregion + + #region Constructor Valid Settings Tests - Model-Based Clients + + [Test] + public void ChatClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateModelSettings("gpt-4o-mini"); + + var client = new ChatClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void ChatClient_ValidSettings_CustomEndpoint_UsesCustomEndpoint() + { + var settings = CreateModelSettings("gpt-4", "https://custom.api.com"); + + var client = new ChatClient(settings); + + Assert.That(client.Endpoint, Is.EqualTo(new Uri("https://custom.api.com"))); + } + + [Test] + public void AudioClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateModelSettings("whisper-1"); + + var client = new AudioClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void EmbeddingClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateModelSettings("text-embedding-3-small"); + + var client = new EmbeddingClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void ImageClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateModelSettings("dall-e-3"); + + var client = new ImageClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void ModerationClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateModelSettings("text-moderation-latest"); + + var client = new ModerationClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void ResponsesClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateModelSettings("gpt-4o"); + + var client = new ResponsesClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + #endregion + + #region Constructor Valid Settings Tests - Non-Model Clients + + [Test] + public void AssistantClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new AssistantClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void BatchClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new BatchClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void ContainerClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new ContainerClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void ConversationClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new ConversationClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void EvaluationClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new EvaluationClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void OpenAIFileClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new OpenAIFileClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void FineTuningClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new FineTuningClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void GraderClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new GraderClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void OpenAIModelClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new OpenAIModelClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void VectorStoreClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new VectorStoreClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void VideoClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new VideoClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + [Test] + public void RealtimeClient_ValidSettings_ConstructsSuccessfully() + { + var settings = CreateNonModelSettings(); + + var client = new RealtimeClient(settings); + + Assert.That(client, Is.Not.Null); + Assert.That(client.Endpoint, Is.Not.Null); + } + + #endregion + + #region Constructor Missing Required Fields Tests + + [Test] + public void ChatClient_SettingsWithoutModel_Throws() + { + var settings = CreateNonModelSettings(); + + Assert.Throws(() => new ChatClient(settings)); + } + + [Test] + public void AudioClient_SettingsWithoutModel_Throws() + { + var settings = CreateNonModelSettings(); + + Assert.Throws(() => new AudioClient(settings)); + } + + [Test] + public void EmbeddingClient_SettingsWithoutModel_Throws() + { + var settings = CreateNonModelSettings(); + + Assert.Throws(() => new EmbeddingClient(settings)); + } + + [Test] + public void ImageClient_SettingsWithoutModel_Throws() + { + var settings = CreateNonModelSettings(); + + Assert.Throws(() => new ImageClient(settings)); + } + + [Test] + public void ModerationClient_SettingsWithoutModel_Throws() + { + var settings = CreateNonModelSettings(); + + Assert.Throws(() => new ModerationClient(settings)); + } + + [Test] + public void ResponsesClient_SettingsWithoutModel_Throws() + { + var settings = CreateNonModelSettings(); + + Assert.Throws(() => new ResponsesClient(settings)); + } + + [Test] + public void ChatClient_SettingsWithEmptyModel_Throws() + { + var settings = CreateModelSettings(""); + + Assert.That(() => new ChatClient(settings), Throws.InstanceOf()); + } + + [Test] + public void ChatClient_SettingsWithoutCredential_Throws() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Chat:Model"] = "gpt-4" + }) + .Build(); + + var settings = config.GetClientSettings("Chat"); + + Assert.Throws(() => new ChatClient(settings)); + } + + [Test] + public void AssistantClient_SettingsWithoutCredential_Throws() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary()) + .Build(); + + var settings = config.GetClientSettings("Assistant"); + + Assert.Throws(() => new AssistantClient(settings)); + } + + #endregion + + #region Constructor Settings with Options Tests + + [Test] + public void ChatClient_SettingsWithNullOptions_UsesDefaultEndpoint() + { + var settings = CreateModelSettings("gpt-4"); + + var client = new ChatClient(settings); + + Assert.That(client.Endpoint, Is.EqualTo(new Uri("https://api.openai.com/v1"))); + } + + [Test] + public void AssistantClient_SettingsWithNullOptions_UsesDefaultEndpoint() + { + var settings = CreateNonModelSettings(); + + var client = new AssistantClient(settings); + + Assert.That(client.Endpoint, Is.EqualTo(new Uri("https://api.openai.com/v1"))); + } + + [Test] + public void ChatClient_SettingsWithCustomEndpoint_UsesCustomEndpoint() + { + var settings = CreateModelSettings("gpt-4", "https://my-proxy.example.com"); + + var client = new ChatClient(settings); + + Assert.That(client.Endpoint, Is.EqualTo(new Uri("https://my-proxy.example.com"))); + } + + [Test] + public void AssistantClient_SettingsWithCustomEndpoint_UsesCustomEndpoint() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Assistant:Credential:CredentialSource"] = "ApiKey", + ["Assistant:Credential:Key"] = "sk-test-key", + ["Assistant:Options:Endpoint"] = "https://my-proxy.example.com" + }) + .Build(); + + var settings = config.GetClientSettings("Assistant"); + var client = new AssistantClient(settings); + + Assert.That(client.Endpoint, Is.EqualTo(new Uri("https://my-proxy.example.com"))); + } + + [Test] + public void RealtimeClient_SettingsWithCustomEndpoint_UsesCustomEndpoint() + { + var config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary + { + ["Realtime:Credential:CredentialSource"] = "ApiKey", + ["Realtime:Credential:Key"] = "sk-test-key", + ["Realtime:Options:Endpoint"] = "https://realtime-proxy.example.com" + }) + .Build(); + + var settings = config.GetClientSettings("Realtime"); + var client = new RealtimeClient(settings); + + Assert.That(client.Endpoint, Is.Not.Null); + } + + #endregion + + #region Helper Methods + + private static T CreateModelSettings(string model, string endpoint = null) where T : ClientSettings, new() + { + var configValues = new Dictionary + { + ["Section:Credential:CredentialSource"] = "ApiKey", + ["Section:Credential:Key"] = "sk-test-key", + ["Section:Model"] = model + }; + + if (endpoint != null) + { + configValues["Section:Options:Endpoint"] = endpoint; + } + + var config = new ConfigurationBuilder() + .AddInMemoryCollection(configValues) + .Build(); + + return config.GetClientSettings("Section"); + } + + private static T CreateNonModelSettings(string endpoint = null) where T : ClientSettings, new() + { + var configValues = new Dictionary + { + ["Section:Credential:CredentialSource"] = "ApiKey", + ["Section:Credential:Key"] = "sk-test-key" + }; + + if (endpoint != null) + { + configValues["Section:Options:Endpoint"] = endpoint; + } + + var config = new ConfigurationBuilder() + .AddInMemoryCollection(configValues) + .Build(); + + return config.GetClientSettings("Section"); + } + + #endregion +} diff --git a/tests/DependencyInjection/OpenAIHostBuilderExtensionsTests.cs b/tests/DependencyInjection/OpenAIHostBuilderExtensionsTests.cs new file mode 100644 index 000000000..4fe923e66 --- /dev/null +++ b/tests/DependencyInjection/OpenAIHostBuilderExtensionsTests.cs @@ -0,0 +1,1023 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Moq; +using NUnit.Framework; +using OpenAI.DependencyInjection; +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; + +namespace OpenAI.Tests.DependencyInjection; + +[Experimental("SCME0002")] +[TestFixture] +[NonParallelizable] +public class OpenAIHostBuilderExtensionsTests +{ + private Mock _mockBuilder; + private ServiceCollection _services; + private ConfigurationManager _configurationManager; + + [SetUp] + public void SetUp() + { + _services = new ServiceCollection(); + _configurationManager = new ConfigurationManager(); + _mockBuilder = new Mock(); + + _mockBuilder.Setup(b => b.Services).Returns(_services); + _mockBuilder.Setup(b => b.Configuration).Returns(_configurationManager); + } + + private void SetupConfiguration(Dictionary configValues) + { + _configurationManager = new ConfigurationManager(); + _configurationManager.AddInMemoryCollection(configValues); + _mockBuilder.Setup(b => b.Configuration).Returns(_configurationManager); + } + + #region Null Argument Validation Tests + + [Test] + public void AddAssistantClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddAssistantClient("OpenAI:Assistant")); + } + + [Test] + public void AddKeyedAssistantClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedAssistantClient("key", "OpenAI:Assistant")); + } + + [Test] + public void AddAudioClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddAudioClient("OpenAI:Audio")); + } + + [Test] + public void AddKeyedAudioClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedAudioClient("key", "OpenAI:Audio")); + } + + [Test] + public void AddBatchClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddBatchClient("OpenAI:Batch")); + } + + [Test] + public void AddKeyedBatchClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedBatchClient("key", "OpenAI:Batch")); + } + + [Test] + public void AddChatClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddChatClient("OpenAI:Chat")); + } + + [Test] + public void AddKeyedChatClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedChatClient("key", "OpenAI:Chat")); + } + + [Test] + public void AddEmbeddingClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddEmbeddingClient("OpenAI:Embedding")); + } + + [Test] + public void AddKeyedEmbeddingClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedEmbeddingClient("key", "OpenAI:Embedding")); + } + + [Test] + public void AddOpenAIFileClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddOpenAIFileClient("OpenAI:File")); + } + + [Test] + public void AddKeyedOpenAIFileClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedOpenAIFileClient("key", "OpenAI:File")); + } + + [Test] + public void AddFineTuningClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddFineTuningClient("OpenAI:FineTuning")); + } + + [Test] + public void AddKeyedFineTuningClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedFineTuningClient("key", "OpenAI:FineTuning")); + } + + [Test] + public void AddImageClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddImageClient("OpenAI:Image")); + } + + [Test] + public void AddKeyedImageClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedImageClient("key", "OpenAI:Image")); + } + + [Test] + public void AddOpenAIModelClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddOpenAIModelClient("OpenAI:Model")); + } + + [Test] + public void AddKeyedOpenAIModelClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedOpenAIModelClient("key", "OpenAI:Model")); + } + + [Test] + public void AddModerationClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddModerationClient("OpenAI:Moderation")); + } + + [Test] + public void AddKeyedModerationClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedModerationClient("key", "OpenAI:Moderation")); + } + + [Test] + public void AddRealtimeClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddRealtimeClient("OpenAI:Realtime")); + } + + [Test] + public void AddKeyedRealtimeClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedRealtimeClient("key", "OpenAI:Realtime")); + } + + [Test] + public void AddResponsesClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddResponsesClient("OpenAI:Responses")); + } + + [Test] + public void AddKeyedResponsesClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedResponsesClient("key", "OpenAI:Responses")); + } + + [Test] + public void AddVectorStoreClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddVectorStoreClient("OpenAI:VectorStore")); + } + + [Test] + public void AddKeyedVectorStoreClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedVectorStoreClient("key", "OpenAI:VectorStore")); + } + + [Test] + public void AddVideoClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddVideoClient("OpenAI:Video")); + } + + [Test] + public void AddKeyedVideoClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedVideoClient("key", "OpenAI:Video")); + } + + [Test] + public void AddContainerClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddContainerClient("OpenAI:Container")); + } + + [Test] + public void AddKeyedContainerClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedContainerClient("key", "OpenAI:Container")); + } + + [Test] + public void AddConversationClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddConversationClient("OpenAI:Conversation")); + } + + [Test] + public void AddKeyedConversationClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedConversationClient("key", "OpenAI:Conversation")); + } + + [Test] + public void AddEvaluationClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddEvaluationClient("OpenAI:Evaluation")); + } + + [Test] + public void AddKeyedEvaluationClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedEvaluationClient("key", "OpenAI:Evaluation")); + } + + [Test] + public void AddGraderClient_NullBuilder_ThrowsArgumentNullException() + { + IHostApplicationBuilder builder = null; + + Assert.Throws(() => builder!.AddGraderClient("OpenAI:Grader")); + Assert.Throws(() => ((IHostApplicationBuilder)null).AddGraderClient("OpenAI:Grader")); + } + + [Test] + public void AddKeyedGraderClient_NullBuilder_ThrowsArgumentNullException() + { + Assert.Throws(() => ((IHostApplicationBuilder)null).AddKeyedGraderClient("key", "OpenAI:Grader")); + } + + #endregion + + #region Extension Method Returns IClientBuilder Tests + + [Test] + public void AddAssistantClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Assistant:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddAssistantClient("OpenAI:Assistant"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddKeyedAssistantClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Assistant:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedAssistantClient("myKey", "OpenAI:Assistant"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddAudioClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Audio:ApiKey"] = "test-key", + ["OpenAI:Audio:Model"] = "whisper-1" + }); + + var result = _mockBuilder.Object.AddAudioClient("OpenAI:Audio"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddChatClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:ApiKey"] = "test-key", + ["OpenAI:Chat:Model"] = "gpt-4" + }); + + var result = _mockBuilder.Object.AddChatClient("OpenAI:Chat"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddKeyedChatClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:ApiKey"] = "test-key", + ["OpenAI:Chat:Model"] = "gpt-4" + }); + + var result = _mockBuilder.Object.AddKeyedChatClient("chatKey", "OpenAI:Chat"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddEmbeddingClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Embedding:ApiKey"] = "test-key", + ["OpenAI:Embedding:Model"] = "text-embedding-ada-002" + }); + + var result = _mockBuilder.Object.AddEmbeddingClient("OpenAI:Embedding"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddImageClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Image:ApiKey"] = "test-key", + ["OpenAI:Image:Model"] = "dall-e-3" + }); + + var result = _mockBuilder.Object.AddImageClient("OpenAI:Image"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddModerationClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Moderation:ApiKey"] = "test-key", + ["OpenAI:Moderation:Model"] = "text-moderation-latest" + }); + + var result = _mockBuilder.Object.AddModerationClient("OpenAI:Moderation"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddVectorStoreClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:VectorStore:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddVectorStoreClient("OpenAI:VectorStore"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + [Test] + public void AddResponsesClient_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Responses:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddResponsesClient("OpenAI:Responses"); + + Assert.That(result, Is.Not.Null); + Assert.That(result, Is.InstanceOf()); + } + + #endregion + + #region Configuration Binding Tests + + [Test] + public void AddChatClient_WithNestedOptions_BindsConfigurationCorrectly() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:ApiKey"] = "sk-test-api-key", + ["OpenAI:Chat:Model"] = "gpt-4-turbo", + ["OpenAI:Chat:Options:Endpoint"] = "https://custom.openai.com", + ["OpenAI:Chat:Options:OrganizationId"] = "org-12345" + }); + + var result = _mockBuilder.Object.AddChatClient("OpenAI:Chat"); + + Assert.That(result, Is.Not.Null); + Assert.That(_services.Count, Is.GreaterThan(0)); + } + + [Test] + public void AddEmbeddingClient_WithNestedOptions_BindsConfigurationCorrectly() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Embedding:ApiKey"] = "sk-embed-key", + ["OpenAI:Embedding:Model"] = "text-embedding-3-large", + ["OpenAI:Embedding:Options:Endpoint"] = "https://api.openai.com/v1", + ["OpenAI:Embedding:Options:OrganizationId"] = "org-embed" + }); + + var result = _mockBuilder.Object.AddEmbeddingClient("OpenAI:Embedding"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddAudioClient_WithModelConfiguration_BindsCorrectly() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Audio:ApiKey"] = "sk-audio-key", + ["OpenAI:Audio:Model"] = "whisper-1", + ["OpenAI:Audio:Options:Endpoint"] = "https://api.openai.com" + }); + + var result = _mockBuilder.Object.AddAudioClient("OpenAI:Audio"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddImageClient_WithModelConfiguration_BindsCorrectly() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Image:ApiKey"] = "sk-image-key", + ["OpenAI:Image:Model"] = "dall-e-3", + ["OpenAI:Image:Options:OrganizationId"] = "org-images" + }); + + var result = _mockBuilder.Object.AddImageClient("OpenAI:Image"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddRealtimeClient_WithConfiguration_BindsCorrectly() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Realtime:ApiKey"] = "sk-realtime-key", + ["OpenAI:Realtime:Model"] = "gpt-4o-realtime" + }); + + var result = _mockBuilder.Object.AddRealtimeClient("OpenAI:Realtime"); + + Assert.That(result, Is.Not.Null); + } + + #endregion + + #region Multiple Keyed Registration Tests + + [Test] + public void AddKeyedChatClient_MultipleKeys_RegistersDistinctClients() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat1:ApiKey"] = "sk-key1", + ["OpenAI:Chat1:Model"] = "gpt-4", + ["OpenAI:Chat2:ApiKey"] = "sk-key2", + ["OpenAI:Chat2:Model"] = "gpt-3.5-turbo" + }); + + var result1 = _mockBuilder.Object.AddKeyedChatClient("primary", "OpenAI:Chat1"); + var result2 = _mockBuilder.Object.AddKeyedChatClient("secondary", "OpenAI:Chat2"); + + Assert.That(result1, Is.Not.Null); + Assert.That(result2, Is.Not.Null); + Assert.That(_services.Count, Is.GreaterThanOrEqualTo(2)); + } + + [Test] + public void AddKeyedEmbeddingClient_MultipleKeys_RegistersDistinctClients() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Embed1:ApiKey"] = "sk-embed1", + ["OpenAI:Embed1:Model"] = "text-embedding-ada-002", + ["OpenAI:Embed2:ApiKey"] = "sk-embed2", + ["OpenAI:Embed2:Model"] = "text-embedding-3-small" + }); + + var result1 = _mockBuilder.Object.AddKeyedEmbeddingClient("legacy", "OpenAI:Embed1"); + var result2 = _mockBuilder.Object.AddKeyedEmbeddingClient("modern", "OpenAI:Embed2"); + + Assert.That(result1, Is.Not.Null); + Assert.That(result2, Is.Not.Null); + } + + [Test] + public void AddKeyedImageClient_WithDifferentModels_RegistersCorrectly() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Dalle2:ApiKey"] = "sk-dalle2", + ["OpenAI:Dalle2:Model"] = "dall-e-2", + ["OpenAI:Dalle3:ApiKey"] = "sk-dalle3", + ["OpenAI:Dalle3:Model"] = "dall-e-3" + }); + + var dalle2 = _mockBuilder.Object.AddKeyedImageClient("dalle2", "OpenAI:Dalle2"); + var dalle3 = _mockBuilder.Object.AddKeyedImageClient("dalle3", "OpenAI:Dalle3"); + + Assert.That(dalle2, Is.Not.Null); + Assert.That(dalle3, Is.Not.Null); + } + + #endregion + + #region Empty and Missing Configuration Tests + + [Test] + public void AddChatClient_WithEmptySection_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary()); + + var result = _mockBuilder.Object.AddChatClient("OpenAI:Chat"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddChatClient_WithMissingApiKey_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:Model"] = "gpt-4" + }); + + var result = _mockBuilder.Object.AddChatClient("OpenAI:Chat"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedChatClient_WithEmptyServiceKey_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedChatClient(string.Empty, "OpenAI:Chat"); + + Assert.That(result, Is.Not.Null); + } + + #endregion + + #region All Client Types Registration Tests + + [Test] + public void AddBatchClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Batch:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddBatchClient("OpenAI:Batch"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedBatchClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Batch:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedBatchClient("batchKey", "OpenAI:Batch"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddOpenAIFileClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:File:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddOpenAIFileClient("OpenAI:File"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedOpenAIFileClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:File:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedOpenAIFileClient("fileKey", "OpenAI:File"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddFineTuningClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:FineTuning:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddFineTuningClient("OpenAI:FineTuning"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedFineTuningClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:FineTuning:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedFineTuningClient("ftKey", "OpenAI:FineTuning"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddOpenAIModelClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Model:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddOpenAIModelClient("OpenAI:Model"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedOpenAIModelClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Model:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedOpenAIModelClient("modelKey", "OpenAI:Model"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedModerationClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Moderation:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedModerationClient("modKey", "OpenAI:Moderation"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedRealtimeClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Realtime:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedRealtimeClient("rtKey", "OpenAI:Realtime"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedResponsesClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Responses:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedResponsesClient("respKey", "OpenAI:Responses"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedVectorStoreClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:VectorStore:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedVectorStoreClient("vsKey", "OpenAI:VectorStore"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddVideoClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Video:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddVideoClient("OpenAI:Video"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedVideoClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Video:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedVideoClient("videoKey", "OpenAI:Video"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddContainerClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Container:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddContainerClient("OpenAI:Container"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedContainerClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Container:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedContainerClient("containerKey", "OpenAI:Container"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddConversationClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Conversation:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddConversationClient("OpenAI:Conversation"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedConversationClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Conversation:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedConversationClient("convKey", "OpenAI:Conversation"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddEvaluationClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Evaluation:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddEvaluationClient("OpenAI:Evaluation"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedEvaluationClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Evaluation:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedEvaluationClient("evalKey", "OpenAI:Evaluation"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddGraderClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Grader:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddGraderClient("OpenAI:Grader"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedGraderClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Grader:ApiKey"] = "test-key" + }); + + var result = _mockBuilder.Object.AddKeyedGraderClient("graderKey", "OpenAI:Grader"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedAudioClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Audio:ApiKey"] = "test-key", + ["OpenAI:Audio:Model"] = "whisper-1" + }); + + var result = _mockBuilder.Object.AddKeyedAudioClient("audioKey", "OpenAI:Audio"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedEmbeddingClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Embedding:ApiKey"] = "test-key", + ["OpenAI:Embedding:Model"] = "text-embedding-ada-002" + }); + + var result = _mockBuilder.Object.AddKeyedEmbeddingClient("embedKey", "OpenAI:Embedding"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedImageClient_RegistersSuccessfully() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Image:ApiKey"] = "test-key", + ["OpenAI:Image:Model"] = "dall-e-3" + }); + + var result = _mockBuilder.Object.AddKeyedImageClient("imageKey", "OpenAI:Image"); + + Assert.That(result, Is.Not.Null); + } + + #endregion + + #region Service Registration Verification Tests + + [Test] + public void AddChatClient_AddsServiceToCollection() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:ApiKey"] = "test-key", + ["OpenAI:Chat:Model"] = "gpt-4" + }); + + _mockBuilder.Object.AddChatClient("OpenAI:Chat"); + + Assert.That(_services.Count, Is.GreaterThan(0)); + } + + [Test] + public void AddKeyedChatClient_AddsKeyedServiceToCollection() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:ApiKey"] = "test-key", + ["OpenAI:Chat:Model"] = "gpt-4" + }); + + _mockBuilder.Object.AddKeyedChatClient("testKey", "OpenAI:Chat"); + + Assert.That(_services.Count, Is.GreaterThan(0)); + } + + [Test] + public void AddMultipleClients_RegistersAllServices() + { + SetupConfiguration(new Dictionary + { + ["OpenAI:Chat:ApiKey"] = "test-key", + ["OpenAI:Chat:Model"] = "gpt-4", + ["OpenAI:Embedding:ApiKey"] = "test-key", + ["OpenAI:Embedding:Model"] = "text-embedding-ada-002", + ["OpenAI:Image:ApiKey"] = "test-key", + ["OpenAI:Image:Model"] = "dall-e-3" + }); + + _mockBuilder.Object.AddChatClient("OpenAI:Chat"); + _mockBuilder.Object.AddEmbeddingClient("OpenAI:Embedding"); + _mockBuilder.Object.AddImageClient("OpenAI:Image"); + + Assert.That(_services.Count, Is.GreaterThanOrEqualTo(3)); + } + + #endregion + + #region Section Name Variations Tests + + [Test] + public void AddChatClient_WithDifferentSectionNames_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["MyApp:Services:OpenAI:ChatClient:ApiKey"] = "test-key", + ["MyApp:Services:OpenAI:ChatClient:Model"] = "gpt-4" + }); + + var result = _mockBuilder.Object.AddChatClient("MyApp:Services:OpenAI:ChatClient"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddChatClient_WithSimpleSectionName_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["Chat:ApiKey"] = "test-key", + ["Chat:Model"] = "gpt-4" + }); + + var result = _mockBuilder.Object.AddChatClient("Chat"); + + Assert.That(result, Is.Not.Null); + } + + [Test] + public void AddKeyedChatClient_WithComplexSectionName_ReturnsClientBuilder() + { + SetupConfiguration(new Dictionary + { + ["Production:AI:OpenAI:ChatGPT:ApiKey"] = "prod-key", + ["Production:AI:OpenAI:ChatGPT:Model"] = "gpt-4-turbo" + }); + + var result = _mockBuilder.Object.AddKeyedChatClient("production-chat", "Production:AI:OpenAI:ChatGPT"); + + Assert.That(result, Is.Not.Null); + } + + #endregion +} \ No newline at end of file