diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs index 73a6ec7a..e30b7cc6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs @@ -85,6 +85,11 @@ public AllOf(T1? value) Value1 = value; } + /// + /// + /// + public static AllOf FromValue1(T1? value) => new AllOf(value); + /// /// /// @@ -103,6 +108,11 @@ public AllOf(T2? value) Value2 = value; } + /// + /// + /// + public static AllOf FromValue2(T2? value) => new AllOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs index 4e389588..afed532b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs @@ -85,6 +85,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -103,6 +108,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs index bb884020..21d4883a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs @@ -115,6 +115,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -133,6 +138,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// @@ -151,6 +161,11 @@ public AnyOf(T3? value) Value3 = value; } + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs index d436f282..4af0b07a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs @@ -86,6 +86,11 @@ public AdminApiKeyCreateResponse(global::tryAGI.OpenAI.AdminApiKey? value) AdminApiKey = value; } + /// + /// + /// + public static AdminApiKeyCreateResponse FromAdminApiKey(global::tryAGI.OpenAI.AdminApiKey? value) => new AdminApiKeyCreateResponse(value); + /// /// /// @@ -104,6 +109,11 @@ public AdminApiKeyCreateResponse(global::tryAGI.OpenAI.AdminApiKeyCreateResponse AdminApiKeyCreateResponseVariant2 = value; } + /// + /// + /// + public static AdminApiKeyCreateResponse FromAdminApiKeyCreateResponseVariant2(global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2? value) => new AdminApiKeyCreateResponse(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs index 7d8c39f7..1f3a174b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs @@ -151,6 +151,11 @@ public Annotation(global::tryAGI.OpenAI.FileCitationBody? value) FileCitation = value; } + /// + /// + /// + public static Annotation FromFileCitation(global::tryAGI.OpenAI.FileCitationBody? value) => new Annotation(value); + /// /// /// @@ -169,6 +174,11 @@ public Annotation(global::tryAGI.OpenAI.UrlCitationBody? value) UrlCitation = value; } + /// + /// + /// + public static Annotation FromUrlCitation(global::tryAGI.OpenAI.UrlCitationBody? value) => new Annotation(value); + /// /// /// @@ -187,6 +197,11 @@ public Annotation(global::tryAGI.OpenAI.ContainerFileCitationBody? value) ContainerFileCitation = value; } + /// + /// + /// + public static Annotation FromContainerFileCitation(global::tryAGI.OpenAI.ContainerFileCitationBody? value) => new Annotation(value); + /// /// /// @@ -205,6 +220,11 @@ public Annotation(global::tryAGI.OpenAI.FilePath? value) FilePath = value; } + /// + /// + /// + public static Annotation FromFilePath(global::tryAGI.OpenAI.FilePath? value) => new Annotation(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs index e54cd964..c1fb5c86 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs @@ -91,6 +91,11 @@ public AnnotationsItem3(global::tryAGI.OpenAI.FileAnnotation? value) File = value; } + /// + /// + /// + public static AnnotationsItem3 FromFile(global::tryAGI.OpenAI.FileAnnotation? value) => new AnnotationsItem3(value); + /// /// /// @@ -109,6 +114,11 @@ public AnnotationsItem3(global::tryAGI.OpenAI.UrlAnnotation? value) Url = value; } + /// + /// + /// + public static AnnotationsItem3 FromUrl(global::tryAGI.OpenAI.UrlAnnotation? value) => new AnnotationsItem3(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs index 18fd064e..181ac16d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs @@ -121,6 +121,11 @@ public ApplyPatchOperationParam(global::tryAGI.OpenAI.ApplyPatchCreateFileOperat CreateFile = value; } + /// + /// + /// + public static ApplyPatchOperationParam FromCreateFile(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? value) => new ApplyPatchOperationParam(value); + /// /// /// @@ -139,6 +144,11 @@ public ApplyPatchOperationParam(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperat DeleteFile = value; } + /// + /// + /// + public static ApplyPatchOperationParam FromDeleteFile(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? value) => new ApplyPatchOperationParam(value); + /// /// /// @@ -157,6 +167,11 @@ public ApplyPatchOperationParam(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperat UpdateFile = value; } + /// + /// + /// + public static ApplyPatchOperationParam FromUpdateFile(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? value) => new ApplyPatchOperationParam(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs index d7bd5bb9..1f3d5dc4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs @@ -220,6 +220,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.ThreadStreamEvent? value) Thread = value; } + /// + /// + /// + public static AssistantStreamEvent FromThread(global::tryAGI.OpenAI.ThreadStreamEvent? value) => new AssistantStreamEvent(value); + /// /// /// @@ -238,6 +243,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.RunStreamEvent? value) Run = value; } + /// + /// + /// + public static AssistantStreamEvent FromRun(global::tryAGI.OpenAI.RunStreamEvent? value) => new AssistantStreamEvent(value); + /// /// /// @@ -256,6 +266,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.RunStepStreamEvent? value) RunStep = value; } + /// + /// + /// + public static AssistantStreamEvent FromRunStep(global::tryAGI.OpenAI.RunStepStreamEvent? value) => new AssistantStreamEvent(value); + /// /// /// @@ -274,6 +289,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.MessageStreamEvent? value) Message = value; } + /// + /// + /// + public static AssistantStreamEvent FromMessage(global::tryAGI.OpenAI.MessageStreamEvent? value) => new AssistantStreamEvent(value); + /// /// /// @@ -292,6 +312,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.ErrorEvent? value) Error = value; } + /// + /// + /// + public static AssistantStreamEvent FromError(global::tryAGI.OpenAI.ErrorEvent? value) => new AssistantStreamEvent(value); + /// /// /// @@ -310,6 +335,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.DoneEvent? value) Done = value; } + /// + /// + /// + public static AssistantStreamEvent FromDone(global::tryAGI.OpenAI.DoneEvent? value) => new AssistantStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs index 54726410..4865d2fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs @@ -153,6 +153,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.AssistantsApiResp Enum = value; } + /// + /// + /// + public static AssistantsApiResponseFormatOption FromEnum(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? value) => new AssistantsApiResponseFormatOption(value); + /// /// /// @@ -171,6 +176,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatTex Text = value; } + /// + /// + /// + public static AssistantsApiResponseFormatOption FromText(global::tryAGI.OpenAI.ResponseFormatText? value) => new AssistantsApiResponseFormatOption(value); + /// /// /// @@ -189,6 +199,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatJso JsonObject = value; } + /// + /// + /// + public static AssistantsApiResponseFormatOption FromJsonObject(global::tryAGI.OpenAI.ResponseFormatJsonObject? value) => new AssistantsApiResponseFormatOption(value); + /// /// /// @@ -207,6 +222,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatJso JsonSchema = value; } + /// + /// + /// + public static AssistantsApiResponseFormatOption FromJsonSchema(global::tryAGI.OpenAI.ResponseFormatJsonSchema? value) => new AssistantsApiResponseFormatOption(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs index 62e56587..11adc608 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs @@ -90,6 +90,11 @@ public AssistantsApiToolChoiceOption(global::tryAGI.OpenAI.AssistantsApiToolChoi Enum = value; } + /// + /// + /// + public static AssistantsApiToolChoiceOption FromEnum(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? value) => new AssistantsApiToolChoiceOption(value); + /// /// /// @@ -108,6 +113,11 @@ public AssistantsApiToolChoiceOption(global::tryAGI.OpenAI.AssistantsNamedToolCh Named = value; } + /// + /// + /// + public static AssistantsApiToolChoiceOption FromNamed(global::tryAGI.OpenAI.AssistantsNamedToolChoice? value) => new AssistantsApiToolChoiceOption(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs index 511e5365..d352ea8a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs @@ -91,6 +91,11 @@ public ChatCompletionMessageToolCallsItem(global::tryAGI.OpenAI.ChatCompletionMe Function = value; } + /// + /// + /// + public static ChatCompletionMessageToolCallsItem FromFunction(global::tryAGI.OpenAI.ChatCompletionMessageToolCall? value) => new ChatCompletionMessageToolCallsItem(value); + /// /// /// @@ -109,6 +114,11 @@ public ChatCompletionMessageToolCallsItem(global::tryAGI.OpenAI.ChatCompletionMe Custom = value; } + /// + /// + /// + public static ChatCompletionMessageToolCallsItem FromCustom(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? value) => new ChatCompletionMessageToolCallsItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs index bf19b82a..03ae702a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs @@ -91,6 +91,11 @@ public ChatCompletionRequestAssistantMessageContentPart(global::tryAGI.OpenAI.Ch Text = value; } + /// + /// + /// + public static ChatCompletionRequestAssistantMessageContentPart FromText(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? value) => new ChatCompletionRequestAssistantMessageContentPart(value); + /// /// /// @@ -109,6 +114,11 @@ public ChatCompletionRequestAssistantMessageContentPart(global::tryAGI.OpenAI.Ch Refusal = value; } + /// + /// + /// + public static ChatCompletionRequestAssistantMessageContentPart FromRefusal(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? value) => new ChatCompletionRequestAssistantMessageContentPart(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs index 21d57bb6..cd2d8073 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs @@ -216,6 +216,11 @@ public ChatCompletionRequestMessage(global::tryAGI.OpenAI.ChatCompletionRequestD Developer = value; } + /// + /// + /// + public static ChatCompletionRequestMessage FromDeveloper(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? value) => new ChatCompletionRequestMessage(value); + /// /// /// @@ -234,6 +239,11 @@ public ChatCompletionRequestMessage(global::tryAGI.OpenAI.ChatCompletionRequestS System = value; } + /// + /// + /// + public static ChatCompletionRequestMessage FromSystem(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? value) => new ChatCompletionRequestMessage(value); + /// /// /// @@ -252,6 +262,11 @@ public ChatCompletionRequestMessage(global::tryAGI.OpenAI.ChatCompletionRequestU User = value; } + /// + /// + /// + public static ChatCompletionRequestMessage FromUser(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? value) => new ChatCompletionRequestMessage(value); + /// /// /// @@ -270,6 +285,11 @@ public ChatCompletionRequestMessage(global::tryAGI.OpenAI.ChatCompletionRequestA Assistant = value; } + /// + /// + /// + public static ChatCompletionRequestMessage FromAssistant(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? value) => new ChatCompletionRequestMessage(value); + /// /// /// @@ -288,6 +308,11 @@ public ChatCompletionRequestMessage(global::tryAGI.OpenAI.ChatCompletionRequestT Tool = value; } + /// + /// + /// + public static ChatCompletionRequestMessage FromTool(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? value) => new ChatCompletionRequestMessage(value); + /// /// /// @@ -306,6 +331,11 @@ public ChatCompletionRequestMessage(global::tryAGI.OpenAI.ChatCompletionRequestF Function = value; } + /// + /// + /// + public static ChatCompletionRequestMessage FromFunction(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? value) => new ChatCompletionRequestMessage(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs index 6f5beda0..08328719 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs @@ -56,6 +56,11 @@ public ChatCompletionRequestSystemMessageContentPart(global::tryAGI.OpenAI.ChatC TextContentPart = value; } + /// + /// + /// + public static ChatCompletionRequestSystemMessageContentPart FromTextContentPart(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? value) => new ChatCompletionRequestSystemMessageContentPart(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs index a4ca856d..7c263eaf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs @@ -56,6 +56,11 @@ public ChatCompletionRequestToolMessageContentPart(global::tryAGI.OpenAI.ChatCom TextContentPart = value; } + /// + /// + /// + public static ChatCompletionRequestToolMessageContentPart FromTextContentPart(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? value) => new ChatCompletionRequestToolMessageContentPart(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs index 48b35a51..df9e0e98 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs @@ -146,6 +146,11 @@ public ChatCompletionRequestUserMessageContentPart(global::tryAGI.OpenAI.ChatCom TextContentPart = value; } + /// + /// + /// + public static ChatCompletionRequestUserMessageContentPart FromTextContentPart(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? value) => new ChatCompletionRequestUserMessageContentPart(value); + /// /// /// @@ -164,6 +169,11 @@ public ChatCompletionRequestUserMessageContentPart(global::tryAGI.OpenAI.ChatCom ImageContentPart = value; } + /// + /// + /// + public static ChatCompletionRequestUserMessageContentPart FromImageContentPart(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? value) => new ChatCompletionRequestUserMessageContentPart(value); + /// /// /// @@ -182,6 +192,11 @@ public ChatCompletionRequestUserMessageContentPart(global::tryAGI.OpenAI.ChatCom AudioContentPart = value; } + /// + /// + /// + public static ChatCompletionRequestUserMessageContentPart FromAudioContentPart(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? value) => new ChatCompletionRequestUserMessageContentPart(value); + /// /// /// @@ -200,6 +215,11 @@ public ChatCompletionRequestUserMessageContentPart(global::tryAGI.OpenAI.ChatCom FileContentPart = value; } + /// + /// + /// + public static ChatCompletionRequestUserMessageContentPart FromFileContentPart(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? value) => new ChatCompletionRequestUserMessageContentPart(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs index aa902c8e..c430a492 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs @@ -151,6 +151,11 @@ public ChatCompletionToolChoiceOption(global::tryAGI.OpenAI.ChatCompletionToolCh ToolChoiceMode = value; } + /// + /// + /// + public static ChatCompletionToolChoiceOption FromToolChoiceMode(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? value) => new ChatCompletionToolChoiceOption(value); + /// /// /// @@ -169,6 +174,11 @@ public ChatCompletionToolChoiceOption(global::tryAGI.OpenAI.ChatCompletionAllowe AllowedTools = value; } + /// + /// + /// + public static ChatCompletionToolChoiceOption FromAllowedTools(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice? value) => new ChatCompletionToolChoiceOption(value); + /// /// /// @@ -187,6 +197,11 @@ public ChatCompletionToolChoiceOption(global::tryAGI.OpenAI.ChatCompletionNamedT FunctionToolChoice = value; } + /// + /// + /// + public static ChatCompletionToolChoiceOption FromFunctionToolChoice(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? value) => new ChatCompletionToolChoiceOption(value); + /// /// /// @@ -205,6 +220,11 @@ public ChatCompletionToolChoiceOption(global::tryAGI.OpenAI.ChatCompletionNamedT CustomToolChoice = value; } + /// + /// + /// + public static ChatCompletionToolChoiceOption FromCustomToolChoice(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? value) => new ChatCompletionToolChoiceOption(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs index 72010f95..7f99775b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs @@ -91,6 +91,11 @@ public ChunkingStrategyRequestParam(global::tryAGI.OpenAI.AutoChunkingStrategyRe Auto = value; } + /// + /// + /// + public static ChunkingStrategyRequestParam FromAuto(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? value) => new ChunkingStrategyRequestParam(value); + /// /// /// @@ -109,6 +114,11 @@ public ChunkingStrategyRequestParam(global::tryAGI.OpenAI.StaticChunkingStrategy Static = value; } + /// + /// + /// + public static ChunkingStrategyRequestParam FromStatic(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? value) => new ChunkingStrategyRequestParam(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs index c119a6ee..79a18972 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs @@ -301,6 +301,11 @@ public ComputerAction(global::tryAGI.OpenAI.ClickParam? value) Click = value; } + /// + /// + /// + public static ComputerAction FromClick(global::tryAGI.OpenAI.ClickParam? value) => new ComputerAction(value); + /// /// /// @@ -319,6 +324,11 @@ public ComputerAction(global::tryAGI.OpenAI.DoubleClickAction? value) DoubleClick = value; } + /// + /// + /// + public static ComputerAction FromDoubleClick(global::tryAGI.OpenAI.DoubleClickAction? value) => new ComputerAction(value); + /// /// /// @@ -337,6 +347,11 @@ public ComputerAction(global::tryAGI.OpenAI.DragParam? value) Drag = value; } + /// + /// + /// + public static ComputerAction FromDrag(global::tryAGI.OpenAI.DragParam? value) => new ComputerAction(value); + /// /// /// @@ -355,6 +370,11 @@ public ComputerAction(global::tryAGI.OpenAI.KeyPressAction? value) Keypress = value; } + /// + /// + /// + public static ComputerAction FromKeypress(global::tryAGI.OpenAI.KeyPressAction? value) => new ComputerAction(value); + /// /// /// @@ -373,6 +393,11 @@ public ComputerAction(global::tryAGI.OpenAI.MoveParam? value) Move = value; } + /// + /// + /// + public static ComputerAction FromMove(global::tryAGI.OpenAI.MoveParam? value) => new ComputerAction(value); + /// /// /// @@ -391,6 +416,11 @@ public ComputerAction(global::tryAGI.OpenAI.ScreenshotParam? value) Screenshot = value; } + /// + /// + /// + public static ComputerAction FromScreenshot(global::tryAGI.OpenAI.ScreenshotParam? value) => new ComputerAction(value); + /// /// /// @@ -409,6 +439,11 @@ public ComputerAction(global::tryAGI.OpenAI.ScrollParam? value) Scroll = value; } + /// + /// + /// + public static ComputerAction FromScroll(global::tryAGI.OpenAI.ScrollParam? value) => new ComputerAction(value); + /// /// /// @@ -427,6 +462,11 @@ public ComputerAction(global::tryAGI.OpenAI.TypeParam? value) Type = value; } + /// + /// + /// + public static ComputerAction FromType(global::tryAGI.OpenAI.TypeParam? value) => new ComputerAction(value); + /// /// /// @@ -445,6 +485,11 @@ public ComputerAction(global::tryAGI.OpenAI.WaitParam? value) Wait = value; } + /// + /// + /// + public static ComputerAction FromWait(global::tryAGI.OpenAI.WaitParam? value) => new ComputerAction(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs index ad0594ac..7ebeb539 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs @@ -86,6 +86,11 @@ public ComputerToolCallOutputResource(global::tryAGI.OpenAI.ComputerToolCallOutp ComputerToolCallOutput = value; } + /// + /// + /// + public static ComputerToolCallOutputResource FromComputerToolCallOutput(global::tryAGI.OpenAI.ComputerToolCallOutput? value) => new ComputerToolCallOutputResource(value); + /// /// /// @@ -104,6 +109,11 @@ public ComputerToolCallOutputResource(global::tryAGI.OpenAI.ComputerToolCallOutp ComputerToolCallOutputResourceVariant2 = value; } + /// + /// + /// + public static ComputerToolCallOutputResource FromComputerToolCallOutputResourceVariant2(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? value) => new ComputerToolCallOutputResource(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs index 760e2609..89a30b77 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs @@ -86,6 +86,11 @@ public Content5(global::tryAGI.OpenAI.InputContent? value) InputContentTypes = value; } + /// + /// + /// + public static Content5 FromInputContentTypes(global::tryAGI.OpenAI.InputContent? value) => new Content5(value); + /// /// /// @@ -104,6 +109,11 @@ public Content5(global::tryAGI.OpenAI.OutputContent? value) OutputContentTypes = value; } + /// + /// + /// + public static Content5 FromOutputContentTypes(global::tryAGI.OpenAI.OutputContent? value) => new Content5(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs index 93ae20de..358b4d3a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs @@ -301,6 +301,11 @@ public ContentItem3(global::tryAGI.OpenAI.InputTextContent? value) InputText = value; } + /// + /// + /// + public static ContentItem3 FromInputText(global::tryAGI.OpenAI.InputTextContent? value) => new ContentItem3(value); + /// /// /// @@ -319,6 +324,11 @@ public ContentItem3(global::tryAGI.OpenAI.OutputTextContent? value) OutputText = value; } + /// + /// + /// + public static ContentItem3 FromOutputText(global::tryAGI.OpenAI.OutputTextContent? value) => new ContentItem3(value); + /// /// /// @@ -337,6 +347,11 @@ public ContentItem3(global::tryAGI.OpenAI.TextContent? value) Text = value; } + /// + /// + /// + public static ContentItem3 FromText(global::tryAGI.OpenAI.TextContent? value) => new ContentItem3(value); + /// /// /// @@ -355,6 +370,11 @@ public ContentItem3(global::tryAGI.OpenAI.SummaryTextContent? value) SummaryText = value; } + /// + /// + /// + public static ContentItem3 FromSummaryText(global::tryAGI.OpenAI.SummaryTextContent? value) => new ContentItem3(value); + /// /// /// @@ -373,6 +393,11 @@ public ContentItem3(global::tryAGI.OpenAI.ReasoningTextContent? value) ReasoningText = value; } + /// + /// + /// + public static ContentItem3 FromReasoningText(global::tryAGI.OpenAI.ReasoningTextContent? value) => new ContentItem3(value); + /// /// /// @@ -391,6 +416,11 @@ public ContentItem3(global::tryAGI.OpenAI.RefusalContent? value) Refusal = value; } + /// + /// + /// + public static ContentItem3 FromRefusal(global::tryAGI.OpenAI.RefusalContent? value) => new ContentItem3(value); + /// /// /// @@ -409,6 +439,11 @@ public ContentItem3(global::tryAGI.OpenAI.InputImageContent? value) InputImage = value; } + /// + /// + /// + public static ContentItem3 FromInputImage(global::tryAGI.OpenAI.InputImageContent? value) => new ContentItem3(value); + /// /// /// @@ -427,6 +462,11 @@ public ContentItem3(global::tryAGI.OpenAI.ComputerScreenshotContent? value) ComputerScreenshot = value; } + /// + /// + /// + public static ContentItem3 FromComputerScreenshot(global::tryAGI.OpenAI.ComputerScreenshotContent? value) => new ContentItem3(value); + /// /// /// @@ -445,6 +485,11 @@ public ContentItem3(global::tryAGI.OpenAI.InputFileContent? value) InputFile = value; } + /// + /// + /// + public static ContentItem3 FromInputFile(global::tryAGI.OpenAI.InputFileContent? value) => new ContentItem3(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs index 237d2f2e..12050b1e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs @@ -91,6 +91,11 @@ public ContentItem4(global::tryAGI.OpenAI.UserMessageInputText? value) InputText = value; } + /// + /// + /// + public static ContentItem4 FromInputText(global::tryAGI.OpenAI.UserMessageInputText? value) => new ContentItem4(value); + /// /// /// @@ -109,6 +114,11 @@ public ContentItem4(global::tryAGI.OpenAI.UserMessageQuotedText? value) QuotedText = value; } + /// + /// + /// + public static ContentItem4 FromQuotedText(global::tryAGI.OpenAI.UserMessageQuotedText? value) => new ContentItem4(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs index 242b0bc1..a2d64371 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs @@ -782,6 +782,11 @@ public ConversationItem(global::tryAGI.OpenAI.Message? value) Message = value; } + /// + /// + /// + public static ConversationItem FromMessage(global::tryAGI.OpenAI.Message? value) => new ConversationItem(value); + /// /// /// @@ -800,6 +805,11 @@ public ConversationItem(global::tryAGI.OpenAI.FunctionToolCallResource? value) FunctionToolCallResource = value; } + /// + /// + /// + public static ConversationItem FromFunctionToolCallResource(global::tryAGI.OpenAI.FunctionToolCallResource? value) => new ConversationItem(value); + /// /// /// @@ -818,6 +828,11 @@ public ConversationItem(global::tryAGI.OpenAI.FunctionToolCallOutputResource? va FunctionToolCallOutputResource = value; } + /// + /// + /// + public static ConversationItem FromFunctionToolCallOutputResource(global::tryAGI.OpenAI.FunctionToolCallOutputResource? value) => new ConversationItem(value); + /// /// /// @@ -836,6 +851,11 @@ public ConversationItem(global::tryAGI.OpenAI.FileSearchToolCall? value) FileSearchCall = value; } + /// + /// + /// + public static ConversationItem FromFileSearchCall(global::tryAGI.OpenAI.FileSearchToolCall? value) => new ConversationItem(value); + /// /// /// @@ -854,6 +874,11 @@ public ConversationItem(global::tryAGI.OpenAI.WebSearchToolCall? value) WebSearchCall = value; } + /// + /// + /// + public static ConversationItem FromWebSearchCall(global::tryAGI.OpenAI.WebSearchToolCall? value) => new ConversationItem(value); + /// /// /// @@ -872,6 +897,11 @@ public ConversationItem(global::tryAGI.OpenAI.ImageGenToolCall? value) ImageGenerationCall = value; } + /// + /// + /// + public static ConversationItem FromImageGenerationCall(global::tryAGI.OpenAI.ImageGenToolCall? value) => new ConversationItem(value); + /// /// /// @@ -890,6 +920,11 @@ public ConversationItem(global::tryAGI.OpenAI.ComputerToolCall? value) ComputerCall = value; } + /// + /// + /// + public static ConversationItem FromComputerCall(global::tryAGI.OpenAI.ComputerToolCall? value) => new ConversationItem(value); + /// /// /// @@ -908,6 +943,11 @@ public ConversationItem(global::tryAGI.OpenAI.ComputerToolCallOutputResource? va ComputerToolCallOutputResource = value; } + /// + /// + /// + public static ConversationItem FromComputerToolCallOutputResource(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) => new ConversationItem(value); + /// /// /// @@ -926,6 +966,11 @@ public ConversationItem(global::tryAGI.OpenAI.ToolSearchCall? value) ToolSearchCall = value; } + /// + /// + /// + public static ConversationItem FromToolSearchCall(global::tryAGI.OpenAI.ToolSearchCall? value) => new ConversationItem(value); + /// /// /// @@ -944,6 +989,11 @@ public ConversationItem(global::tryAGI.OpenAI.ToolSearchOutput? value) ToolSearchOutput = value; } + /// + /// + /// + public static ConversationItem FromToolSearchOutput(global::tryAGI.OpenAI.ToolSearchOutput? value) => new ConversationItem(value); + /// /// /// @@ -962,6 +1012,11 @@ public ConversationItem(global::tryAGI.OpenAI.ReasoningItem? value) Reasoning = value; } + /// + /// + /// + public static ConversationItem FromReasoning(global::tryAGI.OpenAI.ReasoningItem? value) => new ConversationItem(value); + /// /// /// @@ -980,6 +1035,11 @@ public ConversationItem(global::tryAGI.OpenAI.CompactionBody? value) Compaction = value; } + /// + /// + /// + public static ConversationItem FromCompaction(global::tryAGI.OpenAI.CompactionBody? value) => new ConversationItem(value); + /// /// /// @@ -998,6 +1058,11 @@ public ConversationItem(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) CodeInterpreterCall = value; } + /// + /// + /// + public static ConversationItem FromCodeInterpreterCall(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) => new ConversationItem(value); + /// /// /// @@ -1016,6 +1081,11 @@ public ConversationItem(global::tryAGI.OpenAI.LocalShellToolCall? value) LocalShellCall = value; } + /// + /// + /// + public static ConversationItem FromLocalShellCall(global::tryAGI.OpenAI.LocalShellToolCall? value) => new ConversationItem(value); + /// /// /// @@ -1034,6 +1104,11 @@ public ConversationItem(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) LocalShellCallOutput = value; } + /// + /// + /// + public static ConversationItem FromLocalShellCallOutput(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) => new ConversationItem(value); + /// /// /// @@ -1052,6 +1127,11 @@ public ConversationItem(global::tryAGI.OpenAI.FunctionShellCall? value) ShellCall = value; } + /// + /// + /// + public static ConversationItem FromShellCall(global::tryAGI.OpenAI.FunctionShellCall? value) => new ConversationItem(value); + /// /// /// @@ -1070,6 +1150,11 @@ public ConversationItem(global::tryAGI.OpenAI.FunctionShellCallOutput? value) ShellCallOutput = value; } + /// + /// + /// + public static ConversationItem FromShellCallOutput(global::tryAGI.OpenAI.FunctionShellCallOutput? value) => new ConversationItem(value); + /// /// /// @@ -1088,6 +1173,11 @@ public ConversationItem(global::tryAGI.OpenAI.ApplyPatchToolCall? value) ApplyPatchCall = value; } + /// + /// + /// + public static ConversationItem FromApplyPatchCall(global::tryAGI.OpenAI.ApplyPatchToolCall? value) => new ConversationItem(value); + /// /// /// @@ -1106,6 +1196,11 @@ public ConversationItem(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) ApplyPatchCallOutput = value; } + /// + /// + /// + public static ConversationItem FromApplyPatchCallOutput(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) => new ConversationItem(value); + /// /// /// @@ -1124,6 +1219,11 @@ public ConversationItem(global::tryAGI.OpenAI.MCPListTools? value) McpListTools = value; } + /// + /// + /// + public static ConversationItem FromMcpListTools(global::tryAGI.OpenAI.MCPListTools? value) => new ConversationItem(value); + /// /// /// @@ -1142,6 +1242,11 @@ public ConversationItem(global::tryAGI.OpenAI.MCPApprovalRequest? value) McpApprovalRequest = value; } + /// + /// + /// + public static ConversationItem FromMcpApprovalRequest(global::tryAGI.OpenAI.MCPApprovalRequest? value) => new ConversationItem(value); + /// /// /// @@ -1160,6 +1265,11 @@ public ConversationItem(global::tryAGI.OpenAI.MCPApprovalResponseResource? value McpApprovalResponse = value; } + /// + /// + /// + public static ConversationItem FromMcpApprovalResponse(global::tryAGI.OpenAI.MCPApprovalResponseResource? value) => new ConversationItem(value); + /// /// /// @@ -1178,6 +1288,11 @@ public ConversationItem(global::tryAGI.OpenAI.MCPToolCall? value) McpCall = value; } + /// + /// + /// + public static ConversationItem FromMcpCall(global::tryAGI.OpenAI.MCPToolCall? value) => new ConversationItem(value); + /// /// /// @@ -1196,6 +1311,11 @@ public ConversationItem(global::tryAGI.OpenAI.CustomToolCall? value) CustomToolCall = value; } + /// + /// + /// + public static ConversationItem FromCustomToolCall(global::tryAGI.OpenAI.CustomToolCall? value) => new ConversationItem(value); + /// /// /// @@ -1214,6 +1334,11 @@ public ConversationItem(global::tryAGI.OpenAI.CustomToolCallOutput? value) CustomToolCallOutput = value; } + /// + /// + /// + public static ConversationItem FromCustomToolCallOutput(global::tryAGI.OpenAI.CustomToolCallOutput? value) => new ConversationItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs index a5e9cb6a..53dcae1e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs @@ -88,6 +88,11 @@ public ConversationParam(string? value) ConversationId = value; } + /// + /// + /// + public static ConversationParam FromConversationId(string? value) => new ConversationParam(value); + /// /// /// @@ -106,6 +111,11 @@ public ConversationParam(global::tryAGI.OpenAI.ConversationParam2? value) ConversationObject = value; } + /// + /// + /// + public static ConversationParam FromConversationObject(global::tryAGI.OpenAI.ConversationParam2? value) => new ConversationParam(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs index e5afab0a..b79f8875 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs @@ -86,6 +86,11 @@ public CreateChatCompletionRequest(global::tryAGI.OpenAI.CreateModelResponseProp ModelResponseProperties = value; } + /// + /// + /// + public static CreateChatCompletionRequest FromModelResponseProperties(global::tryAGI.OpenAI.CreateModelResponseProperties? value) => new CreateChatCompletionRequest(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateChatCompletionRequest(global::tryAGI.OpenAI.CreateChatCompletionReq CreateChatCompletionRequestVariant2 = value; } + /// + /// + /// + public static CreateChatCompletionRequest FromCreateChatCompletionRequestVariant2(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? value) => new CreateChatCompletionRequest(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs index fc1796d7..2066b139 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs @@ -90,6 +90,11 @@ public CreateEvalItem(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? va SimpleInputMessage = value; } + /// + /// + /// + public static CreateEvalItem FromSimpleInputMessage(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? value) => new CreateEvalItem(value); + /// /// /// @@ -108,6 +113,11 @@ public CreateEvalItem(global::tryAGI.OpenAI.EvalItem? value) EvalMessageObject = value; } + /// + /// + /// + public static CreateEvalItem FromEvalMessageObject(global::tryAGI.OpenAI.EvalItem? value) => new CreateEvalItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs index 8a826727..bbc8fb69 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs @@ -86,6 +86,11 @@ public CreateModelResponseProperties(global::tryAGI.OpenAI.ModelResponseProperti ModelResponseProperties = value; } + /// + /// + /// + public static CreateModelResponseProperties FromModelResponseProperties(global::tryAGI.OpenAI.ModelResponseProperties? value) => new CreateModelResponseProperties(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateModelResponseProperties(global::tryAGI.OpenAI.CreateModelResponsePr CreateModelResponsePropertiesVariant2 = value; } + /// + /// + /// + public static CreateModelResponseProperties FromCreateModelResponsePropertiesVariant2(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? value) => new CreateModelResponseProperties(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs index a1c583cb..e44a5083 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs @@ -116,6 +116,11 @@ public CreateResponse(global::tryAGI.OpenAI.CreateModelResponseProperties? value ModelProperties = value; } + /// + /// + /// + public static CreateResponse FromModelProperties(global::tryAGI.OpenAI.CreateModelResponseProperties? value) => new CreateResponse(value); + /// /// /// @@ -134,6 +139,11 @@ public CreateResponse(global::tryAGI.OpenAI.ResponseProperties? value) Properties = value; } + /// + /// + /// + public static CreateResponse FromProperties(global::tryAGI.OpenAI.ResponseProperties? value) => new CreateResponse(value); + /// /// /// @@ -152,6 +162,11 @@ public CreateResponse(global::tryAGI.OpenAI.CreateResponseVariant3? value) CreateResponseVariant3 = value; } + /// + /// + /// + public static CreateResponse FromCreateResponseVariant3(global::tryAGI.OpenAI.CreateResponseVariant3? value) => new CreateResponse(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs index 14f390e6..d646120a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs @@ -91,6 +91,11 @@ public CreateSpeechResponseStreamEvent(global::tryAGI.OpenAI.SpeechAudioDeltaEve SpeechAudioDelta = value; } + /// + /// + /// + public static CreateSpeechResponseStreamEvent FromSpeechAudioDelta(global::tryAGI.OpenAI.SpeechAudioDeltaEvent? value) => new CreateSpeechResponseStreamEvent(value); + /// /// /// @@ -109,6 +114,11 @@ public CreateSpeechResponseStreamEvent(global::tryAGI.OpenAI.SpeechAudioDoneEven SpeechAudioDone = value; } + /// + /// + /// + public static CreateSpeechResponseStreamEvent FromSpeechAudioDone(global::tryAGI.OpenAI.SpeechAudioDoneEvent? value) => new CreateSpeechResponseStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs index 29cb298b..a78f2997 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs @@ -91,6 +91,11 @@ public CreateTranscriptionResponseDiarizedJsonUsage(global::tryAGI.OpenAI.Transc Tokens = value; } + /// + /// + /// + public static CreateTranscriptionResponseDiarizedJsonUsage FromTokens(global::tryAGI.OpenAI.TranscriptTextUsageTokens? value) => new CreateTranscriptionResponseDiarizedJsonUsage(value); + /// /// /// @@ -109,6 +114,11 @@ public CreateTranscriptionResponseDiarizedJsonUsage(global::tryAGI.OpenAI.Transc Duration = value; } + /// + /// + /// + public static CreateTranscriptionResponseDiarizedJsonUsage FromDuration(global::tryAGI.OpenAI.TranscriptTextUsageDuration? value) => new CreateTranscriptionResponseDiarizedJsonUsage(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs index 34c0425b..011653be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs @@ -121,6 +121,11 @@ public CreateTranscriptionResponseStreamEvent(global::tryAGI.OpenAI.TranscriptTe TranscriptTextSegment = value; } + /// + /// + /// + public static CreateTranscriptionResponseStreamEvent FromTranscriptTextSegment(global::tryAGI.OpenAI.TranscriptTextSegmentEvent? value) => new CreateTranscriptionResponseStreamEvent(value); + /// /// /// @@ -139,6 +144,11 @@ public CreateTranscriptionResponseStreamEvent(global::tryAGI.OpenAI.TranscriptTe TranscriptTextDelta = value; } + /// + /// + /// + public static CreateTranscriptionResponseStreamEvent FromTranscriptTextDelta(global::tryAGI.OpenAI.TranscriptTextDeltaEvent? value) => new CreateTranscriptionResponseStreamEvent(value); + /// /// /// @@ -157,6 +167,11 @@ public CreateTranscriptionResponseStreamEvent(global::tryAGI.OpenAI.TranscriptTe TranscriptTextDone = value; } + /// + /// + /// + public static CreateTranscriptionResponseStreamEvent FromTranscriptTextDone(global::tryAGI.OpenAI.TranscriptTextDoneEvent? value) => new CreateTranscriptionResponseStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs index 71e6bea7..61b9b005 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs @@ -86,6 +86,11 @@ public CustomToolCallOutputResource(global::tryAGI.OpenAI.CustomToolCallOutput? CustomToolCallOutput = value; } + /// + /// + /// + public static CustomToolCallOutputResource FromCustomToolCallOutput(global::tryAGI.OpenAI.CustomToolCallOutput? value) => new CustomToolCallOutputResource(value); + /// /// /// @@ -104,6 +109,11 @@ public CustomToolCallOutputResource(global::tryAGI.OpenAI.CustomToolCallOutputRe CustomToolCallOutputResourceVariant2 = value; } + /// + /// + /// + public static CustomToolCallOutputResource FromCustomToolCallOutputResourceVariant2(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? value) => new CustomToolCallOutputResource(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs index f221abef..11725d56 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs @@ -86,6 +86,11 @@ public CustomToolCallResource(global::tryAGI.OpenAI.CustomToolCall? value) CustomToolCall = value; } + /// + /// + /// + public static CustomToolCallResource FromCustomToolCall(global::tryAGI.OpenAI.CustomToolCall? value) => new CustomToolCallResource(value); + /// /// /// @@ -104,6 +109,11 @@ public CustomToolCallResource(global::tryAGI.OpenAI.CustomToolCallResourceVarian CustomToolCallResourceVariant2 = value; } + /// + /// + /// + public static CustomToolCallResource FromCustomToolCallResourceVariant2(global::tryAGI.OpenAI.CustomToolCallResourceVariant2? value) => new CustomToolCallResource(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs index 35b5d96c..cfcf929b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs @@ -56,6 +56,11 @@ public DeletedConversation(global::tryAGI.OpenAI.DeletedConversationResource? va Resource = value; } + /// + /// + /// + public static DeletedConversation FromResource(global::tryAGI.OpenAI.DeletedConversationResource? value) => new DeletedConversation(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs index 6aedaafc..e32f0efd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs @@ -121,6 +121,11 @@ public EnvironmentVariant1(global::tryAGI.OpenAI.ContainerAutoParam? value) ContainerAuto = value; } + /// + /// + /// + public static EnvironmentVariant1 FromContainerAuto(global::tryAGI.OpenAI.ContainerAutoParam? value) => new EnvironmentVariant1(value); + /// /// /// @@ -139,6 +144,11 @@ public EnvironmentVariant1(global::tryAGI.OpenAI.LocalEnvironmentParam? value) Local = value; } + /// + /// + /// + public static EnvironmentVariant1 FromLocal(global::tryAGI.OpenAI.LocalEnvironmentParam? value) => new EnvironmentVariant1(value); + /// /// /// @@ -157,6 +167,11 @@ public EnvironmentVariant1(global::tryAGI.OpenAI.ContainerReferenceParam? value) ContainerReference = value; } + /// + /// + /// + public static EnvironmentVariant1 FromContainerReference(global::tryAGI.OpenAI.ContainerReferenceParam? value) => new EnvironmentVariant1(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs index 317ff1f8..33472269 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs @@ -91,6 +91,11 @@ public EnvironmentVariant12(global::tryAGI.OpenAI.LocalEnvironmentResource? valu Local = value; } + /// + /// + /// + public static EnvironmentVariant12 FromLocal(global::tryAGI.OpenAI.LocalEnvironmentResource? value) => new EnvironmentVariant12(value); + /// /// /// @@ -109,6 +114,11 @@ public EnvironmentVariant12(global::tryAGI.OpenAI.ContainerReferenceResource? va ContainerReference = value; } + /// + /// + /// + public static EnvironmentVariant12 FromContainerReference(global::tryAGI.OpenAI.ContainerReferenceResource? value) => new EnvironmentVariant12(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs index aadc4cd4..e9c21aad 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs @@ -91,6 +91,11 @@ public EnvironmentVariant13(global::tryAGI.OpenAI.LocalEnvironmentParam? value) Local = value; } + /// + /// + /// + public static EnvironmentVariant13 FromLocal(global::tryAGI.OpenAI.LocalEnvironmentParam? value) => new EnvironmentVariant13(value); + /// /// /// @@ -109,6 +114,11 @@ public EnvironmentVariant13(global::tryAGI.OpenAI.ContainerReferenceParam? value ContainerReference = value; } + /// + /// + /// + public static EnvironmentVariant13 FromContainerReference(global::tryAGI.OpenAI.ContainerReferenceParam? value) => new EnvironmentVariant13(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs index c5cdf534..c8ce4267 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs @@ -57,6 +57,11 @@ public EvalGraderLabelModel(global::tryAGI.OpenAI.GraderLabelModel? value) LabelModelGrader = value; } + /// + /// + /// + public static EvalGraderLabelModel FromLabelModelGrader(global::tryAGI.OpenAI.GraderLabelModel? value) => new EvalGraderLabelModel(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs index 554d0fcd..0620db51 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs @@ -86,6 +86,11 @@ public EvalGraderPython(global::tryAGI.OpenAI.GraderPython? value) PythonGrader = value; } + /// + /// + /// + public static EvalGraderPython FromPythonGrader(global::tryAGI.OpenAI.GraderPython? value) => new EvalGraderPython(value); + /// /// /// @@ -104,6 +109,11 @@ public EvalGraderPython(global::tryAGI.OpenAI.EvalGraderPythonVariant2? value) EvalGraderPythonVariant2 = value; } + /// + /// + /// + public static EvalGraderPython FromEvalGraderPythonVariant2(global::tryAGI.OpenAI.EvalGraderPythonVariant2? value) => new EvalGraderPython(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs index cd88e720..0a8f6607 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs @@ -86,6 +86,11 @@ public EvalGraderScoreModel(global::tryAGI.OpenAI.GraderScoreModel? value) ScoreModelGrader = value; } + /// + /// + /// + public static EvalGraderScoreModel FromScoreModelGrader(global::tryAGI.OpenAI.GraderScoreModel? value) => new EvalGraderScoreModel(value); + /// /// /// @@ -104,6 +109,11 @@ public EvalGraderScoreModel(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? EvalGraderScoreModelVariant2 = value; } + /// + /// + /// + public static EvalGraderScoreModel FromEvalGraderScoreModelVariant2(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? value) => new EvalGraderScoreModel(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs index 1c802726..7fbe8d8b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs @@ -56,6 +56,11 @@ public EvalGraderStringCheck(global::tryAGI.OpenAI.GraderStringCheck? value) StringCheckGrader = value; } + /// + /// + /// + public static EvalGraderStringCheck FromStringCheckGrader(global::tryAGI.OpenAI.GraderStringCheck? value) => new EvalGraderStringCheck(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs index 44b407d8..e1650342 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs @@ -86,6 +86,11 @@ public EvalGraderTextSimilarity(global::tryAGI.OpenAI.GraderTextSimilarity? valu TextSimilarityGrader = value; } + /// + /// + /// + public static EvalGraderTextSimilarity FromTextSimilarityGrader(global::tryAGI.OpenAI.GraderTextSimilarity? value) => new EvalGraderTextSimilarity(value); + /// /// /// @@ -104,6 +109,11 @@ public EvalGraderTextSimilarity(global::tryAGI.OpenAI.EvalGraderTextSimilarityVa EvalGraderTextSimilarityVariant2 = value; } + /// + /// + /// + public static EvalGraderTextSimilarity FromEvalGraderTextSimilarityVariant2(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? value) => new EvalGraderTextSimilarity(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs index 247e0710..233aa7c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs @@ -87,6 +87,11 @@ public EvalItemContent(global::tryAGI.OpenAI.EvalItemContentItem? value) EvalContentItem = value; } + /// + /// + /// + public static EvalItemContent FromEvalContentItem(global::tryAGI.OpenAI.EvalItemContentItem? value) => new EvalItemContent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs index 7f4a3b50..18d5e477 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs @@ -176,6 +176,11 @@ public EvalItemContentItem(string? value) TextInput = value; } + /// + /// + /// + public static EvalItemContentItem FromTextInput(string? value) => new EvalItemContentItem(value); + /// /// /// @@ -194,6 +199,11 @@ public EvalItemContentItem(global::tryAGI.OpenAI.InputTextContent? value) InputText = value; } + /// + /// + /// + public static EvalItemContentItem FromInputText(global::tryAGI.OpenAI.InputTextContent? value) => new EvalItemContentItem(value); + /// /// /// @@ -212,6 +222,11 @@ public EvalItemContentItem(global::tryAGI.OpenAI.EvalItemContentOutputText? valu OutputText = value; } + /// + /// + /// + public static EvalItemContentItem FromOutputText(global::tryAGI.OpenAI.EvalItemContentOutputText? value) => new EvalItemContentItem(value); + /// /// /// @@ -230,6 +245,11 @@ public EvalItemContentItem(global::tryAGI.OpenAI.EvalItemInputImage? value) InputImage = value; } + /// + /// + /// + public static EvalItemContentItem FromInputImage(global::tryAGI.OpenAI.EvalItemInputImage? value) => new EvalItemContentItem(value); + /// /// /// @@ -248,6 +268,11 @@ public EvalItemContentItem(global::tryAGI.OpenAI.InputAudio? value) InputAudio = value; } + /// + /// + /// + public static EvalItemContentItem FromInputAudio(global::tryAGI.OpenAI.InputAudio? value) => new EvalItemContentItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs index c85f5623..ac4b2e8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs @@ -86,6 +86,11 @@ public Filters2(global::tryAGI.OpenAI.ComparisonFilter? value) ComparisonFilter = value; } + /// + /// + /// + public static Filters2 FromComparisonFilter(global::tryAGI.OpenAI.ComparisonFilter? value) => new Filters2(value); + /// /// /// @@ -104,6 +109,11 @@ public Filters2(global::tryAGI.OpenAI.CompoundFilter? value) CompoundFilter = value; } + /// + /// + /// + public static Filters2 FromCompoundFilter(global::tryAGI.OpenAI.CompoundFilter? value) => new Filters2(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs index 64468291..cf558d6a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs @@ -86,6 +86,11 @@ public FiltersItem(global::tryAGI.OpenAI.ComparisonFilter? value) ComparisonFilter = value; } + /// + /// + /// + public static FiltersItem FromComparisonFilter(global::tryAGI.OpenAI.ComparisonFilter? value) => new FiltersItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs index 3be74f28..2ab8e254 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs @@ -86,6 +86,11 @@ public FineTuneChatCompletionRequestAssistantMessage(global::tryAGI.OpenAI.FineT AssistantMessage1 = value; } + /// + /// + /// + public static FineTuneChatCompletionRequestAssistantMessage FromAssistantMessage1(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? value) => new FineTuneChatCompletionRequestAssistantMessage(value); + /// /// /// @@ -104,6 +109,11 @@ public FineTuneChatCompletionRequestAssistantMessage(global::tryAGI.OpenAI.ChatC AssistantMessage2 = value; } + /// + /// + /// + public static FineTuneChatCompletionRequestAssistantMessage FromAssistantMessage2(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? value) => new FineTuneChatCompletionRequestAssistantMessage(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs index 8181a83c..d23e4ecc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs @@ -91,6 +91,11 @@ public Format2(global::tryAGI.OpenAI.CustomTextFormatParam? value) Text = value; } + /// + /// + /// + public static Format2 FromText(global::tryAGI.OpenAI.CustomTextFormatParam? value) => new Format2(value); + /// /// /// @@ -109,6 +114,11 @@ public Format2(global::tryAGI.OpenAI.CustomGrammarFormatParam? value) Grammar = value; } + /// + /// + /// + public static Format2 FromGrammar(global::tryAGI.OpenAI.CustomGrammarFormatParam? value) => new Format2(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs index 5ce13b19..46bf7c38 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs @@ -121,6 +121,11 @@ public FunctionAndCustomToolCallOutput(global::tryAGI.OpenAI.InputTextContent? v InputText = value; } + /// + /// + /// + public static FunctionAndCustomToolCallOutput FromInputText(global::tryAGI.OpenAI.InputTextContent? value) => new FunctionAndCustomToolCallOutput(value); + /// /// /// @@ -139,6 +144,11 @@ public FunctionAndCustomToolCallOutput(global::tryAGI.OpenAI.InputImageContent? InputImage = value; } + /// + /// + /// + public static FunctionAndCustomToolCallOutput FromInputImage(global::tryAGI.OpenAI.InputImageContent? value) => new FunctionAndCustomToolCallOutput(value); + /// /// /// @@ -157,6 +167,11 @@ public FunctionAndCustomToolCallOutput(global::tryAGI.OpenAI.InputFileContent? v InputFile = value; } + /// + /// + /// + public static FunctionAndCustomToolCallOutput FromInputFile(global::tryAGI.OpenAI.InputFileContent? value) => new FunctionAndCustomToolCallOutput(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs index d2e8c4b5..b4ff1977 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs @@ -91,6 +91,11 @@ public FunctionShellCallOutputOutcomeParam(global::tryAGI.OpenAI.FunctionShellCa Timeout = value; } + /// + /// + /// + public static FunctionShellCallOutputOutcomeParam FromTimeout(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? value) => new FunctionShellCallOutputOutcomeParam(value); + /// /// /// @@ -109,6 +114,11 @@ public FunctionShellCallOutputOutcomeParam(global::tryAGI.OpenAI.FunctionShellCa Exit = value; } + /// + /// + /// + public static FunctionShellCallOutputOutcomeParam FromExit(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? value) => new FunctionShellCallOutputOutcomeParam(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs index 702125ba..d6050577 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs @@ -86,6 +86,11 @@ public FunctionToolCallOutputResource(global::tryAGI.OpenAI.FunctionToolCallOutp FunctionToolCallOutput = value; } + /// + /// + /// + public static FunctionToolCallOutputResource FromFunctionToolCallOutput(global::tryAGI.OpenAI.FunctionToolCallOutput? value) => new FunctionToolCallOutputResource(value); + /// /// /// @@ -104,6 +109,11 @@ public FunctionToolCallOutputResource(global::tryAGI.OpenAI.FunctionToolCallOutp FunctionToolCallOutputResourceVariant2 = value; } + /// + /// + /// + public static FunctionToolCallOutputResource FromFunctionToolCallOutputResourceVariant2(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? value) => new FunctionToolCallOutputResource(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs index d41d580d..fa8c73ad 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs @@ -87,6 +87,11 @@ public FunctionToolCallResource(global::tryAGI.OpenAI.FunctionToolCall? value) FunctionToolCall = value; } + /// + /// + /// + public static FunctionToolCallResource FromFunctionToolCall(global::tryAGI.OpenAI.FunctionToolCall? value) => new FunctionToolCallResource(value); + /// /// /// @@ -105,6 +110,11 @@ public FunctionToolCallResource(global::tryAGI.OpenAI.FunctionToolCallResourceVa FunctionToolCallResourceVariant2 = value; } + /// + /// + /// + public static FunctionToolCallResource FromFunctionToolCallResourceVariant2(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? value) => new FunctionToolCallResource(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs index d46a729d..85001d45 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs @@ -91,6 +91,11 @@ public ImageEditStreamEvent(global::tryAGI.OpenAI.ImageEditPartialImageEvent? va ImageEditPartialImage = value; } + /// + /// + /// + public static ImageEditStreamEvent FromImageEditPartialImage(global::tryAGI.OpenAI.ImageEditPartialImageEvent? value) => new ImageEditStreamEvent(value); + /// /// /// @@ -109,6 +114,11 @@ public ImageEditStreamEvent(global::tryAGI.OpenAI.ImageEditCompletedEvent? value ImageEditCompleted = value; } + /// + /// + /// + public static ImageEditStreamEvent FromImageEditCompleted(global::tryAGI.OpenAI.ImageEditCompletedEvent? value) => new ImageEditStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs index 3f79c84b..a0d50d73 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs @@ -91,6 +91,11 @@ public ImageGenStreamEvent(global::tryAGI.OpenAI.ImageGenPartialImageEvent? valu ImageGenerationPartialImage = value; } + /// + /// + /// + public static ImageGenStreamEvent FromImageGenerationPartialImage(global::tryAGI.OpenAI.ImageGenPartialImageEvent? value) => new ImageGenStreamEvent(value); + /// /// /// @@ -109,6 +114,11 @@ public ImageGenStreamEvent(global::tryAGI.OpenAI.ImageGenCompletedEvent? value) ImageGenerationCompleted = value; } + /// + /// + /// + public static ImageGenStreamEvent FromImageGenerationCompleted(global::tryAGI.OpenAI.ImageGenCompletedEvent? value) => new ImageGenStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs index 05509192..80f82bb5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs @@ -121,6 +121,11 @@ public InputContent(global::tryAGI.OpenAI.InputTextContent? value) InputText = value; } + /// + /// + /// + public static InputContent FromInputText(global::tryAGI.OpenAI.InputTextContent? value) => new InputContent(value); + /// /// /// @@ -139,6 +144,11 @@ public InputContent(global::tryAGI.OpenAI.InputImageContent? value) InputImage = value; } + /// + /// + /// + public static InputContent FromInputImage(global::tryAGI.OpenAI.InputImageContent? value) => new InputContent(value); + /// /// /// @@ -157,6 +167,11 @@ public InputContent(global::tryAGI.OpenAI.InputFileContent? value) InputFile = value; } + /// + /// + /// + public static InputContent FromInputFile(global::tryAGI.OpenAI.InputFileContent? value) => new InputContent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs index 937d75bc..97c2cc3f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs @@ -122,6 +122,11 @@ public InputItem(global::tryAGI.OpenAI.EasyInputMessage? value) Message = value; } + /// + /// + /// + public static InputItem FromMessage(global::tryAGI.OpenAI.EasyInputMessage? value) => new InputItem(value); + /// /// /// @@ -140,6 +145,11 @@ public InputItem(global::tryAGI.OpenAI.Item? value) Item = value; } + /// + /// + /// + public static InputItem FromItem(global::tryAGI.OpenAI.Item? value) => new InputItem(value); + /// /// /// @@ -158,6 +168,11 @@ public InputItem(global::tryAGI.OpenAI.ItemReferenceParam? value) ItemReference = value; } + /// + /// + /// + public static InputItem FromItemReference(global::tryAGI.OpenAI.ItemReferenceParam? value) => new InputItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs index 84771b06..a62ddde0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs @@ -88,6 +88,11 @@ public InputMessageResource(global::tryAGI.OpenAI.InputMessage? value) InputMessage = value; } + /// + /// + /// + public static InputMessageResource FromInputMessage(global::tryAGI.OpenAI.InputMessage? value) => new InputMessageResource(value); + /// /// /// @@ -106,6 +111,11 @@ public InputMessageResource(global::tryAGI.OpenAI.InputMessageResourceVariant2? InputMessageResourceVariant2 = value; } + /// + /// + /// + public static InputMessageResource FromInputMessageResourceVariant2(global::tryAGI.OpenAI.InputMessageResourceVariant2? value) => new InputMessageResource(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs index e9edb013..f8a9eb46 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs @@ -94,6 +94,11 @@ public InputParam(string? value) TextInput = value; } + /// + /// + /// + public static InputParam FromTextInput(string? value) => new InputParam(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs index 9eb8595a..686ead6f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs @@ -820,6 +820,11 @@ public Item(global::tryAGI.OpenAI.InputMessage? value) Message1 = value; } + /// + /// + /// + public static Item FromMessage1(global::tryAGI.OpenAI.InputMessage? value) => new Item(value); + /// /// /// @@ -838,6 +843,11 @@ public Item(global::tryAGI.OpenAI.OutputMessage? value) Message2 = value; } + /// + /// + /// + public static Item FromMessage2(global::tryAGI.OpenAI.OutputMessage? value) => new Item(value); + /// /// /// @@ -856,6 +866,11 @@ public Item(global::tryAGI.OpenAI.FileSearchToolCall? value) FileSearchCall = value; } + /// + /// + /// + public static Item FromFileSearchCall(global::tryAGI.OpenAI.FileSearchToolCall? value) => new Item(value); + /// /// /// @@ -874,6 +889,11 @@ public Item(global::tryAGI.OpenAI.ComputerToolCall? value) ComputerCall = value; } + /// + /// + /// + public static Item FromComputerCall(global::tryAGI.OpenAI.ComputerToolCall? value) => new Item(value); + /// /// /// @@ -892,6 +912,11 @@ public Item(global::tryAGI.OpenAI.ComputerCallOutputItemParam? value) ComputerCallOutput = value; } + /// + /// + /// + public static Item FromComputerCallOutput(global::tryAGI.OpenAI.ComputerCallOutputItemParam? value) => new Item(value); + /// /// /// @@ -910,6 +935,11 @@ public Item(global::tryAGI.OpenAI.WebSearchToolCall? value) WebSearchCall = value; } + /// + /// + /// + public static Item FromWebSearchCall(global::tryAGI.OpenAI.WebSearchToolCall? value) => new Item(value); + /// /// /// @@ -928,6 +958,11 @@ public Item(global::tryAGI.OpenAI.FunctionToolCall? value) FunctionCall = value; } + /// + /// + /// + public static Item FromFunctionCall(global::tryAGI.OpenAI.FunctionToolCall? value) => new Item(value); + /// /// /// @@ -946,6 +981,11 @@ public Item(global::tryAGI.OpenAI.FunctionCallOutputItemParam? value) FunctionCallOutput = value; } + /// + /// + /// + public static Item FromFunctionCallOutput(global::tryAGI.OpenAI.FunctionCallOutputItemParam? value) => new Item(value); + /// /// /// @@ -964,6 +1004,11 @@ public Item(global::tryAGI.OpenAI.ToolSearchCallItemParam? value) ToolSearchCall = value; } + /// + /// + /// + public static Item FromToolSearchCall(global::tryAGI.OpenAI.ToolSearchCallItemParam? value) => new Item(value); + /// /// /// @@ -982,6 +1027,11 @@ public Item(global::tryAGI.OpenAI.ToolSearchOutputItemParam? value) ToolSearchOutput = value; } + /// + /// + /// + public static Item FromToolSearchOutput(global::tryAGI.OpenAI.ToolSearchOutputItemParam? value) => new Item(value); + /// /// /// @@ -1000,6 +1050,11 @@ public Item(global::tryAGI.OpenAI.ReasoningItem? value) Reasoning = value; } + /// + /// + /// + public static Item FromReasoning(global::tryAGI.OpenAI.ReasoningItem? value) => new Item(value); + /// /// /// @@ -1018,6 +1073,11 @@ public Item(global::tryAGI.OpenAI.CompactionSummaryItemParam? value) Compaction = value; } + /// + /// + /// + public static Item FromCompaction(global::tryAGI.OpenAI.CompactionSummaryItemParam? value) => new Item(value); + /// /// /// @@ -1036,6 +1096,11 @@ public Item(global::tryAGI.OpenAI.ImageGenToolCall? value) ImageGenerationCall = value; } + /// + /// + /// + public static Item FromImageGenerationCall(global::tryAGI.OpenAI.ImageGenToolCall? value) => new Item(value); + /// /// /// @@ -1054,6 +1119,11 @@ public Item(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) CodeInterpreterCall = value; } + /// + /// + /// + public static Item FromCodeInterpreterCall(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) => new Item(value); + /// /// /// @@ -1072,6 +1142,11 @@ public Item(global::tryAGI.OpenAI.LocalShellToolCall? value) LocalShellCall = value; } + /// + /// + /// + public static Item FromLocalShellCall(global::tryAGI.OpenAI.LocalShellToolCall? value) => new Item(value); + /// /// /// @@ -1090,6 +1165,11 @@ public Item(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) LocalShellCallOutput = value; } + /// + /// + /// + public static Item FromLocalShellCallOutput(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) => new Item(value); + /// /// /// @@ -1108,6 +1188,11 @@ public Item(global::tryAGI.OpenAI.FunctionShellCallItemParam? value) ShellCall = value; } + /// + /// + /// + public static Item FromShellCall(global::tryAGI.OpenAI.FunctionShellCallItemParam? value) => new Item(value); + /// /// /// @@ -1126,6 +1211,11 @@ public Item(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? value) ShellCallOutput = value; } + /// + /// + /// + public static Item FromShellCallOutput(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? value) => new Item(value); + /// /// /// @@ -1144,6 +1234,11 @@ public Item(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? value) ApplyPatchCall = value; } + /// + /// + /// + public static Item FromApplyPatchCall(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? value) => new Item(value); + /// /// /// @@ -1162,6 +1257,11 @@ public Item(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? value) ApplyPatchCallOutput = value; } + /// + /// + /// + public static Item FromApplyPatchCallOutput(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? value) => new Item(value); + /// /// /// @@ -1180,6 +1280,11 @@ public Item(global::tryAGI.OpenAI.MCPListTools? value) McpListTools = value; } + /// + /// + /// + public static Item FromMcpListTools(global::tryAGI.OpenAI.MCPListTools? value) => new Item(value); + /// /// /// @@ -1198,6 +1303,11 @@ public Item(global::tryAGI.OpenAI.MCPApprovalRequest? value) McpApprovalRequest = value; } + /// + /// + /// + public static Item FromMcpApprovalRequest(global::tryAGI.OpenAI.MCPApprovalRequest? value) => new Item(value); + /// /// /// @@ -1216,6 +1326,11 @@ public Item(global::tryAGI.OpenAI.MCPApprovalResponse? value) McpApprovalResponse = value; } + /// + /// + /// + public static Item FromMcpApprovalResponse(global::tryAGI.OpenAI.MCPApprovalResponse? value) => new Item(value); + /// /// /// @@ -1234,6 +1349,11 @@ public Item(global::tryAGI.OpenAI.MCPToolCall? value) McpCall = value; } + /// + /// + /// + public static Item FromMcpCall(global::tryAGI.OpenAI.MCPToolCall? value) => new Item(value); + /// /// /// @@ -1252,6 +1372,11 @@ public Item(global::tryAGI.OpenAI.CustomToolCallOutput? value) CustomToolCallOutput = value; } + /// + /// + /// + public static Item FromCustomToolCallOutput(global::tryAGI.OpenAI.CustomToolCallOutput? value) => new Item(value); + /// /// /// @@ -1270,6 +1395,11 @@ public Item(global::tryAGI.OpenAI.CustomToolCall? value) CustomToolCall = value; } + /// + /// + /// + public static Item FromCustomToolCall(global::tryAGI.OpenAI.CustomToolCall? value) => new Item(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs index bcd27170..00ec8f4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs @@ -783,6 +783,11 @@ public ItemField(global::tryAGI.OpenAI.Message? value) Message = value; } + /// + /// + /// + public static ItemField FromMessage(global::tryAGI.OpenAI.Message? value) => new ItemField(value); + /// /// /// @@ -801,6 +806,11 @@ public ItemField(global::tryAGI.OpenAI.FunctionToolCall? value) FunctionCall = value; } + /// + /// + /// + public static ItemField FromFunctionCall(global::tryAGI.OpenAI.FunctionToolCall? value) => new ItemField(value); + /// /// /// @@ -819,6 +829,11 @@ public ItemField(global::tryAGI.OpenAI.ToolSearchCall? value) ToolSearchCall = value; } + /// + /// + /// + public static ItemField FromToolSearchCall(global::tryAGI.OpenAI.ToolSearchCall? value) => new ItemField(value); + /// /// /// @@ -837,6 +852,11 @@ public ItemField(global::tryAGI.OpenAI.ToolSearchOutput? value) ToolSearchOutput = value; } + /// + /// + /// + public static ItemField FromToolSearchOutput(global::tryAGI.OpenAI.ToolSearchOutput? value) => new ItemField(value); + /// /// /// @@ -855,6 +875,11 @@ public ItemField(global::tryAGI.OpenAI.FunctionToolCallOutput? value) FunctionCallOutput = value; } + /// + /// + /// + public static ItemField FromFunctionCallOutput(global::tryAGI.OpenAI.FunctionToolCallOutput? value) => new ItemField(value); + /// /// /// @@ -873,6 +898,11 @@ public ItemField(global::tryAGI.OpenAI.FileSearchToolCall? value) FileSearchCall = value; } + /// + /// + /// + public static ItemField FromFileSearchCall(global::tryAGI.OpenAI.FileSearchToolCall? value) => new ItemField(value); + /// /// /// @@ -891,6 +921,11 @@ public ItemField(global::tryAGI.OpenAI.WebSearchToolCall? value) WebSearchCall = value; } + /// + /// + /// + public static ItemField FromWebSearchCall(global::tryAGI.OpenAI.WebSearchToolCall? value) => new ItemField(value); + /// /// /// @@ -909,6 +944,11 @@ public ItemField(global::tryAGI.OpenAI.ImageGenToolCall? value) ImageGenerationCall = value; } + /// + /// + /// + public static ItemField FromImageGenerationCall(global::tryAGI.OpenAI.ImageGenToolCall? value) => new ItemField(value); + /// /// /// @@ -927,6 +967,11 @@ public ItemField(global::tryAGI.OpenAI.ComputerToolCall? value) ComputerCall = value; } + /// + /// + /// + public static ItemField FromComputerCall(global::tryAGI.OpenAI.ComputerToolCall? value) => new ItemField(value); + /// /// /// @@ -945,6 +990,11 @@ public ItemField(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) ComputerToolCallOutputResource = value; } + /// + /// + /// + public static ItemField FromComputerToolCallOutputResource(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) => new ItemField(value); + /// /// /// @@ -963,6 +1013,11 @@ public ItemField(global::tryAGI.OpenAI.ReasoningItem? value) Reasoning = value; } + /// + /// + /// + public static ItemField FromReasoning(global::tryAGI.OpenAI.ReasoningItem? value) => new ItemField(value); + /// /// /// @@ -981,6 +1036,11 @@ public ItemField(global::tryAGI.OpenAI.CompactionBody? value) Compaction = value; } + /// + /// + /// + public static ItemField FromCompaction(global::tryAGI.OpenAI.CompactionBody? value) => new ItemField(value); + /// /// /// @@ -999,6 +1059,11 @@ public ItemField(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) CodeInterpreterCall = value; } + /// + /// + /// + public static ItemField FromCodeInterpreterCall(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) => new ItemField(value); + /// /// /// @@ -1017,6 +1082,11 @@ public ItemField(global::tryAGI.OpenAI.LocalShellToolCall? value) LocalShellCall = value; } + /// + /// + /// + public static ItemField FromLocalShellCall(global::tryAGI.OpenAI.LocalShellToolCall? value) => new ItemField(value); + /// /// /// @@ -1035,6 +1105,11 @@ public ItemField(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) LocalShellCallOutput = value; } + /// + /// + /// + public static ItemField FromLocalShellCallOutput(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) => new ItemField(value); + /// /// /// @@ -1053,6 +1128,11 @@ public ItemField(global::tryAGI.OpenAI.FunctionShellCall? value) ShellCall = value; } + /// + /// + /// + public static ItemField FromShellCall(global::tryAGI.OpenAI.FunctionShellCall? value) => new ItemField(value); + /// /// /// @@ -1071,6 +1151,11 @@ public ItemField(global::tryAGI.OpenAI.FunctionShellCallOutput? value) ShellCallOutput = value; } + /// + /// + /// + public static ItemField FromShellCallOutput(global::tryAGI.OpenAI.FunctionShellCallOutput? value) => new ItemField(value); + /// /// /// @@ -1089,6 +1174,11 @@ public ItemField(global::tryAGI.OpenAI.ApplyPatchToolCall? value) ApplyPatchCall = value; } + /// + /// + /// + public static ItemField FromApplyPatchCall(global::tryAGI.OpenAI.ApplyPatchToolCall? value) => new ItemField(value); + /// /// /// @@ -1107,6 +1197,11 @@ public ItemField(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) ApplyPatchCallOutput = value; } + /// + /// + /// + public static ItemField FromApplyPatchCallOutput(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) => new ItemField(value); + /// /// /// @@ -1125,6 +1220,11 @@ public ItemField(global::tryAGI.OpenAI.MCPListTools? value) McpListTools = value; } + /// + /// + /// + public static ItemField FromMcpListTools(global::tryAGI.OpenAI.MCPListTools? value) => new ItemField(value); + /// /// /// @@ -1143,6 +1243,11 @@ public ItemField(global::tryAGI.OpenAI.MCPApprovalRequest? value) McpApprovalRequest = value; } + /// + /// + /// + public static ItemField FromMcpApprovalRequest(global::tryAGI.OpenAI.MCPApprovalRequest? value) => new ItemField(value); + /// /// /// @@ -1161,6 +1266,11 @@ public ItemField(global::tryAGI.OpenAI.MCPApprovalResponseResource? value) McpApprovalResponse = value; } + /// + /// + /// + public static ItemField FromMcpApprovalResponse(global::tryAGI.OpenAI.MCPApprovalResponseResource? value) => new ItemField(value); + /// /// /// @@ -1179,6 +1289,11 @@ public ItemField(global::tryAGI.OpenAI.MCPToolCall? value) McpCall = value; } + /// + /// + /// + public static ItemField FromMcpCall(global::tryAGI.OpenAI.MCPToolCall? value) => new ItemField(value); + /// /// /// @@ -1197,6 +1312,11 @@ public ItemField(global::tryAGI.OpenAI.CustomToolCall? value) CustomToolCall = value; } + /// + /// + /// + public static ItemField FromCustomToolCall(global::tryAGI.OpenAI.CustomToolCall? value) => new ItemField(value); + /// /// /// @@ -1215,6 +1335,11 @@ public ItemField(global::tryAGI.OpenAI.CustomToolCallOutput? value) CustomToolCallOutput = value; } + /// + /// + /// + public static ItemField FromCustomToolCallOutput(global::tryAGI.OpenAI.CustomToolCallOutput? value) => new ItemField(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs index bc221ae4..fed56a02 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs @@ -812,6 +812,11 @@ public ItemResource(global::tryAGI.OpenAI.InputMessageResource? value) InputMessage = value; } + /// + /// + /// + public static ItemResource FromInputMessage(global::tryAGI.OpenAI.InputMessageResource? value) => new ItemResource(value); + /// /// /// @@ -830,6 +835,11 @@ public ItemResource(global::tryAGI.OpenAI.OutputMessage? value) Message = value; } + /// + /// + /// + public static ItemResource FromMessage(global::tryAGI.OpenAI.OutputMessage? value) => new ItemResource(value); + /// /// /// @@ -848,6 +858,11 @@ public ItemResource(global::tryAGI.OpenAI.FileSearchToolCall? value) FileSearchCall = value; } + /// + /// + /// + public static ItemResource FromFileSearchCall(global::tryAGI.OpenAI.FileSearchToolCall? value) => new ItemResource(value); + /// /// /// @@ -866,6 +881,11 @@ public ItemResource(global::tryAGI.OpenAI.ComputerToolCall? value) ComputerCall = value; } + /// + /// + /// + public static ItemResource FromComputerCall(global::tryAGI.OpenAI.ComputerToolCall? value) => new ItemResource(value); + /// /// /// @@ -884,6 +904,11 @@ public ItemResource(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) ComputerToolCallOutput = value; } + /// + /// + /// + public static ItemResource FromComputerToolCallOutput(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) => new ItemResource(value); + /// /// /// @@ -902,6 +927,11 @@ public ItemResource(global::tryAGI.OpenAI.WebSearchToolCall? value) WebSearchCall = value; } + /// + /// + /// + public static ItemResource FromWebSearchCall(global::tryAGI.OpenAI.WebSearchToolCall? value) => new ItemResource(value); + /// /// /// @@ -920,6 +950,11 @@ public ItemResource(global::tryAGI.OpenAI.FunctionToolCallResource? value) FunctionToolCall = value; } + /// + /// + /// + public static ItemResource FromFunctionToolCall(global::tryAGI.OpenAI.FunctionToolCallResource? value) => new ItemResource(value); + /// /// /// @@ -938,6 +973,11 @@ public ItemResource(global::tryAGI.OpenAI.FunctionToolCallOutputResource? value) FunctionToolCallOutput = value; } + /// + /// + /// + public static ItemResource FromFunctionToolCallOutput(global::tryAGI.OpenAI.FunctionToolCallOutputResource? value) => new ItemResource(value); + /// /// /// @@ -956,6 +996,11 @@ public ItemResource(global::tryAGI.OpenAI.ToolSearchCall? value) ToolSearchCall = value; } + /// + /// + /// + public static ItemResource FromToolSearchCall(global::tryAGI.OpenAI.ToolSearchCall? value) => new ItemResource(value); + /// /// /// @@ -974,6 +1019,11 @@ public ItemResource(global::tryAGI.OpenAI.ToolSearchOutput? value) ToolSearchOutput = value; } + /// + /// + /// + public static ItemResource FromToolSearchOutput(global::tryAGI.OpenAI.ToolSearchOutput? value) => new ItemResource(value); + /// /// /// @@ -992,6 +1042,11 @@ public ItemResource(global::tryAGI.OpenAI.ReasoningItem? value) Reasoning = value; } + /// + /// + /// + public static ItemResource FromReasoning(global::tryAGI.OpenAI.ReasoningItem? value) => new ItemResource(value); + /// /// /// @@ -1010,6 +1065,11 @@ public ItemResource(global::tryAGI.OpenAI.CompactionBody? value) Compaction = value; } + /// + /// + /// + public static ItemResource FromCompaction(global::tryAGI.OpenAI.CompactionBody? value) => new ItemResource(value); + /// /// /// @@ -1028,6 +1088,11 @@ public ItemResource(global::tryAGI.OpenAI.ImageGenToolCall? value) ImageGenerationCall = value; } + /// + /// + /// + public static ItemResource FromImageGenerationCall(global::tryAGI.OpenAI.ImageGenToolCall? value) => new ItemResource(value); + /// /// /// @@ -1046,6 +1111,11 @@ public ItemResource(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) CodeInterpreterCall = value; } + /// + /// + /// + public static ItemResource FromCodeInterpreterCall(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) => new ItemResource(value); + /// /// /// @@ -1064,6 +1134,11 @@ public ItemResource(global::tryAGI.OpenAI.LocalShellToolCall? value) LocalShellCall = value; } + /// + /// + /// + public static ItemResource FromLocalShellCall(global::tryAGI.OpenAI.LocalShellToolCall? value) => new ItemResource(value); + /// /// /// @@ -1082,6 +1157,11 @@ public ItemResource(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) LocalShellCallOutput = value; } + /// + /// + /// + public static ItemResource FromLocalShellCallOutput(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) => new ItemResource(value); + /// /// /// @@ -1100,6 +1180,11 @@ public ItemResource(global::tryAGI.OpenAI.FunctionShellCall? value) ShellCall = value; } + /// + /// + /// + public static ItemResource FromShellCall(global::tryAGI.OpenAI.FunctionShellCall? value) => new ItemResource(value); + /// /// /// @@ -1118,6 +1203,11 @@ public ItemResource(global::tryAGI.OpenAI.FunctionShellCallOutput? value) ShellCallOutput = value; } + /// + /// + /// + public static ItemResource FromShellCallOutput(global::tryAGI.OpenAI.FunctionShellCallOutput? value) => new ItemResource(value); + /// /// /// @@ -1136,6 +1226,11 @@ public ItemResource(global::tryAGI.OpenAI.ApplyPatchToolCall? value) ApplyPatchCall = value; } + /// + /// + /// + public static ItemResource FromApplyPatchCall(global::tryAGI.OpenAI.ApplyPatchToolCall? value) => new ItemResource(value); + /// /// /// @@ -1154,6 +1249,11 @@ public ItemResource(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) ApplyPatchCallOutput = value; } + /// + /// + /// + public static ItemResource FromApplyPatchCallOutput(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) => new ItemResource(value); + /// /// /// @@ -1172,6 +1272,11 @@ public ItemResource(global::tryAGI.OpenAI.MCPListTools? value) McpListTools = value; } + /// + /// + /// + public static ItemResource FromMcpListTools(global::tryAGI.OpenAI.MCPListTools? value) => new ItemResource(value); + /// /// /// @@ -1190,6 +1295,11 @@ public ItemResource(global::tryAGI.OpenAI.MCPApprovalRequest? value) McpApprovalRequest = value; } + /// + /// + /// + public static ItemResource FromMcpApprovalRequest(global::tryAGI.OpenAI.MCPApprovalRequest? value) => new ItemResource(value); + /// /// /// @@ -1208,6 +1318,11 @@ public ItemResource(global::tryAGI.OpenAI.MCPApprovalResponseResource? value) McpApprovalResponse = value; } + /// + /// + /// + public static ItemResource FromMcpApprovalResponse(global::tryAGI.OpenAI.MCPApprovalResponseResource? value) => new ItemResource(value); + /// /// /// @@ -1226,6 +1341,11 @@ public ItemResource(global::tryAGI.OpenAI.MCPToolCall? value) McpCall = value; } + /// + /// + /// + public static ItemResource FromMcpCall(global::tryAGI.OpenAI.MCPToolCall? value) => new ItemResource(value); + /// /// /// @@ -1244,6 +1364,11 @@ public ItemResource(global::tryAGI.OpenAI.CustomToolCallResource? value) ResponseCustomToolCallItem = value; } + /// + /// + /// + public static ItemResource FromResponseCustomToolCallItem(global::tryAGI.OpenAI.CustomToolCallResource? value) => new ItemResource(value); + /// /// /// @@ -1262,6 +1387,11 @@ public ItemResource(global::tryAGI.OpenAI.CustomToolCallOutputResource? value) ResponseCustomToolCallOutputItem = value; } + /// + /// + /// + public static ItemResource FromResponseCustomToolCallOutputItem(global::tryAGI.OpenAI.CustomToolCallOutputResource? value) => new ItemResource(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs index 6115b61d..b31aa070 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs @@ -176,6 +176,11 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant1? valu MessageStreamEventVariant1 = value; } + /// + /// + /// + public static MessageStreamEvent FromMessageStreamEventVariant1(global::tryAGI.OpenAI.MessageStreamEventVariant1? value) => new MessageStreamEvent(value); + /// /// /// @@ -194,6 +199,11 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant2? valu MessageStreamEventVariant2 = value; } + /// + /// + /// + public static MessageStreamEvent FromMessageStreamEventVariant2(global::tryAGI.OpenAI.MessageStreamEventVariant2? value) => new MessageStreamEvent(value); + /// /// /// @@ -212,6 +222,11 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant3? valu MessageStreamEventVariant3 = value; } + /// + /// + /// + public static MessageStreamEvent FromMessageStreamEventVariant3(global::tryAGI.OpenAI.MessageStreamEventVariant3? value) => new MessageStreamEvent(value); + /// /// /// @@ -230,6 +245,11 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant4? valu MessageStreamEventVariant4 = value; } + /// + /// + /// + public static MessageStreamEvent FromMessageStreamEventVariant4(global::tryAGI.OpenAI.MessageStreamEventVariant4? value) => new MessageStreamEvent(value); + /// /// /// @@ -248,6 +268,11 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant5? valu MessageStreamEventVariant5 = value; } + /// + /// + /// + public static MessageStreamEvent FromMessageStreamEventVariant5(global::tryAGI.OpenAI.MessageStreamEventVariant5? value) => new MessageStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs index 6f4d910e..3ca2642b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs @@ -86,6 +86,11 @@ public ModelIds(global::tryAGI.OpenAI.ModelIdsShared? value) Shared = value; } + /// + /// + /// + public static ModelIds FromShared(global::tryAGI.OpenAI.ModelIdsShared? value) => new ModelIds(value); + /// /// /// @@ -104,6 +109,11 @@ public ModelIds(global::tryAGI.OpenAI.ModelIdsResponses? value) Responses = value; } + /// + /// + /// + public static ModelIds FromResponses(global::tryAGI.OpenAI.ModelIdsResponses? value) => new ModelIds(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs index 7e5b2f85..68231774 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs @@ -116,6 +116,11 @@ public ModelIdsCompaction(global::tryAGI.OpenAI.ModelIdsResponses? value) Responses = value; } + /// + /// + /// + public static ModelIdsCompaction FromResponses(global::tryAGI.OpenAI.ModelIdsResponses? value) => new ModelIdsCompaction(value); + /// /// /// @@ -134,6 +139,11 @@ public ModelIdsCompaction(string? value) ModelIdsCompactionVariant2 = value; } + /// + /// + /// + public static ModelIdsCompaction FromModelIdsCompactionVariant2(string? value) => new ModelIdsCompaction(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs index ad38179b..da8740cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs @@ -86,6 +86,11 @@ public ModelIdsResponses(global::tryAGI.OpenAI.ModelIdsShared? value) Shared = value; } + /// + /// + /// + public static ModelIdsResponses FromShared(global::tryAGI.OpenAI.ModelIdsShared? value) => new ModelIdsResponses(value); + /// /// /// @@ -104,6 +109,11 @@ public ModelIdsResponses(global::tryAGI.OpenAI.ModelIdsResponsesEnum? value) ResponsesOnlyModel = value; } + /// + /// + /// + public static ModelIdsResponses FromResponsesOnlyModel(global::tryAGI.OpenAI.ModelIdsResponsesEnum? value) => new ModelIdsResponses(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs index 13a33ee3..a1daa1aa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs @@ -86,6 +86,11 @@ public ModelIdsShared(string? value) ModelIdsSharedVariant1 = value; } + /// + /// + /// + public static ModelIdsShared FromModelIdsSharedVariant1(string? value) => new ModelIdsShared(value); + /// /// /// @@ -104,6 +109,11 @@ public ModelIdsShared(global::tryAGI.OpenAI.ModelIdsSharedEnum? value) Enum = value; } + /// + /// + /// + public static ModelIdsShared FromEnum(global::tryAGI.OpenAI.ModelIdsSharedEnum? value) => new ModelIdsShared(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs index d92911c6..02c13545 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs @@ -91,6 +91,11 @@ public NetworkPolicy(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Disabled = value; } + /// + /// + /// + public static NetworkPolicy FromDisabled(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? value) => new NetworkPolicy(value); + /// /// /// @@ -109,6 +114,11 @@ public NetworkPolicy(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? Allowlist = value; } + /// + /// + /// + public static NetworkPolicy FromAllowlist(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? value) => new NetworkPolicy(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs index c148d874..dd2c9532 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs @@ -91,6 +91,11 @@ public NetworkPolicy2(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Disabled = value; } + /// + /// + /// + public static NetworkPolicy2 FromDisabled(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? value) => new NetworkPolicy2(value); + /// /// /// @@ -109,6 +114,11 @@ public NetworkPolicy2(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam Allowlist = value; } + /// + /// + /// + public static NetworkPolicy2 FromAllowlist(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? value) => new NetworkPolicy2(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs index 5dff4aa5..9804f634 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs @@ -91,6 +91,11 @@ public NetworkPolicy3(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Disabled = value; } + /// + /// + /// + public static NetworkPolicy3 FromDisabled(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? value) => new NetworkPolicy3(value); + /// /// /// @@ -109,6 +114,11 @@ public NetworkPolicy3(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam Allowlist = value; } + /// + /// + /// + public static NetworkPolicy3 FromAllowlist(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? value) => new NetworkPolicy3(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs index 380e929b..03bbdecb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs @@ -121,6 +121,11 @@ public Operation(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? value) CreateFile = value; } + /// + /// + /// + public static Operation FromCreateFile(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? value) => new Operation(value); + /// /// /// @@ -139,6 +144,11 @@ public Operation(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? value) DeleteFile = value; } + /// + /// + /// + public static Operation FromDeleteFile(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? value) => new Operation(value); + /// /// /// @@ -157,6 +167,11 @@ public Operation(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? value) UpdateFile = value; } + /// + /// + /// + public static Operation FromUpdateFile(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? value) => new Operation(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs index e41b9c1e..52a7644e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs @@ -91,6 +91,11 @@ public Outcome(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? valu Timeout = value; } + /// + /// + /// + public static Outcome FromTimeout(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? value) => new Outcome(value); + /// /// /// @@ -109,6 +114,11 @@ public Outcome(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? value) Exit = value; } + /// + /// + /// + public static Outcome FromExit(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? value) => new Outcome(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs index 48f53889..264afaca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs @@ -121,6 +121,11 @@ public OutputContent(global::tryAGI.OpenAI.OutputTextContent? value) OutputText = value; } + /// + /// + /// + public static OutputContent FromOutputText(global::tryAGI.OpenAI.OutputTextContent? value) => new OutputContent(value); + /// /// /// @@ -139,6 +144,11 @@ public OutputContent(global::tryAGI.OpenAI.RefusalContent? value) Refusal = value; } + /// + /// + /// + public static OutputContent FromRefusal(global::tryAGI.OpenAI.RefusalContent? value) => new OutputContent(value); + /// /// /// @@ -157,6 +167,11 @@ public OutputContent(global::tryAGI.OpenAI.ReasoningTextContent? value) ReasoningText = value; } + /// + /// + /// + public static OutputContent FromReasoningText(global::tryAGI.OpenAI.ReasoningTextContent? value) => new OutputContent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs index 8ea0bfbf..30fe154f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs @@ -783,6 +783,11 @@ public OutputItem(global::tryAGI.OpenAI.OutputMessage? value) Message = value; } + /// + /// + /// + public static OutputItem FromMessage(global::tryAGI.OpenAI.OutputMessage? value) => new OutputItem(value); + /// /// /// @@ -801,6 +806,11 @@ public OutputItem(global::tryAGI.OpenAI.FileSearchToolCall? value) FileSearchCall = value; } + /// + /// + /// + public static OutputItem FromFileSearchCall(global::tryAGI.OpenAI.FileSearchToolCall? value) => new OutputItem(value); + /// /// /// @@ -819,6 +829,11 @@ public OutputItem(global::tryAGI.OpenAI.FunctionToolCall? value) FunctionCall = value; } + /// + /// + /// + public static OutputItem FromFunctionCall(global::tryAGI.OpenAI.FunctionToolCall? value) => new OutputItem(value); + /// /// /// @@ -837,6 +852,11 @@ public OutputItem(global::tryAGI.OpenAI.FunctionToolCallOutputResource? value) FunctionToolCallResource = value; } + /// + /// + /// + public static OutputItem FromFunctionToolCallResource(global::tryAGI.OpenAI.FunctionToolCallOutputResource? value) => new OutputItem(value); + /// /// /// @@ -855,6 +875,11 @@ public OutputItem(global::tryAGI.OpenAI.WebSearchToolCall? value) WebSearchCall = value; } + /// + /// + /// + public static OutputItem FromWebSearchCall(global::tryAGI.OpenAI.WebSearchToolCall? value) => new OutputItem(value); + /// /// /// @@ -873,6 +898,11 @@ public OutputItem(global::tryAGI.OpenAI.ComputerToolCall? value) ComputerCall = value; } + /// + /// + /// + public static OutputItem FromComputerCall(global::tryAGI.OpenAI.ComputerToolCall? value) => new OutputItem(value); + /// /// /// @@ -891,6 +921,11 @@ public OutputItem(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) ComputerToolCallResource = value; } + /// + /// + /// + public static OutputItem FromComputerToolCallResource(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) => new OutputItem(value); + /// /// /// @@ -909,6 +944,11 @@ public OutputItem(global::tryAGI.OpenAI.ReasoningItem? value) Reasoning = value; } + /// + /// + /// + public static OutputItem FromReasoning(global::tryAGI.OpenAI.ReasoningItem? value) => new OutputItem(value); + /// /// /// @@ -927,6 +967,11 @@ public OutputItem(global::tryAGI.OpenAI.ToolSearchCall? value) ToolSearchCall = value; } + /// + /// + /// + public static OutputItem FromToolSearchCall(global::tryAGI.OpenAI.ToolSearchCall? value) => new OutputItem(value); + /// /// /// @@ -945,6 +990,11 @@ public OutputItem(global::tryAGI.OpenAI.ToolSearchOutput? value) ToolSearchOutput = value; } + /// + /// + /// + public static OutputItem FromToolSearchOutput(global::tryAGI.OpenAI.ToolSearchOutput? value) => new OutputItem(value); + /// /// /// @@ -963,6 +1013,11 @@ public OutputItem(global::tryAGI.OpenAI.CompactionBody? value) Compaction = value; } + /// + /// + /// + public static OutputItem FromCompaction(global::tryAGI.OpenAI.CompactionBody? value) => new OutputItem(value); + /// /// /// @@ -981,6 +1036,11 @@ public OutputItem(global::tryAGI.OpenAI.ImageGenToolCall? value) ImageGenerationCall = value; } + /// + /// + /// + public static OutputItem FromImageGenerationCall(global::tryAGI.OpenAI.ImageGenToolCall? value) => new OutputItem(value); + /// /// /// @@ -999,6 +1059,11 @@ public OutputItem(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) CodeInterpreterCall = value; } + /// + /// + /// + public static OutputItem FromCodeInterpreterCall(global::tryAGI.OpenAI.CodeInterpreterToolCall? value) => new OutputItem(value); + /// /// /// @@ -1017,6 +1082,11 @@ public OutputItem(global::tryAGI.OpenAI.LocalShellToolCall? value) LocalShellCall = value; } + /// + /// + /// + public static OutputItem FromLocalShellCall(global::tryAGI.OpenAI.LocalShellToolCall? value) => new OutputItem(value); + /// /// /// @@ -1035,6 +1105,11 @@ public OutputItem(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) LocalShellCallOutput = value; } + /// + /// + /// + public static OutputItem FromLocalShellCallOutput(global::tryAGI.OpenAI.LocalShellToolCallOutput? value) => new OutputItem(value); + /// /// /// @@ -1053,6 +1128,11 @@ public OutputItem(global::tryAGI.OpenAI.FunctionShellCall? value) ShellCall = value; } + /// + /// + /// + public static OutputItem FromShellCall(global::tryAGI.OpenAI.FunctionShellCall? value) => new OutputItem(value); + /// /// /// @@ -1071,6 +1151,11 @@ public OutputItem(global::tryAGI.OpenAI.FunctionShellCallOutput? value) ShellCallOutput = value; } + /// + /// + /// + public static OutputItem FromShellCallOutput(global::tryAGI.OpenAI.FunctionShellCallOutput? value) => new OutputItem(value); + /// /// /// @@ -1089,6 +1174,11 @@ public OutputItem(global::tryAGI.OpenAI.ApplyPatchToolCall? value) ApplyPatchCall = value; } + /// + /// + /// + public static OutputItem FromApplyPatchCall(global::tryAGI.OpenAI.ApplyPatchToolCall? value) => new OutputItem(value); + /// /// /// @@ -1107,6 +1197,11 @@ public OutputItem(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) ApplyPatchCallOutput = value; } + /// + /// + /// + public static OutputItem FromApplyPatchCallOutput(global::tryAGI.OpenAI.ApplyPatchToolCallOutput? value) => new OutputItem(value); + /// /// /// @@ -1125,6 +1220,11 @@ public OutputItem(global::tryAGI.OpenAI.MCPToolCall? value) McpCall = value; } + /// + /// + /// + public static OutputItem FromMcpCall(global::tryAGI.OpenAI.MCPToolCall? value) => new OutputItem(value); + /// /// /// @@ -1143,6 +1243,11 @@ public OutputItem(global::tryAGI.OpenAI.MCPListTools? value) McpListTools = value; } + /// + /// + /// + public static OutputItem FromMcpListTools(global::tryAGI.OpenAI.MCPListTools? value) => new OutputItem(value); + /// /// /// @@ -1161,6 +1266,11 @@ public OutputItem(global::tryAGI.OpenAI.MCPApprovalRequest? value) McpApprovalRequest = value; } + /// + /// + /// + public static OutputItem FromMcpApprovalRequest(global::tryAGI.OpenAI.MCPApprovalRequest? value) => new OutputItem(value); + /// /// /// @@ -1179,6 +1289,11 @@ public OutputItem(global::tryAGI.OpenAI.MCPApprovalResponseResource? value) McpApprovalResponse = value; } + /// + /// + /// + public static OutputItem FromMcpApprovalResponse(global::tryAGI.OpenAI.MCPApprovalResponseResource? value) => new OutputItem(value); + /// /// /// @@ -1197,6 +1312,11 @@ public OutputItem(global::tryAGI.OpenAI.CustomToolCall? value) CustomToolCall = value; } + /// + /// + /// + public static OutputItem FromCustomToolCall(global::tryAGI.OpenAI.CustomToolCall? value) => new OutputItem(value); + /// /// /// @@ -1215,6 +1335,11 @@ public OutputItem(global::tryAGI.OpenAI.CustomToolCallOutputResource? value) ResponseCustomToolCallOutputItem = value; } + /// + /// + /// + public static OutputItem FromResponseCustomToolCallOutputItem(global::tryAGI.OpenAI.CustomToolCallOutputResource? value) => new OutputItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs index 8ed270c3..90db0242 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs @@ -91,6 +91,11 @@ public OutputMessageContent(global::tryAGI.OpenAI.OutputTextContent? value) OutputText = value; } + /// + /// + /// + public static OutputMessageContent FromOutputText(global::tryAGI.OpenAI.OutputTextContent? value) => new OutputMessageContent(value); + /// /// /// @@ -109,6 +114,11 @@ public OutputMessageContent(global::tryAGI.OpenAI.RefusalContent? value) Refusal = value; } + /// + /// + /// + public static OutputMessageContent FromRefusal(global::tryAGI.OpenAI.RefusalContent? value) => new OutputMessageContent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs index 89acfd63..34f3c65a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs @@ -121,6 +121,11 @@ public OutputVariant2Item(global::tryAGI.OpenAI.InputTextContentParam? value) InputText = value; } + /// + /// + /// + public static OutputVariant2Item FromInputText(global::tryAGI.OpenAI.InputTextContentParam? value) => new OutputVariant2Item(value); + /// /// /// @@ -139,6 +144,11 @@ public OutputVariant2Item(global::tryAGI.OpenAI.InputImageContentParamAutoParam? InputImage = value; } + /// + /// + /// + public static OutputVariant2Item FromInputImage(global::tryAGI.OpenAI.InputImageContentParamAutoParam? value) => new OutputVariant2Item(value); + /// /// /// @@ -157,6 +167,11 @@ public OutputVariant2Item(global::tryAGI.OpenAI.InputFileContentParam? value) InputFile = value; } + /// + /// + /// + public static OutputVariant2Item FromInputFile(global::tryAGI.OpenAI.InputFileContentParam? value) => new OutputVariant2Item(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs index 2d94e419..38492809 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs @@ -91,6 +91,11 @@ public OutputsVariant1Item(global::tryAGI.OpenAI.CodeInterpreterOutputLogs? valu Logs = value; } + /// + /// + /// + public static OutputsVariant1Item FromLogs(global::tryAGI.OpenAI.CodeInterpreterOutputLogs? value) => new OutputsVariant1Item(value); + /// /// /// @@ -109,6 +114,11 @@ public OutputsVariant1Item(global::tryAGI.OpenAI.CodeInterpreterOutputImage? val Image = value; } + /// + /// + /// + public static OutputsVariant1Item FromImage(global::tryAGI.OpenAI.CodeInterpreterOutputImage? value) => new OutputsVariant1Item(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs index 11bace58..2100f866 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs @@ -116,6 +116,11 @@ public RealtimeAudioFormats(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFo PcmAudioFormat = value; } + /// + /// + /// + public static RealtimeAudioFormats FromPcmAudioFormat(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? value) => new RealtimeAudioFormats(value); + /// /// /// @@ -134,6 +139,11 @@ public RealtimeAudioFormats(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioF PcmuAudioFormat = value; } + /// + /// + /// + public static RealtimeAudioFormats FromPcmuAudioFormat(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? value) => new RealtimeAudioFormats(value); + /// /// /// @@ -152,6 +162,11 @@ public RealtimeAudioFormats(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioF PcmaAudioFormat = value; } + /// + /// + /// + public static RealtimeAudioFormats FromPcmaAudioFormat(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? value) => new RealtimeAudioFormats(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs index 6dae3b01..dd47ab3e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs @@ -426,6 +426,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventConversation ConversationItemCreate = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemCreate(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? value) => new RealtimeClientEvent(value); + /// /// /// @@ -444,6 +449,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventConversation ConversationItemDelete = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemDelete(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? value) => new RealtimeClientEvent(value); + /// /// /// @@ -462,6 +472,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventConversation ConversationItemRetrieve = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemRetrieve(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? value) => new RealtimeClientEvent(value); + /// /// /// @@ -480,6 +495,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventConversation ConversationItemTruncate = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemTruncate(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? value) => new RealtimeClientEvent(value); + /// /// /// @@ -498,6 +518,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBu InputAudioBufferAppend = value; } + /// + /// + /// + public static RealtimeClientEvent FromInputAudioBufferAppend(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? value) => new RealtimeClientEvent(value); + /// /// /// @@ -516,6 +541,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBu InputAudioBufferClear = value; } + /// + /// + /// + public static RealtimeClientEvent FromInputAudioBufferClear(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? value) => new RealtimeClientEvent(value); + /// /// /// @@ -534,6 +564,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioB OutputAudioBufferClear = value; } + /// + /// + /// + public static RealtimeClientEvent FromOutputAudioBufferClear(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? value) => new RealtimeClientEvent(value); + /// /// /// @@ -552,6 +587,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBu InputAudioBufferCommit = value; } + /// + /// + /// + public static RealtimeClientEvent FromInputAudioBufferCommit(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? value) => new RealtimeClientEvent(value); + /// /// /// @@ -570,6 +610,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventResponseCanc ResponseCancel = value; } + /// + /// + /// + public static RealtimeClientEvent FromResponseCancel(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? value) => new RealtimeClientEvent(value); + /// /// /// @@ -588,6 +633,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventResponseCrea ResponseCreate = value; } + /// + /// + /// + public static RealtimeClientEvent FromResponseCreate(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? value) => new RealtimeClientEvent(value); + /// /// /// @@ -606,6 +656,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdat SessionUpdate = value; } + /// + /// + /// + public static RealtimeClientEvent FromSessionUpdate(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? value) => new RealtimeClientEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs index 11e36d70..27663843 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs @@ -301,6 +301,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeConversationItemMe Message1 = value; } + /// + /// + /// + public static RealtimeConversationItem FromMessage1(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? value) => new RealtimeConversationItem(value); + /// /// /// @@ -319,6 +324,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeConversationItemMe Message2 = value; } + /// + /// + /// + public static RealtimeConversationItem FromMessage2(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? value) => new RealtimeConversationItem(value); + /// /// /// @@ -337,6 +347,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeConversationItemMe Message3 = value; } + /// + /// + /// + public static RealtimeConversationItem FromMessage3(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? value) => new RealtimeConversationItem(value); + /// /// /// @@ -355,6 +370,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeConversationItemFu FunctionCall = value; } + /// + /// + /// + public static RealtimeConversationItem FromFunctionCall(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? value) => new RealtimeConversationItem(value); + /// /// /// @@ -373,6 +393,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeConversationItemFu FunctionCallOutput = value; } + /// + /// + /// + public static RealtimeConversationItem FromFunctionCallOutput(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? value) => new RealtimeConversationItem(value); + /// /// /// @@ -391,6 +416,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeMCPApprovalRespons McpApprovalResponse = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpApprovalResponse(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? value) => new RealtimeConversationItem(value); + /// /// /// @@ -409,6 +439,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeMCPListTools? valu McpListTools = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpListTools(global::tryAGI.OpenAI.RealtimeMCPListTools? value) => new RealtimeConversationItem(value); + /// /// /// @@ -427,6 +462,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeMCPToolCall? value McpCall = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpCall(global::tryAGI.OpenAI.RealtimeMCPToolCall? value) => new RealtimeConversationItem(value); + /// /// /// @@ -445,6 +485,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest McpApprovalRequest = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpApprovalRequest(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? value) => new RealtimeConversationItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs index 26d40597..0e648967 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs @@ -1500,6 +1500,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationCreated(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1518,6 +1523,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemCreated(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1536,6 +1546,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemDeleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemDeleted(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1554,6 +1569,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemInputAudioTranscriptionCompleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionCompleted(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1572,6 +1592,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemInputAudioTranscriptionDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionDelta(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1590,6 +1615,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemInputAudioTranscriptionFailed = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionFailed(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1608,6 +1638,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemRetrieved = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemRetrieved(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1626,6 +1661,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemTruncated = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemTruncated(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1644,6 +1684,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventError? value Error = value; } + /// + /// + /// + public static RealtimeServerEvent FromError(global::tryAGI.OpenAI.RealtimeServerEventError? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1662,6 +1707,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBu InputAudioBufferCleared = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferCleared(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1680,6 +1730,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBu InputAudioBufferCommitted = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferCommitted(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1698,6 +1753,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBu InputAudioBufferDtmfEventReceived = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferDtmfEventReceived(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1716,6 +1776,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBu InputAudioBufferSpeechStarted = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferSpeechStarted(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1734,6 +1799,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBu InputAudioBufferSpeechStopped = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferSpeechStopped(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1752,6 +1822,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUp RateLimitsUpdated = value; } + /// + /// + /// + public static RealtimeServerEvent FromRateLimitsUpdated(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1770,6 +1845,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseAudi ResponseOutputAudioDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioDelta(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1788,6 +1868,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseAudi ResponseOutputAudioDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioDone(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1806,6 +1891,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseAudi ResponseOutputAudioTranscriptDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioTranscriptDelta(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1824,6 +1914,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseAudi ResponseOutputAudioTranscriptDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioTranscriptDone(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1842,6 +1937,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseCont ResponseContentPartAdded = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseContentPartAdded(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1860,6 +1960,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseCont ResponseContentPartDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseContentPartDone(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1878,6 +1983,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseCrea ResponseCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseCreated(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1896,6 +2006,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseDone ResponseDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseDone(global::tryAGI.OpenAI.RealtimeServerEventResponseDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1914,6 +2029,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseFunc ResponseFunctionCallArgumentsDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseFunctionCallArgumentsDelta(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1932,6 +2052,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseFunc ResponseFunctionCallArgumentsDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseFunctionCallArgumentsDone(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1950,6 +2075,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseOutp ResponseOutputItemAdded = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputItemAdded(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1968,6 +2098,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseOutp ResponseOutputItemDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputItemDone(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1986,6 +2121,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseText ResponseOutputTextDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputTextDelta(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2004,6 +2144,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseText ResponseOutputTextDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputTextDone(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2022,6 +2167,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventSessionCreat SessionCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromSessionCreated(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2040,6 +2190,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdat SessionUpdated = value; } + /// + /// + /// + public static RealtimeServerEvent FromSessionUpdated(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2058,6 +2213,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioB OutputAudioBufferStarted = value; } + /// + /// + /// + public static RealtimeServerEvent FromOutputAudioBufferStarted(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2076,6 +2236,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioB OutputAudioBufferStopped = value; } + /// + /// + /// + public static RealtimeServerEvent FromOutputAudioBufferStopped(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2094,6 +2259,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioB OutputAudioBufferCleared = value; } + /// + /// + /// + public static RealtimeServerEvent FromOutputAudioBufferCleared(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2112,6 +2282,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemAdded = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemAdded(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2130,6 +2305,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemDone(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2148,6 +2328,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBu InputAudioBufferTimeoutTriggered = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferTimeoutTriggered(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2166,6 +2351,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventConversation ConversationItemInputAudioTranscriptionSegment = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionSegment(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2184,6 +2374,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventMCPListTools McpListToolsInProgress = value; } + /// + /// + /// + public static RealtimeServerEvent FromMcpListToolsInProgress(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2202,6 +2397,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventMCPListTools McpListToolsCompleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromMcpListToolsCompleted(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2220,6 +2420,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventMCPListTools McpListToolsFailed = value; } + /// + /// + /// + public static RealtimeServerEvent FromMcpListToolsFailed(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2238,6 +2443,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPC ResponseMcpCallArgumentsDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallArgumentsDelta(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2256,6 +2466,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPC ResponseMcpCallArgumentsDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallArgumentsDone(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2274,6 +2489,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPC ResponseMcpCallInProgress = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallInProgress(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2292,6 +2512,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPC ResponseMcpCallCompleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallCompleted(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2310,6 +2535,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPC ResponseMcpCallFailed = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallFailed(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? value) => new RealtimeServerEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs index ff141abc..54707b75 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs @@ -136,6 +136,11 @@ public RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationC SessionUpdate = value; } + /// + /// + /// + public static RealtimeTranslationClientEvent FromSessionUpdate(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? value) => new RealtimeTranslationClientEvent(value); + /// /// /// @@ -154,6 +159,11 @@ public RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationC SessionInputAudioBufferAppend = value; } + /// + /// + /// + public static RealtimeTranslationClientEvent FromSessionInputAudioBufferAppend(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? value) => new RealtimeTranslationClientEvent(value); + /// /// /// @@ -172,6 +182,11 @@ public RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationC SessionClose = value; } + /// + /// + /// + public static RealtimeTranslationClientEvent FromSessionClose(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? value) => new RealtimeTranslationClientEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs index 9f7f5829..72f3a29a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs @@ -252,6 +252,11 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeServerEventE Error = value; } + /// + /// + /// + public static RealtimeTranslationServerEvent FromError(global::tryAGI.OpenAI.RealtimeServerEventError? value) => new RealtimeTranslationServerEvent(value); + /// /// /// @@ -270,6 +275,11 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationS SessionCreated = value; } + /// + /// + /// + public static RealtimeTranslationServerEvent FromSessionCreated(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? value) => new RealtimeTranslationServerEvent(value); + /// /// /// @@ -288,6 +298,11 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationS SessionUpdated = value; } + /// + /// + /// + public static RealtimeTranslationServerEvent FromSessionUpdated(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? value) => new RealtimeTranslationServerEvent(value); + /// /// /// @@ -306,6 +321,11 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationS SessionClosed = value; } + /// + /// + /// + public static RealtimeTranslationServerEvent FromSessionClosed(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? value) => new RealtimeTranslationServerEvent(value); + /// /// /// @@ -324,6 +344,11 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationS SessionInputTranscriptDelta = value; } + /// + /// + /// + public static RealtimeTranslationServerEvent FromSessionInputTranscriptDelta(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? value) => new RealtimeTranslationServerEvent(value); + /// /// /// @@ -342,6 +367,11 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationS SessionOutputTranscriptDelta = value; } + /// + /// + /// + public static RealtimeTranslationServerEvent FromSessionOutputTranscriptDelta(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? value) => new RealtimeTranslationServerEvent(value); + /// /// /// @@ -360,6 +390,11 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationS SessionOutputAudioDelta = value; } + /// + /// + /// + public static RealtimeTranslationServerEvent FromSessionOutputAudioDelta(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? value) => new RealtimeTranslationServerEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs index 69411355..b1762240 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs @@ -89,6 +89,11 @@ public RealtimeTruncation(global::tryAGI.OpenAI.RealtimeTruncationEnum? value) Enum = value; } + /// + /// + /// + public static RealtimeTruncation FromEnum(global::tryAGI.OpenAI.RealtimeTruncationEnum? value) => new RealtimeTruncation(value); + /// /// /// @@ -107,6 +112,11 @@ public RealtimeTruncation(global::tryAGI.OpenAI.RealtimeTruncationEnum2? value) RetentionRatioTruncation = value; } + /// + /// + /// + public static RealtimeTruncation FromRetentionRatioTruncation(global::tryAGI.OpenAI.RealtimeTruncationEnum2? value) => new RealtimeTruncation(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 352df655..e644f32d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -95,6 +95,11 @@ public RealtimeTurnDetectionRealtimeTurnDetection1(global::tryAGI.OpenAI.Realtim ServerVad = value; } + /// + /// + /// + public static RealtimeTurnDetectionRealtimeTurnDetection1 FromServerVad(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? value) => new RealtimeTurnDetectionRealtimeTurnDetection1(value); + /// /// /// @@ -113,6 +118,11 @@ public RealtimeTurnDetectionRealtimeTurnDetection1(global::tryAGI.OpenAI.Realtim SemanticVad = value; } + /// + /// + /// + public static RealtimeTurnDetectionRealtimeTurnDetection1 FromSemanticVad(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? value) => new RealtimeTurnDetectionRealtimeTurnDetection1(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs index d42f7b4a..845b19e0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs @@ -116,6 +116,11 @@ public Response(global::tryAGI.OpenAI.ModelResponseProperties? value) ModelProperties = value; } + /// + /// + /// + public static Response FromModelProperties(global::tryAGI.OpenAI.ModelResponseProperties? value) => new Response(value); + /// /// /// @@ -134,6 +139,11 @@ public Response(global::tryAGI.OpenAI.ResponseProperties? value) Properties = value; } + /// + /// + /// + public static Response FromProperties(global::tryAGI.OpenAI.ResponseProperties? value) => new Response(value); + /// /// /// @@ -152,6 +162,11 @@ public Response(global::tryAGI.OpenAI.ResponseVariant3? value) ResponseVariant3 = value; } + /// + /// + /// + public static Response FromResponseVariant3(global::tryAGI.OpenAI.ResponseVariant3? value) => new Response(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs index c3213ad9..69f375b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs @@ -132,6 +132,11 @@ public ResponseFormat(global::tryAGI.OpenAI.ResponseFormatText? value) Text = value; } + /// + /// + /// + public static ResponseFormat FromText(global::tryAGI.OpenAI.ResponseFormatText? value) => new ResponseFormat(value); + /// /// /// @@ -150,6 +155,11 @@ public ResponseFormat(global::tryAGI.OpenAI.ResponseFormatJsonSchema? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormat FromJsonSchema(global::tryAGI.OpenAI.ResponseFormatJsonSchema? value) => new ResponseFormat(value); + /// /// /// @@ -168,6 +178,11 @@ public ResponseFormat(global::tryAGI.OpenAI.ResponseFormatJsonObject? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormat FromJsonObject(global::tryAGI.OpenAI.ResponseFormatJsonObject? value) => new ResponseFormat(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs index 492729d8..f450b956 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs @@ -1621,6 +1621,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseAudioDeltaEvent? value) ResponseAudioDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseAudioDelta(global::tryAGI.OpenAI.ResponseAudioDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1639,6 +1644,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseAudioDoneEvent? value) ResponseAudioDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseAudioDone(global::tryAGI.OpenAI.ResponseAudioDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1657,6 +1667,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEve ResponseAudioTranscriptDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseAudioTranscriptDelta(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1675,6 +1690,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEven ResponseAudioTranscriptDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseAudioTranscriptDone(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1693,6 +1713,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCode ResponseCodeInterpreterCallCodeDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCodeInterpreterCallCodeDelta(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1711,6 +1736,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCode ResponseCodeInterpreterCallCodeDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCodeInterpreterCallCodeDone(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1729,6 +1759,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCodeInterpreterCallComp ResponseCodeInterpreterCallCompleted = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCodeInterpreterCallCompleted(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1747,6 +1782,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInPr ResponseCodeInterpreterCallInProgress = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCodeInterpreterCallInProgress(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1765,6 +1805,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInte ResponseCodeInterpreterCallInterpreting = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCodeInterpreterCallInterpreting(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1783,6 +1828,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCompletedEvent? value) ResponseCompleted = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCompleted(global::tryAGI.OpenAI.ResponseCompletedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1801,6 +1851,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseContentPartAddedEvent? ResponseContentPartAdded = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseContentPartAdded(global::tryAGI.OpenAI.ResponseContentPartAddedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1819,6 +1874,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseContentPartDoneEvent? v ResponseContentPartDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseContentPartDone(global::tryAGI.OpenAI.ResponseContentPartDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1837,6 +1897,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCreatedEvent? value) ResponseCreated = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCreated(global::tryAGI.OpenAI.ResponseCreatedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1855,6 +1920,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseErrorEvent? value) Error = value; } + /// + /// + /// + public static ResponseStreamEvent FromError(global::tryAGI.OpenAI.ResponseErrorEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1873,6 +1943,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseFileSearchCallCompleted ResponseFileSearchCallCompleted = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseFileSearchCallCompleted(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1891,6 +1966,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseFileSearchCallInProgres ResponseFileSearchCallInProgress = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseFileSearchCallInProgress(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1909,6 +1989,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseFileSearchCallSearching ResponseFileSearchCallSearching = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseFileSearchCallSearching(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1927,6 +2012,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDe ResponseFunctionCallArgumentsDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseFunctionCallArgumentsDelta(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1945,6 +2035,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDo ResponseFunctionCallArgumentsDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseFunctionCallArgumentsDone(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1963,6 +2058,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseInProgressEvent? value) ResponseInProgress = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseInProgress(global::tryAGI.OpenAI.ResponseInProgressEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1981,6 +2081,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseFailedEvent? value) ResponseFailed = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseFailed(global::tryAGI.OpenAI.ResponseFailedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -1999,6 +2104,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseIncompleteEvent? value) ResponseIncomplete = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseIncomplete(global::tryAGI.OpenAI.ResponseIncompleteEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2017,6 +2127,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? v ResponseOutputItemAdded = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseOutputItemAdded(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2035,6 +2150,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? va ResponseOutputItemDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseOutputItemDone(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2053,6 +2173,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAdd ResponseReasoningSummaryPartAdded = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseReasoningSummaryPartAdded(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2071,6 +2196,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDon ResponseReasoningSummaryPartDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseReasoningSummaryPartDone(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2089,6 +2219,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDel ResponseReasoningSummaryTextDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseReasoningSummaryTextDelta(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2107,6 +2242,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDon ResponseReasoningSummaryTextDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseReasoningSummaryTextDone(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2125,6 +2265,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent ResponseReasoningTextDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseReasoningTextDelta(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2143,6 +2288,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? ResponseReasoningTextDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseReasoningTextDone(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2161,6 +2311,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? valu ResponseRefusalDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseRefusalDelta(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2179,6 +2334,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseRefusalDoneEvent? value ResponseRefusalDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseRefusalDone(global::tryAGI.OpenAI.ResponseRefusalDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2197,6 +2357,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseTextDeltaEvent? value) ResponseOutputTextDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseOutputTextDelta(global::tryAGI.OpenAI.ResponseTextDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2215,6 +2380,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseTextDoneEvent? value) ResponseOutputTextDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseOutputTextDone(global::tryAGI.OpenAI.ResponseTextDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2233,6 +2403,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedE ResponseWebSearchCallCompleted = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseWebSearchCallCompleted(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2251,6 +2426,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseWebSearchCallInProgress ResponseWebSearchCallInProgress = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseWebSearchCallInProgress(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2269,6 +2449,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingE ResponseWebSearchCallSearching = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseWebSearchCallSearching(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2287,6 +2472,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEv ResponseImageGenerationCallCompleted = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseImageGenerationCallCompleted(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2305,6 +2495,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingE ResponseImageGenerationCallGenerating = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseImageGenerationCallGenerating(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2323,6 +2518,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseImageGenCallInProgressE ResponseImageGenerationCallInProgress = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseImageGenerationCallInProgress(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2341,6 +2541,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseImageGenCallPartialImag ResponseImageGenerationCallPartialImage = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseImageGenerationCallPartialImage(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2359,6 +2564,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEv ResponseMcpCallArgumentsDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpCallArgumentsDelta(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2377,6 +2587,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEve ResponseMcpCallArgumentsDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpCallArgumentsDone(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2395,6 +2610,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? ResponseMcpCallCompleted = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpCallCompleted(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2413,6 +2633,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? val ResponseMcpCallFailed = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpCallFailed(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2431,6 +2656,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? ResponseMcpCallInProgress = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpCallInProgress(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2449,6 +2679,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEv ResponseMcpListToolsCompleted = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpListToolsCompleted(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2467,6 +2702,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent ResponseMcpListToolsFailed = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpListToolsFailed(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2485,6 +2725,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressE ResponseMcpListToolsInProgress = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseMcpListToolsInProgress(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2503,6 +2748,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAdd ResponseOutputTextAnnotationAdded = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseOutputTextAnnotationAdded(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2521,6 +2771,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseQueuedEvent? value) ResponseQueued = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseQueued(global::tryAGI.OpenAI.ResponseQueuedEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2539,6 +2794,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCustomToolCallInputDelt ResponseCustomToolCallInputDelta = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCustomToolCallInputDelta(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? value) => new ResponseStreamEvent(value); + /// /// /// @@ -2557,6 +2817,11 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCustomToolCallInputDone ResponseCustomToolCallInputDone = value; } + /// + /// + /// + public static ResponseStreamEvent FromResponseCustomToolCallInputDone(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? value) => new ResponseStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs index e6d555e0..19eede2c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs @@ -60,6 +60,11 @@ public ResponsesClientEvent(global::tryAGI.OpenAI.ResponsesClientEventResponseCr ResponseCreate = value; } + /// + /// + /// + public static ResponsesClientEvent FromResponseCreate(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? value) => new ResponsesClientEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs index 5dac0fad..87f5088d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs @@ -90,6 +90,11 @@ public ResponsesClientEventResponseCreate(global::tryAGI.OpenAI.ResponsesClientE ResponsesClientEventResponseCreateVariant1 = value; } + /// + /// + /// + public static ResponsesClientEventResponseCreate FromResponsesClientEventResponseCreateVariant1(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? value) => new ResponsesClientEventResponseCreate(value); + /// /// /// @@ -108,6 +113,11 @@ public ResponsesClientEventResponseCreate(global::tryAGI.OpenAI.CreateResponse? CreateResponse = value; } + /// + /// + /// + public static ResponsesClientEventResponseCreate FromCreateResponse(global::tryAGI.OpenAI.CreateResponse? value) => new ResponsesClientEventResponseCreate(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs index 8fb3ffc5..a1fb5cda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs @@ -56,6 +56,11 @@ public ResponsesServerEvent(global::tryAGI.OpenAI.ResponseStreamEvent? value) ResponseStream = value; } + /// + /// + /// + public static ResponsesServerEvent FromResponseStream(global::tryAGI.OpenAI.ResponseStreamEvent? value) => new ResponsesServerEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs index b8c80536..0f73405a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs @@ -301,6 +301,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageCompletionsResult? value) OrganizationUsageCompletionsResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageCompletionsResult(global::tryAGI.OpenAI.UsageCompletionsResult? value) => new ResultsItem(value); + /// /// /// @@ -319,6 +324,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageEmbeddingsResult? value) OrganizationUsageEmbeddingsResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageEmbeddingsResult(global::tryAGI.OpenAI.UsageEmbeddingsResult? value) => new ResultsItem(value); + /// /// /// @@ -337,6 +347,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageModerationsResult? value) OrganizationUsageModerationsResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageModerationsResult(global::tryAGI.OpenAI.UsageModerationsResult? value) => new ResultsItem(value); + /// /// /// @@ -355,6 +370,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageImagesResult? value) OrganizationUsageImagesResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageImagesResult(global::tryAGI.OpenAI.UsageImagesResult? value) => new ResultsItem(value); + /// /// /// @@ -373,6 +393,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageAudioSpeechesResult? value) OrganizationUsageAudioSpeechesResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageAudioSpeechesResult(global::tryAGI.OpenAI.UsageAudioSpeechesResult? value) => new ResultsItem(value); + /// /// /// @@ -391,6 +416,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? value) OrganizationUsageAudioTranscriptionsResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageAudioTranscriptionsResult(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? value) => new ResultsItem(value); + /// /// /// @@ -409,6 +439,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageVectorStoresResult? value) OrganizationUsageVectorStoresResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageVectorStoresResult(global::tryAGI.OpenAI.UsageVectorStoresResult? value) => new ResultsItem(value); + /// /// /// @@ -427,6 +462,11 @@ public ResultsItem(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? val OrganizationUsageCodeInterpreterSessionsResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationUsageCodeInterpreterSessionsResult(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? value) => new ResultsItem(value); + /// /// /// @@ -445,6 +485,11 @@ public ResultsItem(global::tryAGI.OpenAI.CostsResult? value) OrganizationCostsResult = value; } + /// + /// + /// + public static ResultsItem FromOrganizationCostsResult(global::tryAGI.OpenAI.CostsResult? value) => new ResultsItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs index 21e03714..3979e75c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs @@ -236,6 +236,11 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant1? valu RunStepStreamEventVariant1 = value; } + /// + /// + /// + public static RunStepStreamEvent FromRunStepStreamEventVariant1(global::tryAGI.OpenAI.RunStepStreamEventVariant1? value) => new RunStepStreamEvent(value); + /// /// /// @@ -254,6 +259,11 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant2? valu RunStepStreamEventVariant2 = value; } + /// + /// + /// + public static RunStepStreamEvent FromRunStepStreamEventVariant2(global::tryAGI.OpenAI.RunStepStreamEventVariant2? value) => new RunStepStreamEvent(value); + /// /// /// @@ -272,6 +282,11 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant3? valu RunStepStreamEventVariant3 = value; } + /// + /// + /// + public static RunStepStreamEvent FromRunStepStreamEventVariant3(global::tryAGI.OpenAI.RunStepStreamEventVariant3? value) => new RunStepStreamEvent(value); + /// /// /// @@ -290,6 +305,11 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant4? valu RunStepStreamEventVariant4 = value; } + /// + /// + /// + public static RunStepStreamEvent FromRunStepStreamEventVariant4(global::tryAGI.OpenAI.RunStepStreamEventVariant4? value) => new RunStepStreamEvent(value); + /// /// /// @@ -308,6 +328,11 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant5? valu RunStepStreamEventVariant5 = value; } + /// + /// + /// + public static RunStepStreamEvent FromRunStepStreamEventVariant5(global::tryAGI.OpenAI.RunStepStreamEventVariant5? value) => new RunStepStreamEvent(value); + /// /// /// @@ -326,6 +351,11 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant6? valu RunStepStreamEventVariant6 = value; } + /// + /// + /// + public static RunStepStreamEvent FromRunStepStreamEventVariant6(global::tryAGI.OpenAI.RunStepStreamEventVariant6? value) => new RunStepStreamEvent(value); + /// /// /// @@ -344,6 +374,11 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant7? valu RunStepStreamEventVariant7 = value; } + /// + /// + /// + public static RunStepStreamEvent FromRunStepStreamEventVariant7(global::tryAGI.OpenAI.RunStepStreamEventVariant7? value) => new RunStepStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs index 5515ab5f..d140f14c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs @@ -326,6 +326,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant1? value) RunStreamEventVariant1 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant1(global::tryAGI.OpenAI.RunStreamEventVariant1? value) => new RunStreamEvent(value); + /// /// /// @@ -344,6 +349,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant2? value) RunStreamEventVariant2 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant2(global::tryAGI.OpenAI.RunStreamEventVariant2? value) => new RunStreamEvent(value); + /// /// /// @@ -362,6 +372,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant3? value) RunStreamEventVariant3 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant3(global::tryAGI.OpenAI.RunStreamEventVariant3? value) => new RunStreamEvent(value); + /// /// /// @@ -380,6 +395,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant4? value) RunStreamEventVariant4 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant4(global::tryAGI.OpenAI.RunStreamEventVariant4? value) => new RunStreamEvent(value); + /// /// /// @@ -398,6 +418,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant5? value) RunStreamEventVariant5 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant5(global::tryAGI.OpenAI.RunStreamEventVariant5? value) => new RunStreamEvent(value); + /// /// /// @@ -416,6 +441,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant6? value) RunStreamEventVariant6 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant6(global::tryAGI.OpenAI.RunStreamEventVariant6? value) => new RunStreamEvent(value); + /// /// /// @@ -434,6 +464,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant7? value) RunStreamEventVariant7 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant7(global::tryAGI.OpenAI.RunStreamEventVariant7? value) => new RunStreamEvent(value); + /// /// /// @@ -452,6 +487,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant8? value) RunStreamEventVariant8 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant8(global::tryAGI.OpenAI.RunStreamEventVariant8? value) => new RunStreamEvent(value); + /// /// /// @@ -470,6 +510,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant9? value) RunStreamEventVariant9 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant9(global::tryAGI.OpenAI.RunStreamEventVariant9? value) => new RunStreamEvent(value); + /// /// /// @@ -488,6 +533,11 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant10? value) RunStreamEventVariant10 = value; } + /// + /// + /// + public static RunStreamEvent FromRunStreamEventVariant10(global::tryAGI.OpenAI.RunStreamEventVariant10? value) => new RunStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs index f4ee2aea..c0346ba5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs @@ -91,6 +91,11 @@ public Session2(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? value) Realtime = value; } + /// + /// + /// + public static Session2 FromRealtime(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? value) => new Session2(value); + /// /// /// @@ -109,6 +114,11 @@ public Session2(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse Transcription = value; } + /// + /// + /// + public static Session2 FromTranscription(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? value) => new Session2(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs index 34e2f01e..804964fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs @@ -91,6 +91,11 @@ public SkillsItem(global::tryAGI.OpenAI.SkillReferenceParam? value) SkillReference = value; } + /// + /// + /// + public static SkillsItem FromSkillReference(global::tryAGI.OpenAI.SkillReferenceParam? value) => new SkillsItem(value); + /// /// /// @@ -109,6 +114,11 @@ public SkillsItem(global::tryAGI.OpenAI.InlineSkillParam? value) Inline = value; } + /// + /// + /// + public static SkillsItem FromInline(global::tryAGI.OpenAI.InlineSkillParam? value) => new SkillsItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs index 252b41aa..f957adfc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs @@ -91,6 +91,11 @@ public SkillsItem2(global::tryAGI.OpenAI.SkillReferenceParam? value) SkillReference = value; } + /// + /// + /// + public static SkillsItem2 FromSkillReference(global::tryAGI.OpenAI.SkillReferenceParam? value) => new SkillsItem2(value); + /// /// /// @@ -109,6 +114,11 @@ public SkillsItem2(global::tryAGI.OpenAI.InlineSkillParam? value) Inline = value; } + /// + /// + /// + public static SkillsItem2 FromInline(global::tryAGI.OpenAI.InlineSkillParam? value) => new SkillsItem2(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs index a0cf1520..f780c747 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs @@ -121,6 +121,11 @@ public Status(global::tryAGI.OpenAI.ActiveStatus? value) Active = value; } + /// + /// + /// + public static Status FromActive(global::tryAGI.OpenAI.ActiveStatus? value) => new Status(value); + /// /// /// @@ -139,6 +144,11 @@ public Status(global::tryAGI.OpenAI.LockedStatus? value) Locked = value; } + /// + /// + /// + public static Status FromLocked(global::tryAGI.OpenAI.LockedStatus? value) => new Status(value); + /// /// /// @@ -157,6 +167,11 @@ public Status(global::tryAGI.OpenAI.ClosedStatus? value) Closed = value; } + /// + /// + /// + public static Status FromClosed(global::tryAGI.OpenAI.ClosedStatus? value) => new Status(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs index a8bdebeb..46618e8d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs @@ -89,6 +89,11 @@ public StopConfiguration(string? value) StopConfigurationVariant1 = value; } + /// + /// + /// + public static StopConfiguration FromStopConfigurationVariant1(string? value) => new StopConfiguration(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs index a62d4853..43b3d6f8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs @@ -128,6 +128,11 @@ public TextResponseFormatConfiguration(global::tryAGI.OpenAI.ResponseFormatText? Text = value; } + /// + /// + /// + public static TextResponseFormatConfiguration FromText(global::tryAGI.OpenAI.ResponseFormatText? value) => new TextResponseFormatConfiguration(value); + /// /// /// @@ -146,6 +151,11 @@ public TextResponseFormatConfiguration(global::tryAGI.OpenAI.TextResponseFormatJ JsonSchema = value; } + /// + /// + /// + public static TextResponseFormatConfiguration FromJsonSchema(global::tryAGI.OpenAI.TextResponseFormatJsonSchema? value) => new TextResponseFormatConfiguration(value); + /// /// /// @@ -164,6 +174,11 @@ public TextResponseFormatConfiguration(global::tryAGI.OpenAI.ResponseFormatJsonO JsonObject = value; } + /// + /// + /// + public static TextResponseFormatConfiguration FromJsonObject(global::tryAGI.OpenAI.ResponseFormatJsonObject? value) => new TextResponseFormatConfiguration(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs index d77e24b2..94e1e635 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs @@ -211,6 +211,11 @@ public ThreadItem(global::tryAGI.OpenAI.UserMessageItem? value) ChatkitUserMessage = value; } + /// + /// + /// + public static ThreadItem FromChatkitUserMessage(global::tryAGI.OpenAI.UserMessageItem? value) => new ThreadItem(value); + /// /// /// @@ -229,6 +234,11 @@ public ThreadItem(global::tryAGI.OpenAI.AssistantMessageItem? value) ChatkitAssistantMessage = value; } + /// + /// + /// + public static ThreadItem FromChatkitAssistantMessage(global::tryAGI.OpenAI.AssistantMessageItem? value) => new ThreadItem(value); + /// /// /// @@ -247,6 +257,11 @@ public ThreadItem(global::tryAGI.OpenAI.WidgetMessageItem? value) ChatkitWidget = value; } + /// + /// + /// + public static ThreadItem FromChatkitWidget(global::tryAGI.OpenAI.WidgetMessageItem? value) => new ThreadItem(value); + /// /// /// @@ -265,6 +280,11 @@ public ThreadItem(global::tryAGI.OpenAI.ClientToolCallItem? value) ChatkitClientToolCall = value; } + /// + /// + /// + public static ThreadItem FromChatkitClientToolCall(global::tryAGI.OpenAI.ClientToolCallItem? value) => new ThreadItem(value); + /// /// /// @@ -283,6 +303,11 @@ public ThreadItem(global::tryAGI.OpenAI.TaskItem? value) ChatkitTask = value; } + /// + /// + /// + public static ThreadItem FromChatkitTask(global::tryAGI.OpenAI.TaskItem? value) => new ThreadItem(value); + /// /// /// @@ -301,6 +326,11 @@ public ThreadItem(global::tryAGI.OpenAI.TaskGroupItem? value) ChatkitTaskGroup = value; } + /// + /// + /// + public static ThreadItem FromChatkitTaskGroup(global::tryAGI.OpenAI.TaskGroupItem? value) => new ThreadItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs index d7225c44..ebc8f4fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs @@ -56,6 +56,11 @@ public ThreadStreamEvent(global::tryAGI.OpenAI.ThreadStreamEventVariant1? value) ThreadStreamEventVariant1 = value; } + /// + /// + /// + public static ThreadStreamEvent FromThreadStreamEventVariant1(global::tryAGI.OpenAI.ThreadStreamEventVariant1? value) => new ThreadStreamEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs index 2b193314..a7bd6313 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs @@ -478,6 +478,11 @@ public Tool(global::tryAGI.OpenAI.FunctionTool? value) Function = value; } + /// + /// + /// + public static Tool FromFunction(global::tryAGI.OpenAI.FunctionTool? value) => new Tool(value); + /// /// /// @@ -496,6 +501,11 @@ public Tool(global::tryAGI.OpenAI.FileSearchTool? value) FileSearch = value; } + /// + /// + /// + public static Tool FromFileSearch(global::tryAGI.OpenAI.FileSearchTool? value) => new Tool(value); + /// /// /// @@ -514,6 +524,11 @@ public Tool(global::tryAGI.OpenAI.ComputerTool? value) Computer = value; } + /// + /// + /// + public static Tool FromComputer(global::tryAGI.OpenAI.ComputerTool? value) => new Tool(value); + /// /// /// @@ -532,6 +547,11 @@ public Tool(global::tryAGI.OpenAI.ComputerUsePreviewTool? value) ComputerUsePreview = value; } + /// + /// + /// + public static Tool FromComputerUsePreview(global::tryAGI.OpenAI.ComputerUsePreviewTool? value) => new Tool(value); + /// /// /// @@ -550,6 +570,11 @@ public Tool(global::tryAGI.OpenAI.WebSearchTool? value) WebSearch = value; } + /// + /// + /// + public static Tool FromWebSearch(global::tryAGI.OpenAI.WebSearchTool? value) => new Tool(value); + /// /// /// @@ -568,6 +593,11 @@ public Tool(global::tryAGI.OpenAI.MCPTool? value) Mcp = value; } + /// + /// + /// + public static Tool FromMcp(global::tryAGI.OpenAI.MCPTool? value) => new Tool(value); + /// /// /// @@ -586,6 +616,11 @@ public Tool(global::tryAGI.OpenAI.CodeInterpreterTool? value) CodeInterpreter = value; } + /// + /// + /// + public static Tool FromCodeInterpreter(global::tryAGI.OpenAI.CodeInterpreterTool? value) => new Tool(value); + /// /// /// @@ -604,6 +639,11 @@ public Tool(global::tryAGI.OpenAI.ImageGenTool? value) ImageGeneration = value; } + /// + /// + /// + public static Tool FromImageGeneration(global::tryAGI.OpenAI.ImageGenTool? value) => new Tool(value); + /// /// /// @@ -622,6 +662,11 @@ public Tool(global::tryAGI.OpenAI.LocalShellToolParam? value) LocalShell = value; } + /// + /// + /// + public static Tool FromLocalShell(global::tryAGI.OpenAI.LocalShellToolParam? value) => new Tool(value); + /// /// /// @@ -640,6 +685,11 @@ public Tool(global::tryAGI.OpenAI.FunctionShellToolParam? value) Shell = value; } + /// + /// + /// + public static Tool FromShell(global::tryAGI.OpenAI.FunctionShellToolParam? value) => new Tool(value); + /// /// /// @@ -658,6 +708,11 @@ public Tool(global::tryAGI.OpenAI.CustomToolParam? value) Custom = value; } + /// + /// + /// + public static Tool FromCustom(global::tryAGI.OpenAI.CustomToolParam? value) => new Tool(value); + /// /// /// @@ -676,6 +731,11 @@ public Tool(global::tryAGI.OpenAI.NamespaceToolParam? value) Namespace = value; } + /// + /// + /// + public static Tool FromNamespace(global::tryAGI.OpenAI.NamespaceToolParam? value) => new Tool(value); + /// /// /// @@ -694,6 +754,11 @@ public Tool(global::tryAGI.OpenAI.ToolSearchToolParam? value) ToolSearch = value; } + /// + /// + /// + public static Tool FromToolSearch(global::tryAGI.OpenAI.ToolSearchToolParam? value) => new Tool(value); + /// /// /// @@ -712,6 +777,11 @@ public Tool(global::tryAGI.OpenAI.WebSearchPreviewTool? value) WebSearchPreview = value; } + /// + /// + /// + public static Tool FromWebSearchPreview(global::tryAGI.OpenAI.WebSearchPreviewTool? value) => new Tool(value); + /// /// /// @@ -730,6 +800,11 @@ public Tool(global::tryAGI.OpenAI.ApplyPatchToolParam? value) ApplyPatch = value; } + /// + /// + /// + public static Tool FromApplyPatch(global::tryAGI.OpenAI.ApplyPatchToolParam? value) => new Tool(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs index b47bc4c8..cafab4fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs @@ -273,6 +273,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.ToolChoiceOptions? value) ToolChoiceMode = value; } + /// + /// + /// + public static ToolChoiceParam FromToolChoiceMode(global::tryAGI.OpenAI.ToolChoiceOptions? value) => new ToolChoiceParam(value); + /// /// /// @@ -291,6 +296,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.ToolChoiceAllowed? value) AllowedTools = value; } + /// + /// + /// + public static ToolChoiceParam FromAllowedTools(global::tryAGI.OpenAI.ToolChoiceAllowed? value) => new ToolChoiceParam(value); + /// /// /// @@ -309,6 +319,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.ToolChoiceTypes? value) HostedTool = value; } + /// + /// + /// + public static ToolChoiceParam FromHostedTool(global::tryAGI.OpenAI.ToolChoiceTypes? value) => new ToolChoiceParam(value); + /// /// /// @@ -327,6 +342,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.ToolChoiceFunction? value) FunctionTool = value; } + /// + /// + /// + public static ToolChoiceParam FromFunctionTool(global::tryAGI.OpenAI.ToolChoiceFunction? value) => new ToolChoiceParam(value); + /// /// /// @@ -345,6 +365,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.ToolChoiceMCP? value) McpTool = value; } + /// + /// + /// + public static ToolChoiceParam FromMcpTool(global::tryAGI.OpenAI.ToolChoiceMCP? value) => new ToolChoiceParam(value); + /// /// /// @@ -363,6 +388,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.ToolChoiceCustom? value) CustomTool = value; } + /// + /// + /// + public static ToolChoiceParam FromCustomTool(global::tryAGI.OpenAI.ToolChoiceCustom? value) => new ToolChoiceParam(value); + /// /// /// @@ -381,6 +411,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.SpecificApplyPatchParam? value) SpecificApplyPatchToolChoice = value; } + /// + /// + /// + public static ToolChoiceParam FromSpecificApplyPatchToolChoice(global::tryAGI.OpenAI.SpecificApplyPatchParam? value) => new ToolChoiceParam(value); + /// /// /// @@ -399,6 +434,11 @@ public ToolChoiceParam(global::tryAGI.OpenAI.SpecificFunctionShellParam? value) SpecificShellToolChoice = value; } + /// + /// + /// + public static ToolChoiceParam FromSpecificShellToolChoice(global::tryAGI.OpenAI.SpecificFunctionShellParam? value) => new ToolChoiceParam(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs index a68467f2..4c054063 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs @@ -91,6 +91,11 @@ public ToolsItem13(global::tryAGI.OpenAI.FunctionToolParam? value) Function = value; } + /// + /// + /// + public static ToolsItem13 FromFunction(global::tryAGI.OpenAI.FunctionToolParam? value) => new ToolsItem13(value); + /// /// /// @@ -109,6 +114,11 @@ public ToolsItem13(global::tryAGI.OpenAI.CustomToolParam? value) Custom = value; } + /// + /// + /// + public static ToolsItem13 FromCustom(global::tryAGI.OpenAI.CustomToolParam? value) => new ToolsItem13(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs index 16e1c8cf..cbb3e0f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs @@ -90,6 +90,11 @@ public TranscriptionChunkingStrategy(global::tryAGI.OpenAI.TranscriptionChunking Enum = value; } + /// + /// + /// + public static TranscriptionChunkingStrategy FromEnum(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? value) => new TranscriptionChunkingStrategy(value); + /// /// /// @@ -108,6 +113,11 @@ public TranscriptionChunkingStrategy(global::tryAGI.OpenAI.VadConfig? value) VadConfig = value; } + /// + /// + /// + public static TranscriptionChunkingStrategy FromVadConfig(global::tryAGI.OpenAI.VadConfig? value) => new TranscriptionChunkingStrategy(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs index 83a7a08a..212118e3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs @@ -86,6 +86,11 @@ public VideoModel(string? value) VideoModelVariant1 = value; } + /// + /// + /// + public static VideoModel FromVideoModelVariant1(string? value) => new VideoModel(value); + /// /// /// @@ -104,6 +109,11 @@ public VideoModel(global::tryAGI.OpenAI.VideoModelEnum? value) Enum = value; } + /// + /// + /// + public static VideoModel FromEnum(global::tryAGI.OpenAI.VideoModelEnum? value) => new VideoModel(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs index cd415efb..ceb5bde3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs @@ -86,6 +86,11 @@ public VoiceIdsOrCustomVoice(global::tryAGI.OpenAI.VoiceIdsShared? value) Shared = value; } + /// + /// + /// + public static VoiceIdsOrCustomVoice FromShared(global::tryAGI.OpenAI.VoiceIdsShared? value) => new VoiceIdsOrCustomVoice(value); + /// /// /// @@ -104,6 +109,11 @@ public VoiceIdsOrCustomVoice(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2 VoiceIdsOrCustomVoiceVariant2 = value; } + /// + /// + /// + public static VoiceIdsOrCustomVoice FromVoiceIdsOrCustomVoiceVariant2(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? value) => new VoiceIdsOrCustomVoice(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs index ca94ed62..f10ff473 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs @@ -86,6 +86,11 @@ public VoiceIdsShared(string? value) VoiceIdsSharedVariant1 = value; } + /// + /// + /// + public static VoiceIdsShared FromVoiceIdsSharedVariant1(string? value) => new VoiceIdsShared(value); + /// /// /// @@ -104,6 +109,11 @@ public VoiceIdsShared(global::tryAGI.OpenAI.VoiceIdsSharedEnum? value) Enum = value; } + /// + /// + /// + public static VoiceIdsShared FromEnum(global::tryAGI.OpenAI.VoiceIdsSharedEnum? value) => new VoiceIdsShared(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs index 28da9b87..139c5755 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs @@ -122,6 +122,11 @@ public WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionSearch? valu Search = value; } + /// + /// + /// + public static WebSearchToolCallAction FromSearch(global::tryAGI.OpenAI.WebSearchActionSearch? value) => new WebSearchToolCallAction(value); + /// /// /// @@ -140,6 +145,11 @@ public WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionOpenPage? va OpenPage = value; } + /// + /// + /// + public static WebSearchToolCallAction FromOpenPage(global::tryAGI.OpenAI.WebSearchActionOpenPage? value) => new WebSearchToolCallAction(value); + /// /// /// @@ -158,6 +168,11 @@ public WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionFind? value) FindInPage = value; } + /// + /// + /// + public static WebSearchToolCallAction FromFindInPage(global::tryAGI.OpenAI.WebSearchActionFind? value) => new WebSearchToolCallAction(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs index e36cadfc..02ebc545 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs @@ -85,6 +85,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -103,6 +108,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs index 7032c2e7..d7d3ee2c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs @@ -115,6 +115,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -133,6 +138,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// @@ -151,6 +161,11 @@ public OneOf(T3? value) Value3 = value; } + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs index 7939ec88..9773ebeb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs @@ -145,6 +145,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -163,6 +168,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// @@ -181,6 +191,11 @@ public OneOf(T3? value) Value3 = value; } + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + /// /// /// @@ -199,6 +214,11 @@ public OneOf(T4? value) Value4 = value; } + /// + /// + /// + public static OneOf FromValue4(T4? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs index c76280b0..96cf2d17 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs @@ -175,6 +175,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -193,6 +198,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// @@ -211,6 +221,11 @@ public OneOf(T3? value) Value3 = value; } + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + /// /// /// @@ -229,6 +244,11 @@ public OneOf(T4? value) Value4 = value; } + /// + /// + /// + public static OneOf FromValue4(T4? value) => new OneOf(value); + /// /// /// @@ -247,6 +267,11 @@ public OneOf(T5? value) Value5 = value; } + /// + /// + /// + public static OneOf FromValue5(T5? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs index ab708d07..3d6ee8be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs @@ -54,6 +54,156 @@ public sealed class AutoSDKClientOptions Hooks.Add(hook ?? throw new global::System.ArgumentNullException(nameof(hook))); return this; } + + /// + /// Optional per-request authorization provider invoked before each request is sent. + /// Set this when the client is registered as a singleton in DI but each call needs + /// a fresh credential resolved from a provider, secret-store, or session — instead + /// of mutating the shared Authorizations list at construction time. + /// + public global::tryAGI.OpenAI.IAutoSDKAuthorizationProvider? AuthorizationProvider { get; set; } + + /// + /// Convenience helper that registers + /// using so request-level auth is resolved without + /// touching shared client state. + /// + /// + public global::tryAGI.OpenAI.AutoSDKClientOptions UseAuthorizationProvider( + global::tryAGI.OpenAI.IAutoSDKAuthorizationProvider provider) + { + AuthorizationProvider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + if (Hooks.Find(static x => x is global::tryAGI.OpenAI.AutoSDKAuthorizationProviderHook) == null) + { + Hooks.Add(new global::tryAGI.OpenAI.AutoSDKAuthorizationProviderHook()); + } + + return this; + } + } + + /// + /// A request-level authorization value supplied by . + /// Mirrors the runtime fields the SDK applies for HTTP / OAuth2 / API-key auth without + /// requiring the consumer to construct the generated EndPointAuthorization type. + /// + public readonly struct AutoSDKAuthorizationValue + { + /// + /// Initializes a new . + /// + /// + /// + /// + /// + /// + public AutoSDKAuthorizationValue( + string value, + string scheme = "Bearer", + string? headerName = null, + string location = "Header", + string type = "Http") + { + Value = value ?? string.Empty; + Scheme = string.IsNullOrWhiteSpace(scheme) ? "Bearer" : scheme; + HeaderName = headerName ?? string.Empty; + Location = string.IsNullOrWhiteSpace(location) ? "Header" : location; + Type = string.IsNullOrWhiteSpace(type) ? "Http" : type; + } + + /// The credential value (token, API key, etc.). + public string Value { get; } + + /// The HTTP authorization scheme — typically Bearer, Basic, or Token. + public string Scheme { get; } + + /// The custom header name when is ApiKey; ignored for HTTP/OAuth2 auth. + public string HeaderName { get; } + + /// The credential location — Header, Query, or Cookie. + public string Location { get; } + + /// The auth type — Http, OAuth2, OpenIdConnect, or ApiKey. + public string Type { get; } + + /// Convenience factory for a Bearer token. + public static global::tryAGI.OpenAI.AutoSDKAuthorizationValue Bearer(string token) => new(value: token, scheme: "Bearer"); + + /// Convenience factory for an API-key header. + public static global::tryAGI.OpenAI.AutoSDKAuthorizationValue ApiKeyHeader(string name, string value) => + new(value: value, headerName: name, location: "Header", type: "ApiKey"); + } + + /// + /// Resolves request-level authorization values without mutating the shared client + /// authorization list. Implementations should be safe to invoke concurrently — + /// the hook calls them once per outgoing request. + /// + public interface IAutoSDKAuthorizationProvider + { + /// + /// Returns one or more values to apply to + /// the current request, or an empty list / null to leave the request as-is. + /// + /// + global::System.Threading.Tasks.Task?> ResolveAsync( + global::tryAGI.OpenAI.AutoSDKHookContext context); + } + + /// + /// Built-in that consults + /// before every outgoing + /// request and stamps the resolved values onto the . + /// + public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.AutoSDKHook + { + /// + public override async global::System.Threading.Tasks.Task OnBeforeRequestAsync( + global::tryAGI.OpenAI.AutoSDKHookContext context) + { + context = context ?? throw new global::System.ArgumentNullException(nameof(context)); + + var provider = context.ClientOptions?.AuthorizationProvider; + if (provider == null || context.Request == null) + { + return; + } + + var resolved = await provider.ResolveAsync(context).ConfigureAwait(false); + if (resolved == null || resolved.Count == 0) + { + return; + } + + for (var index = 0; index < resolved.Count; index++) + { + ApplyAuthorization(context.Request, resolved[index]); + } + } + + private static void ApplyAuthorization( + global::System.Net.Http.HttpRequestMessage request, + global::tryAGI.OpenAI.AutoSDKAuthorizationValue authorization) + { + switch (authorization.Type) + { + case "Http": + case "OAuth2": + case "OpenIdConnect": + request.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: authorization.Scheme, + parameter: authorization.Value); + break; + case "ApiKey": + if (string.Equals(authorization.Location, "Header", global::System.StringComparison.OrdinalIgnoreCase) && + !string.IsNullOrEmpty(authorization.HeaderName)) + { + request.Headers.Remove(authorization.HeaderName); + request.Headers.TryAddWithoutValidation(authorization.HeaderName, authorization.Value ?? string.Empty); + } + break; + } + } } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs index e07e7b0d..8190538b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs @@ -85,6 +85,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -103,6 +108,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs index 517db659..58d7d748 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs @@ -116,6 +116,11 @@ public RealtimeAudioFormats(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsP PcmAudioFormat = value; } + /// + /// + /// + public static RealtimeAudioFormats FromPcmAudioFormat(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmAudioFormat? value) => new RealtimeAudioFormats(value); + /// /// /// @@ -134,6 +139,11 @@ public RealtimeAudioFormats(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsP PcmuAudioFormat = value; } + /// + /// + /// + public static RealtimeAudioFormats FromPcmuAudioFormat(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmuAudioFormat? value) => new RealtimeAudioFormats(value); + /// /// /// @@ -152,6 +162,11 @@ public RealtimeAudioFormats(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsP PcmaAudioFormat = value; } + /// + /// + /// + public static RealtimeAudioFormats FromPcmaAudioFormat(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmaAudioFormat? value) => new RealtimeAudioFormats(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs index 88a24a9b..0f93bf00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs @@ -426,6 +426,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventCon ConversationItemCreate = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemCreate(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate? value) => new RealtimeClientEvent(value); + /// /// /// @@ -444,6 +449,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventCon ConversationItemDelete = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemDelete(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete? value) => new RealtimeClientEvent(value); + /// /// /// @@ -462,6 +472,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventCon ConversationItemRetrieve = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemRetrieve(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve? value) => new RealtimeClientEvent(value); + /// /// /// @@ -480,6 +495,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventCon ConversationItemTruncate = value; } + /// + /// + /// + public static RealtimeClientEvent FromConversationItemTruncate(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate? value) => new RealtimeClientEvent(value); + /// /// /// @@ -498,6 +518,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInp InputAudioBufferAppend = value; } + /// + /// + /// + public static RealtimeClientEvent FromInputAudioBufferAppend(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend? value) => new RealtimeClientEvent(value); + /// /// /// @@ -516,6 +541,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInp InputAudioBufferClear = value; } + /// + /// + /// + public static RealtimeClientEvent FromInputAudioBufferClear(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear? value) => new RealtimeClientEvent(value); + /// /// /// @@ -534,6 +564,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOut OutputAudioBufferClear = value; } + /// + /// + /// + public static RealtimeClientEvent FromOutputAudioBufferClear(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear? value) => new RealtimeClientEvent(value); + /// /// /// @@ -552,6 +587,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInp InputAudioBufferCommit = value; } + /// + /// + /// + public static RealtimeClientEvent FromInputAudioBufferCommit(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit? value) => new RealtimeClientEvent(value); + /// /// /// @@ -570,6 +610,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventRes ResponseCancel = value; } + /// + /// + /// + public static RealtimeClientEvent FromResponseCancel(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel? value) => new RealtimeClientEvent(value); + /// /// /// @@ -588,6 +633,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventRes ResponseCreate = value; } + /// + /// + /// + public static RealtimeClientEvent FromResponseCreate(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate? value) => new RealtimeClientEvent(value); + /// /// /// @@ -606,6 +656,11 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSes SessionUpdate = value; } + /// + /// + /// + public static RealtimeClientEvent FromSessionUpdate(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate? value) => new RealtimeClientEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs index da3bdff7..d5094d20 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs @@ -301,6 +301,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeConversat Message1 = value; } + /// + /// + /// + public static RealtimeConversationItem FromMessage1(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem? value) => new RealtimeConversationItem(value); + /// /// /// @@ -319,6 +324,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeConversat Message2 = value; } + /// + /// + /// + public static RealtimeConversationItem FromMessage2(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser? value) => new RealtimeConversationItem(value); + /// /// /// @@ -337,6 +347,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeConversat Message3 = value; } + /// + /// + /// + public static RealtimeConversationItem FromMessage3(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant? value) => new RealtimeConversationItem(value); + /// /// /// @@ -355,6 +370,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeConversat FunctionCall = value; } + /// + /// + /// + public static RealtimeConversationItem FromFunctionCall(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall? value) => new RealtimeConversationItem(value); + /// /// /// @@ -373,6 +393,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeConversat FunctionCallOutput = value; } + /// + /// + /// + public static RealtimeConversationItem FromFunctionCallOutput(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput? value) => new RealtimeConversationItem(value); + /// /// /// @@ -391,6 +416,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprov McpApprovalResponse = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpApprovalResponse(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse? value) => new RealtimeConversationItem(value); + /// /// /// @@ -409,6 +439,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTo McpListTools = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpListTools(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools? value) => new RealtimeConversationItem(value); + /// /// /// @@ -427,6 +462,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCa McpCall = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpCall(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall? value) => new RealtimeConversationItem(value); + /// /// /// @@ -445,6 +485,11 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprov McpApprovalRequest = value; } + /// + /// + /// + public static RealtimeConversationItem FromMcpApprovalRequest(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest? value) => new RealtimeConversationItem(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs index a2b4f3ac..5f596982 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs @@ -1500,6 +1500,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationCreated(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1518,6 +1523,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemCreated(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1536,6 +1546,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemDeleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemDeleted(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1554,6 +1569,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemInputAudioTranscriptionCompleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionCompleted(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1572,6 +1592,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemInputAudioTranscriptionDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionDelta(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1590,6 +1615,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemInputAudioTranscriptionFailed = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionFailed(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1608,6 +1638,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemRetrieved = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemRetrieved(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1626,6 +1661,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemTruncated = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemTruncated(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1644,6 +1684,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventErr Error = value; } + /// + /// + /// + public static RealtimeServerEvent FromError(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1662,6 +1707,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInp InputAudioBufferCleared = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferCleared(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1680,6 +1730,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInp InputAudioBufferCommitted = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferCommitted(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1698,6 +1753,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInp InputAudioBufferDtmfEventReceived = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferDtmfEventReceived(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1716,6 +1776,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInp InputAudioBufferSpeechStarted = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferSpeechStarted(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1734,6 +1799,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInp InputAudioBufferSpeechStopped = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferSpeechStopped(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1752,6 +1822,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRat RateLimitsUpdated = value; } + /// + /// + /// + public static RealtimeServerEvent FromRateLimitsUpdated(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1770,6 +1845,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputAudioDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioDelta(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1788,6 +1868,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputAudioDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1806,6 +1891,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputAudioTranscriptDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioTranscriptDelta(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1824,6 +1914,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputAudioTranscriptDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputAudioTranscriptDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1842,6 +1937,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseContentPartAdded = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseContentPartAdded(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1860,6 +1960,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseContentPartDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseContentPartDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1878,6 +1983,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseCreated(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1896,6 +2006,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1914,6 +2029,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseFunctionCallArgumentsDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseFunctionCallArgumentsDelta(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1932,6 +2052,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseFunctionCallArgumentsDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseFunctionCallArgumentsDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1950,6 +2075,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputItemAdded = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputItemAdded(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1968,6 +2098,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputItemDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputItemDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -1986,6 +2121,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputTextDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputTextDelta(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2004,6 +2144,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseOutputTextDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseOutputTextDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2022,6 +2167,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSes SessionCreated = value; } + /// + /// + /// + public static RealtimeServerEvent FromSessionCreated(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2040,6 +2190,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSes SessionUpdated = value; } + /// + /// + /// + public static RealtimeServerEvent FromSessionUpdated(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2058,6 +2213,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOut OutputAudioBufferStarted = value; } + /// + /// + /// + public static RealtimeServerEvent FromOutputAudioBufferStarted(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2076,6 +2236,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOut OutputAudioBufferStopped = value; } + /// + /// + /// + public static RealtimeServerEvent FromOutputAudioBufferStopped(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2094,6 +2259,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOut OutputAudioBufferCleared = value; } + /// + /// + /// + public static RealtimeServerEvent FromOutputAudioBufferCleared(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2112,6 +2282,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemAdded = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemAdded(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2130,6 +2305,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2148,6 +2328,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInp InputAudioBufferTimeoutTriggered = value; } + /// + /// + /// + public static RealtimeServerEvent FromInputAudioBufferTimeoutTriggered(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2166,6 +2351,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventCon ConversationItemInputAudioTranscriptionSegment = value; } + /// + /// + /// + public static RealtimeServerEvent FromConversationItemInputAudioTranscriptionSegment(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2184,6 +2374,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCP McpListToolsInProgress = value; } + /// + /// + /// + public static RealtimeServerEvent FromMcpListToolsInProgress(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2202,6 +2397,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCP McpListToolsCompleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromMcpListToolsCompleted(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2220,6 +2420,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCP McpListToolsFailed = value; } + /// + /// + /// + public static RealtimeServerEvent FromMcpListToolsFailed(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2238,6 +2443,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseMcpCallArgumentsDelta = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallArgumentsDelta(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2256,6 +2466,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseMcpCallArgumentsDone = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallArgumentsDone(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2274,6 +2489,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseMcpCallInProgress = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallInProgress(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2292,6 +2512,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseMcpCallCompleted = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallCompleted(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted? value) => new RealtimeServerEvent(value); + /// /// /// @@ -2310,6 +2535,11 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes ResponseMcpCallFailed = value; } + /// + /// + /// + public static RealtimeServerEvent FromResponseMcpCallFailed(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed? value) => new RealtimeServerEvent(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs index eab2f4f4..29137938 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs @@ -89,6 +89,11 @@ public RealtimeTruncation(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum? Enum = value; } + /// + /// + /// + public static RealtimeTruncation FromEnum(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum? value) => new RealtimeTruncation(value); + /// /// /// @@ -107,6 +112,11 @@ public RealtimeTruncation(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2 RetentionRatioTruncation = value; } + /// + /// + /// + public static RealtimeTruncation FromRetentionRatioTruncation(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2? value) => new RealtimeTruncation(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index d5d8f7b7..e302546c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -95,6 +95,11 @@ public RealtimeTurnDetectionRealtimeTurnDetection1(global::tryAGI.OpenAI.Realtim ServerVad = value; } + /// + /// + /// + public static RealtimeTurnDetectionRealtimeTurnDetection1 FromServerVad(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? value) => new RealtimeTurnDetectionRealtimeTurnDetection1(value); + /// /// /// @@ -113,6 +118,11 @@ public RealtimeTurnDetectionRealtimeTurnDetection1(global::tryAGI.OpenAI.Realtim SemanticVad = value; } + /// + /// + /// + public static RealtimeTurnDetectionRealtimeTurnDetection1 FromSemanticVad(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? value) => new RealtimeTurnDetectionRealtimeTurnDetection1(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs index ea5eee0d..c4b5a21e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs @@ -86,6 +86,11 @@ public VoiceIdsOrCustomVoice(global::tryAGI.OpenAI.Realtime.VoiceIdsShared? valu Shared = value; } + /// + /// + /// + public static VoiceIdsOrCustomVoice FromShared(global::tryAGI.OpenAI.Realtime.VoiceIdsShared? value) => new VoiceIdsOrCustomVoice(value); + /// /// /// @@ -104,6 +109,11 @@ public VoiceIdsOrCustomVoice(global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoic VoiceIdsOrCustomVoiceVariant2 = value; } + /// + /// + /// + public static VoiceIdsOrCustomVoice FromVoiceIdsOrCustomVoiceVariant2(global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2? value) => new VoiceIdsOrCustomVoice(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs index 3fd4d15d..c71336cb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs @@ -86,6 +86,11 @@ public VoiceIdsShared(string? value) VoiceIdsSharedVariant1 = value; } + /// + /// + /// + public static VoiceIdsShared FromVoiceIdsSharedVariant1(string? value) => new VoiceIdsShared(value); + /// /// /// @@ -104,6 +109,11 @@ public VoiceIdsShared(global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum? value) Enum = value; } + /// + /// + /// + public static VoiceIdsShared FromEnum(global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum? value) => new VoiceIdsShared(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.2.g.cs index 76f3a760..58fcd2cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.2.g.cs @@ -85,6 +85,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -103,6 +108,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.3.g.cs index 09090d0d..fe49de0a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.3.g.cs @@ -115,6 +115,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -133,6 +138,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// @@ -151,6 +161,11 @@ public OneOf(T3? value) Value3 = value; } + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.4.g.cs index abfadad8..05227d23 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OneOf.4.g.cs @@ -145,6 +145,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -163,6 +168,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// @@ -181,6 +191,11 @@ public OneOf(T3? value) Value3 = value; } + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + /// /// /// @@ -199,6 +214,11 @@ public OneOf(T4? value) Value4 = value; } + /// + /// + /// + public static OneOf FromValue4(T4? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs index c7452e2f..32a4635f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs @@ -54,6 +54,156 @@ public sealed class AutoSDKClientOptions Hooks.Add(hook ?? throw new global::System.ArgumentNullException(nameof(hook))); return this; } + + /// + /// Optional per-request authorization provider invoked before each request is sent. + /// Set this when the client is registered as a singleton in DI but each call needs + /// a fresh credential resolved from a provider, secret-store, or session — instead + /// of mutating the shared Authorizations list at construction time. + /// + public global::tryAGI.OpenAI.Realtime.IAutoSDKAuthorizationProvider? AuthorizationProvider { get; set; } + + /// + /// Convenience helper that registers + /// using so request-level auth is resolved without + /// touching shared client state. + /// + /// + public global::tryAGI.OpenAI.Realtime.AutoSDKClientOptions UseAuthorizationProvider( + global::tryAGI.OpenAI.Realtime.IAutoSDKAuthorizationProvider provider) + { + AuthorizationProvider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + if (Hooks.Find(static x => x is global::tryAGI.OpenAI.Realtime.AutoSDKAuthorizationProviderHook) == null) + { + Hooks.Add(new global::tryAGI.OpenAI.Realtime.AutoSDKAuthorizationProviderHook()); + } + + return this; + } + } + + /// + /// A request-level authorization value supplied by . + /// Mirrors the runtime fields the SDK applies for HTTP / OAuth2 / API-key auth without + /// requiring the consumer to construct the generated EndPointAuthorization type. + /// + public readonly struct AutoSDKAuthorizationValue + { + /// + /// Initializes a new . + /// + /// + /// + /// + /// + /// + public AutoSDKAuthorizationValue( + string value, + string scheme = "Bearer", + string? headerName = null, + string location = "Header", + string type = "Http") + { + Value = value ?? string.Empty; + Scheme = string.IsNullOrWhiteSpace(scheme) ? "Bearer" : scheme; + HeaderName = headerName ?? string.Empty; + Location = string.IsNullOrWhiteSpace(location) ? "Header" : location; + Type = string.IsNullOrWhiteSpace(type) ? "Http" : type; + } + + /// The credential value (token, API key, etc.). + public string Value { get; } + + /// The HTTP authorization scheme — typically Bearer, Basic, or Token. + public string Scheme { get; } + + /// The custom header name when is ApiKey; ignored for HTTP/OAuth2 auth. + public string HeaderName { get; } + + /// The credential location — Header, Query, or Cookie. + public string Location { get; } + + /// The auth type — Http, OAuth2, OpenIdConnect, or ApiKey. + public string Type { get; } + + /// Convenience factory for a Bearer token. + public static global::tryAGI.OpenAI.Realtime.AutoSDKAuthorizationValue Bearer(string token) => new(value: token, scheme: "Bearer"); + + /// Convenience factory for an API-key header. + public static global::tryAGI.OpenAI.Realtime.AutoSDKAuthorizationValue ApiKeyHeader(string name, string value) => + new(value: value, headerName: name, location: "Header", type: "ApiKey"); + } + + /// + /// Resolves request-level authorization values without mutating the shared client + /// authorization list. Implementations should be safe to invoke concurrently — + /// the hook calls them once per outgoing request. + /// + public interface IAutoSDKAuthorizationProvider + { + /// + /// Returns one or more values to apply to + /// the current request, or an empty list / null to leave the request as-is. + /// + /// + global::System.Threading.Tasks.Task?> ResolveAsync( + global::tryAGI.OpenAI.Realtime.AutoSDKHookContext context); + } + + /// + /// Built-in that consults + /// before every outgoing + /// request and stamps the resolved values onto the . + /// + public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.Realtime.AutoSDKHook + { + /// + public override async global::System.Threading.Tasks.Task OnBeforeRequestAsync( + global::tryAGI.OpenAI.Realtime.AutoSDKHookContext context) + { + context = context ?? throw new global::System.ArgumentNullException(nameof(context)); + + var provider = context.ClientOptions?.AuthorizationProvider; + if (provider == null || context.Request == null) + { + return; + } + + var resolved = await provider.ResolveAsync(context).ConfigureAwait(false); + if (resolved == null || resolved.Count == 0) + { + return; + } + + for (var index = 0; index < resolved.Count; index++) + { + ApplyAuthorization(context.Request, resolved[index]); + } + } + + private static void ApplyAuthorization( + global::System.Net.Http.HttpRequestMessage request, + global::tryAGI.OpenAI.Realtime.AutoSDKAuthorizationValue authorization) + { + switch (authorization.Type) + { + case "Http": + case "OAuth2": + case "OpenIdConnect": + request.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: authorization.Scheme, + parameter: authorization.Value); + break; + case "ApiKey": + if (string.Equals(authorization.Location, "Header", global::System.StringComparison.OrdinalIgnoreCase) && + !string.IsNullOrEmpty(authorization.HeaderName)) + { + request.Headers.Remove(authorization.HeaderName); + request.Headers.TryAddWithoutValidation(authorization.HeaderName, authorization.Value ?? string.Empty); + } + break; + } + } } ///