diff --git a/src/libs/Letta/Generated/Letta.AnyOf.2.g.cs b/src/libs/Letta/Generated/Letta.AnyOf.2.g.cs index 1094c726..5cfce6ff 100644 --- a/src/libs/Letta/Generated/Letta.AnyOf.2.g.cs +++ b/src/libs/Letta/Generated/Letta.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/Letta/Generated/Letta.AnyOf.3.g.cs b/src/libs/Letta/Generated/Letta.AnyOf.3.g.cs index 441ee63f..0507b6ef 100644 --- a/src/libs/Letta/Generated/Letta.AnyOf.3.g.cs +++ b/src/libs/Letta/Generated/Letta.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/Letta/Generated/Letta.AnyOf.4.g.cs b/src/libs/Letta/Generated/Letta.AnyOf.4.g.cs index 2fefbf82..4bc26baa 100644 --- a/src/libs/Letta/Generated/Letta.AnyOf.4.g.cs +++ b/src/libs/Letta/Generated/Letta.AnyOf.4.g.cs @@ -145,6 +145,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -163,6 +168,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// @@ -181,6 +191,11 @@ public AnyOf(T3? value) Value3 = value; } + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + /// /// /// @@ -199,6 +214,11 @@ public AnyOf(T4? value) Value4 = value; } + /// + /// + /// + public static AnyOf FromValue4(T4? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.AnyOf.5.g.cs b/src/libs/Letta/Generated/Letta.AnyOf.5.g.cs index 57fa603a..a3b57159 100644 --- a/src/libs/Letta/Generated/Letta.AnyOf.5.g.cs +++ b/src/libs/Letta/Generated/Letta.AnyOf.5.g.cs @@ -175,6 +175,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -193,6 +198,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// @@ -211,6 +221,11 @@ public AnyOf(T3? value) Value3 = value; } + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + /// /// /// @@ -229,6 +244,11 @@ public AnyOf(T4? value) Value4 = value; } + /// + /// + /// + public static AnyOf FromValue4(T4? value) => new AnyOf(value); + /// /// /// @@ -247,6 +267,11 @@ public AnyOf(T5? value) Value5 = value; } + /// + /// + /// + public static AnyOf FromValue5(T5? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.AnyOf.6.g.cs b/src/libs/Letta/Generated/Letta.AnyOf.6.g.cs index b9f5b58e..444656cc 100644 --- a/src/libs/Letta/Generated/Letta.AnyOf.6.g.cs +++ b/src/libs/Letta/Generated/Letta.AnyOf.6.g.cs @@ -205,6 +205,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -223,6 +228,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// @@ -241,6 +251,11 @@ public AnyOf(T3? value) Value3 = value; } + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + /// /// /// @@ -259,6 +274,11 @@ public AnyOf(T4? value) Value4 = value; } + /// + /// + /// + public static AnyOf FromValue4(T4? value) => new AnyOf(value); + /// /// /// @@ -277,6 +297,11 @@ public AnyOf(T5? value) Value5 = value; } + /// + /// + /// + public static AnyOf FromValue5(T5? value) => new AnyOf(value); + /// /// /// @@ -295,6 +320,11 @@ public AnyOf(T6? value) Value6 = value; } + /// + /// + /// + public static AnyOf FromValue6(T6? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item.g.cs b/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item.g.cs index 00ef7f76..020fa70f 100644 --- a/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item.g.cs @@ -91,6 +91,11 @@ public ApprovalsVariant1Item(global::Letta.ApprovalReturn? value) Approval = value; } + /// + /// + /// + public static ApprovalsVariant1Item FromApproval(global::Letta.ApprovalReturn? value) => new ApprovalsVariant1Item(value); + /// /// /// @@ -109,6 +114,11 @@ public ApprovalsVariant1Item(global::Letta.LettaSchemasLettaMessageToolReturn? v Tool = value; } + /// + /// + /// + public static ApprovalsVariant1Item FromTool(global::Letta.LettaSchemasLettaMessageToolReturn? value) => new ApprovalsVariant1Item(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item2.g.cs b/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item2.g.cs index 629e9efd..4ad60ca3 100644 --- a/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ApprovalsVariant1Item2.g.cs @@ -91,6 +91,11 @@ public ApprovalsVariant1Item2(global::Letta.ApprovalReturn? value) Approval = value; } + /// + /// + /// + public static ApprovalsVariant1Item2 FromApproval(global::Letta.ApprovalReturn? value) => new ApprovalsVariant1Item2(value); + /// /// /// @@ -109,6 +114,11 @@ public ApprovalsVariant1Item2(global::Letta.LettaSchemasLettaMessageToolReturn? Tool = value; } + /// + /// + /// + public static ApprovalsVariant1Item2 FromTool(global::Letta.LettaSchemasLettaMessageToolReturn? value) => new ApprovalsVariant1Item2(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Config.g.cs b/src/libs/Letta/Generated/Letta.Models.Config.g.cs index 2dd718a8..8c9e0763 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config.g.cs @@ -121,6 +121,11 @@ public Config(global::Letta.CreateStdioMCPServer? value) Stdio = value; } + /// + /// + /// + public static Config FromStdio(global::Letta.CreateStdioMCPServer? value) => new Config(value); + /// /// /// @@ -139,6 +144,11 @@ public Config(global::Letta.CreateSSEMCPServer? value) Sse = value; } + /// + /// + /// + public static Config FromSse(global::Letta.CreateSSEMCPServer? value) => new Config(value); + /// /// /// @@ -157,6 +167,11 @@ public Config(global::Letta.CreateStreamableHTTPMCPServer? value) StreamableHttp = value; } + /// + /// + /// + public static Config FromStreamableHttp(global::Letta.CreateStreamableHTTPMCPServer? value) => new Config(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Config4.g.cs b/src/libs/Letta/Generated/Letta.Models.Config4.g.cs index f53c6e7f..1624c32d 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config4.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config4.g.cs @@ -121,6 +121,11 @@ public Config4(global::Letta.LettaSchemasMcpServerUpdateStdioMCPServer? value) Stdio = value; } + /// + /// + /// + public static Config4 FromStdio(global::Letta.LettaSchemasMcpServerUpdateStdioMCPServer? value) => new Config4(value); + /// /// /// @@ -139,6 +144,11 @@ public Config4(global::Letta.LettaSchemasMcpServerUpdateSSEMCPServer? value) Sse = value; } + /// + /// + /// + public static Config4 FromSse(global::Letta.LettaSchemasMcpServerUpdateSSEMCPServer? value) => new Config4(value); + /// /// /// @@ -157,6 +167,11 @@ public Config4(global::Letta.LettaSchemasMcpServerUpdateStreamableHTTPMCPServer? StreamableHttp = value; } + /// + /// + /// + public static Config4 FromStreamableHttp(global::Letta.LettaSchemasMcpServerUpdateStreamableHTTPMCPServer? value) => new Config4(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Config5.g.cs b/src/libs/Letta/Generated/Letta.Models.Config5.g.cs index 2cccb572..9079e364 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config5.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config5.g.cs @@ -91,6 +91,11 @@ public Config5(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVarian SlackChannelReader = value; } + /// + /// + /// + public static Config5 FromSlackChannelReader(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1? value) => new Config5(value); + /// /// /// @@ -109,6 +114,11 @@ public Config5(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVarian CustomWebhook = value; } + /// + /// + /// + public static Config5 FromCustomWebhook(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2? value) => new Config5(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Config6.g.cs b/src/libs/Letta/Generated/Letta.Models.Config6.g.cs index 528a4ff4..6d8babd3 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config6.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config6.g.cs @@ -91,6 +91,11 @@ public Config6(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant SlackChannelReader = value; } + /// + /// + /// + public static Config6 FromSlackChannelReader(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1? value) => new Config6(value); + /// /// /// @@ -109,6 +114,11 @@ public Config6(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant CustomWebhook = value; } + /// + /// + /// + public static Config6 FromCustomWebhook(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2? value) => new Config6(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Config7.g.cs b/src/libs/Letta/Generated/Letta.Models.Config7.g.cs index 30a325c1..a5c56366 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config7.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config7.g.cs @@ -91,6 +91,11 @@ public Config7(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1? SlackChannelReader = value; } + /// + /// + /// + public static Config7 FromSlackChannelReader(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1? value) => new Config7(value); + /// /// /// @@ -109,6 +114,11 @@ public Config7(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? CustomWebhook = value; } + /// + /// + /// + public static Config7 FromCustomWebhook(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? value) => new Config7(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Config8.g.cs b/src/libs/Letta/Generated/Letta.Models.Config8.g.cs index 6493936b..6a91b3c5 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config8.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config8.g.cs @@ -91,6 +91,11 @@ public Config8(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVarian SlackChannelReader = value; } + /// + /// + /// + public static Config8 FromSlackChannelReader(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1? value) => new Config8(value); + /// /// /// @@ -109,6 +114,11 @@ public Config8(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVarian CustomWebhook = value; } + /// + /// + /// + public static Config8 FromCustomWebhook(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2? value) => new Config8(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Config9.g.cs b/src/libs/Letta/Generated/Letta.Models.Config9.g.cs index d17768af..8da1c63a 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config9.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config9.g.cs @@ -91,6 +91,11 @@ public Config9(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipeli SlackChannelReader = value; } + /// + /// + /// + public static Config9 FromSlackChannelReader(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1? value) => new Config9(value); + /// /// /// @@ -109,6 +114,11 @@ public Config9(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipeli CustomWebhook = value; } + /// + /// + /// + public static Config9 FromCustomWebhook(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2? value) => new Config9(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ContentVariant1Item.g.cs b/src/libs/Letta/Generated/Letta.Models.ContentVariant1Item.g.cs index 30176bac..b54a5778 100644 --- a/src/libs/Letta/Generated/Letta.Models.ContentVariant1Item.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ContentVariant1Item.g.cs @@ -271,6 +271,11 @@ public ContentVariant1Item(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static ContentVariant1Item FromText(global::Letta.TextContent? value) => new ContentVariant1Item(value); + /// /// /// @@ -289,6 +294,11 @@ public ContentVariant1Item(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static ContentVariant1Item FromImage(global::Letta.ImageContent? value) => new ContentVariant1Item(value); + /// /// /// @@ -307,6 +317,11 @@ public ContentVariant1Item(global::Letta.ToolCallContent? value) ToolCall = value; } + /// + /// + /// + public static ContentVariant1Item FromToolCall(global::Letta.ToolCallContent? value) => new ContentVariant1Item(value); + /// /// /// @@ -325,6 +340,11 @@ public ContentVariant1Item(global::Letta.ToolReturnContent? value) ToolReturn = value; } + /// + /// + /// + public static ContentVariant1Item FromToolReturn(global::Letta.ToolReturnContent? value) => new ContentVariant1Item(value); + /// /// /// @@ -343,6 +363,11 @@ public ContentVariant1Item(global::Letta.ReasoningContent? value) OmittedReasoning1 = value; } + /// + /// + /// + public static ContentVariant1Item FromOmittedReasoning1(global::Letta.ReasoningContent? value) => new ContentVariant1Item(value); + /// /// /// @@ -361,6 +386,11 @@ public ContentVariant1Item(global::Letta.RedactedReasoningContent? value) RedactedReasoning = value; } + /// + /// + /// + public static ContentVariant1Item FromRedactedReasoning(global::Letta.RedactedReasoningContent? value) => new ContentVariant1Item(value); + /// /// /// @@ -379,6 +409,11 @@ public ContentVariant1Item(global::Letta.OmittedReasoningContent? value) OmittedReasoning2 = value; } + /// + /// + /// + public static ContentVariant1Item FromOmittedReasoning2(global::Letta.OmittedReasoningContent? value) => new ContentVariant1Item(value); + /// /// /// @@ -397,6 +432,11 @@ public ContentVariant1Item(global::Letta.SummarizedReasoningContent? value) SummarizedReasoning = value; } + /// + /// + /// + public static ContentVariant1Item FromSummarizedReasoning(global::Letta.SummarizedReasoningContent? value) => new ContentVariant1Item(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs b/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs index 1090edf3..81bc1f3b 100644 --- a/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs @@ -61,6 +61,11 @@ public DataItem(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenR Agent = value; } + /// + /// + /// + public static DataItem FromAgent(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1? value) => new DataItem(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs b/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs index d2987619..f6fe4f71 100644 --- a/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs @@ -61,6 +61,11 @@ public DataItem2(global::Letta.ClientSideAccessTokensListClientSideAccessTokensR Agent = value; } + /// + /// + /// + public static DataItem2 FromAgent(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1? value) => new DataItem2(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs b/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs index 81c512f3..633ea12e 100644 --- a/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs @@ -181,6 +181,11 @@ public EventsItem(global::Letta.MetadataSendTelemetryRequestEventVariant1? value SessionStart = value; } + /// + /// + /// + public static EventsItem FromSessionStart(global::Letta.MetadataSendTelemetryRequestEventVariant1? value) => new EventsItem(value); + /// /// /// @@ -199,6 +204,11 @@ public EventsItem(global::Letta.MetadataSendTelemetryRequestEventVariant2? value SessionEnd = value; } + /// + /// + /// + public static EventsItem FromSessionEnd(global::Letta.MetadataSendTelemetryRequestEventVariant2? value) => new EventsItem(value); + /// /// /// @@ -217,6 +227,11 @@ public EventsItem(global::Letta.MetadataSendTelemetryRequestEventVariant3? value ToolUsage = value; } + /// + /// + /// + public static EventsItem FromToolUsage(global::Letta.MetadataSendTelemetryRequestEventVariant3? value) => new EventsItem(value); + /// /// /// @@ -235,6 +250,11 @@ public EventsItem(global::Letta.MetadataSendTelemetryRequestEventVariant4? value Error = value; } + /// + /// + /// + public static EventsItem FromError(global::Letta.MetadataSendTelemetryRequestEventVariant4? value) => new EventsItem(value); + /// /// /// @@ -253,6 +273,11 @@ public EventsItem(global::Letta.MetadataSendTelemetryRequestEventVariant5? value UserInput = value; } + /// + /// + /// + public static EventsItem FromUserInput(global::Letta.MetadataSendTelemetryRequestEventVariant5? value) => new EventsItem(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item.g.cs b/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item.g.cs index d01f3e7a..9515863b 100644 --- a/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item.g.cs @@ -91,6 +91,11 @@ public FuncResponseVariant2Item(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static FuncResponseVariant2Item FromText(global::Letta.TextContent? value) => new FuncResponseVariant2Item(value); + /// /// /// @@ -109,6 +114,11 @@ public FuncResponseVariant2Item(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static FuncResponseVariant2Item FromImage(global::Letta.ImageContent? value) => new FuncResponseVariant2Item(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item2.g.cs b/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item2.g.cs index f0c8780e..32f7e002 100644 --- a/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.FuncResponseVariant2Item2.g.cs @@ -91,6 +91,11 @@ public FuncResponseVariant2Item2(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static FuncResponseVariant2Item2 FromText(global::Letta.TextContent? value) => new FuncResponseVariant2Item2(value); + /// /// /// @@ -109,6 +114,11 @@ public FuncResponseVariant2Item2(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static FuncResponseVariant2Item2 FromImage(global::Letta.ImageContent? value) => new FuncResponseVariant2Item2(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item.g.cs b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item.g.cs index 3f2bf02a..e6ed7473 100644 --- a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item.g.cs @@ -271,6 +271,11 @@ public InputVariant2Item(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static InputVariant2Item FromText(global::Letta.TextContent? value) => new InputVariant2Item(value); + /// /// /// @@ -289,6 +294,11 @@ public InputVariant2Item(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static InputVariant2Item FromImage(global::Letta.ImageContent? value) => new InputVariant2Item(value); + /// /// /// @@ -307,6 +317,11 @@ public InputVariant2Item(global::Letta.ToolCallContent? value) ToolCall = value; } + /// + /// + /// + public static InputVariant2Item FromToolCall(global::Letta.ToolCallContent? value) => new InputVariant2Item(value); + /// /// /// @@ -325,6 +340,11 @@ public InputVariant2Item(global::Letta.ToolReturnContent? value) ToolReturn = value; } + /// + /// + /// + public static InputVariant2Item FromToolReturn(global::Letta.ToolReturnContent? value) => new InputVariant2Item(value); + /// /// /// @@ -343,6 +363,11 @@ public InputVariant2Item(global::Letta.ReasoningContent? value) OmittedReasoning1 = value; } + /// + /// + /// + public static InputVariant2Item FromOmittedReasoning1(global::Letta.ReasoningContent? value) => new InputVariant2Item(value); + /// /// /// @@ -361,6 +386,11 @@ public InputVariant2Item(global::Letta.RedactedReasoningContent? value) RedactedReasoning = value; } + /// + /// + /// + public static InputVariant2Item FromRedactedReasoning(global::Letta.RedactedReasoningContent? value) => new InputVariant2Item(value); + /// /// /// @@ -379,6 +409,11 @@ public InputVariant2Item(global::Letta.OmittedReasoningContent? value) OmittedReasoning2 = value; } + /// + /// + /// + public static InputVariant2Item FromOmittedReasoning2(global::Letta.OmittedReasoningContent? value) => new InputVariant2Item(value); + /// /// /// @@ -397,6 +432,11 @@ public InputVariant2Item(global::Letta.SummarizedReasoningContent? value) SummarizedReasoning = value; } + /// + /// + /// + public static InputVariant2Item FromSummarizedReasoning(global::Letta.SummarizedReasoningContent? value) => new InputVariant2Item(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item2.g.cs b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item2.g.cs index 5061682a..2a3c5a1a 100644 --- a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item2.g.cs @@ -271,6 +271,11 @@ public InputVariant2Item2(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static InputVariant2Item2 FromText(global::Letta.TextContent? value) => new InputVariant2Item2(value); + /// /// /// @@ -289,6 +294,11 @@ public InputVariant2Item2(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static InputVariant2Item2 FromImage(global::Letta.ImageContent? value) => new InputVariant2Item2(value); + /// /// /// @@ -307,6 +317,11 @@ public InputVariant2Item2(global::Letta.ToolCallContent? value) ToolCall = value; } + /// + /// + /// + public static InputVariant2Item2 FromToolCall(global::Letta.ToolCallContent? value) => new InputVariant2Item2(value); + /// /// /// @@ -325,6 +340,11 @@ public InputVariant2Item2(global::Letta.ToolReturnContent? value) ToolReturn = value; } + /// + /// + /// + public static InputVariant2Item2 FromToolReturn(global::Letta.ToolReturnContent? value) => new InputVariant2Item2(value); + /// /// /// @@ -343,6 +363,11 @@ public InputVariant2Item2(global::Letta.ReasoningContent? value) OmittedReasoning1 = value; } + /// + /// + /// + public static InputVariant2Item2 FromOmittedReasoning1(global::Letta.ReasoningContent? value) => new InputVariant2Item2(value); + /// /// /// @@ -361,6 +386,11 @@ public InputVariant2Item2(global::Letta.RedactedReasoningContent? value) RedactedReasoning = value; } + /// + /// + /// + public static InputVariant2Item2 FromRedactedReasoning(global::Letta.RedactedReasoningContent? value) => new InputVariant2Item2(value); + /// /// /// @@ -379,6 +409,11 @@ public InputVariant2Item2(global::Letta.OmittedReasoningContent? value) OmittedReasoning2 = value; } + /// + /// + /// + public static InputVariant2Item2 FromOmittedReasoning2(global::Letta.OmittedReasoningContent? value) => new InputVariant2Item2(value); + /// /// /// @@ -397,6 +432,11 @@ public InputVariant2Item2(global::Letta.SummarizedReasoningContent? value) SummarizedReasoning = value; } + /// + /// + /// + public static InputVariant2Item2 FromSummarizedReasoning(global::Letta.SummarizedReasoningContent? value) => new InputVariant2Item2(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item3.g.cs b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item3.g.cs index 8e7c70e2..6afe0fc0 100644 --- a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item3.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item3.g.cs @@ -271,6 +271,11 @@ public InputVariant2Item3(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static InputVariant2Item3 FromText(global::Letta.TextContent? value) => new InputVariant2Item3(value); + /// /// /// @@ -289,6 +294,11 @@ public InputVariant2Item3(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static InputVariant2Item3 FromImage(global::Letta.ImageContent? value) => new InputVariant2Item3(value); + /// /// /// @@ -307,6 +317,11 @@ public InputVariant2Item3(global::Letta.ToolCallContent? value) ToolCall = value; } + /// + /// + /// + public static InputVariant2Item3 FromToolCall(global::Letta.ToolCallContent? value) => new InputVariant2Item3(value); + /// /// /// @@ -325,6 +340,11 @@ public InputVariant2Item3(global::Letta.ToolReturnContent? value) ToolReturn = value; } + /// + /// + /// + public static InputVariant2Item3 FromToolReturn(global::Letta.ToolReturnContent? value) => new InputVariant2Item3(value); + /// /// /// @@ -343,6 +363,11 @@ public InputVariant2Item3(global::Letta.ReasoningContent? value) OmittedReasoning1 = value; } + /// + /// + /// + public static InputVariant2Item3 FromOmittedReasoning1(global::Letta.ReasoningContent? value) => new InputVariant2Item3(value); + /// /// /// @@ -361,6 +386,11 @@ public InputVariant2Item3(global::Letta.RedactedReasoningContent? value) RedactedReasoning = value; } + /// + /// + /// + public static InputVariant2Item3 FromRedactedReasoning(global::Letta.RedactedReasoningContent? value) => new InputVariant2Item3(value); + /// /// /// @@ -379,6 +409,11 @@ public InputVariant2Item3(global::Letta.OmittedReasoningContent? value) OmittedReasoning2 = value; } + /// + /// + /// + public static InputVariant2Item3 FromOmittedReasoning2(global::Letta.OmittedReasoningContent? value) => new InputVariant2Item3(value); + /// /// /// @@ -397,6 +432,11 @@ public InputVariant2Item3(global::Letta.SummarizedReasoningContent? value) SummarizedReasoning = value; } + /// + /// + /// + public static InputVariant2Item3 FromSummarizedReasoning(global::Letta.SummarizedReasoningContent? value) => new InputVariant2Item3(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item4.g.cs b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item4.g.cs index e5427baf..7735dce6 100644 --- a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item4.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item4.g.cs @@ -271,6 +271,11 @@ public InputVariant2Item4(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static InputVariant2Item4 FromText(global::Letta.TextContent? value) => new InputVariant2Item4(value); + /// /// /// @@ -289,6 +294,11 @@ public InputVariant2Item4(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static InputVariant2Item4 FromImage(global::Letta.ImageContent? value) => new InputVariant2Item4(value); + /// /// /// @@ -307,6 +317,11 @@ public InputVariant2Item4(global::Letta.ToolCallContent? value) ToolCall = value; } + /// + /// + /// + public static InputVariant2Item4 FromToolCall(global::Letta.ToolCallContent? value) => new InputVariant2Item4(value); + /// /// /// @@ -325,6 +340,11 @@ public InputVariant2Item4(global::Letta.ToolReturnContent? value) ToolReturn = value; } + /// + /// + /// + public static InputVariant2Item4 FromToolReturn(global::Letta.ToolReturnContent? value) => new InputVariant2Item4(value); + /// /// /// @@ -343,6 +363,11 @@ public InputVariant2Item4(global::Letta.ReasoningContent? value) OmittedReasoning1 = value; } + /// + /// + /// + public static InputVariant2Item4 FromOmittedReasoning1(global::Letta.ReasoningContent? value) => new InputVariant2Item4(value); + /// /// /// @@ -361,6 +386,11 @@ public InputVariant2Item4(global::Letta.RedactedReasoningContent? value) RedactedReasoning = value; } + /// + /// + /// + public static InputVariant2Item4 FromRedactedReasoning(global::Letta.RedactedReasoningContent? value) => new InputVariant2Item4(value); + /// /// /// @@ -379,6 +409,11 @@ public InputVariant2Item4(global::Letta.OmittedReasoningContent? value) OmittedReasoning2 = value; } + /// + /// + /// + public static InputVariant2Item4 FromOmittedReasoning2(global::Letta.OmittedReasoningContent? value) => new InputVariant2Item4(value); + /// /// /// @@ -397,6 +432,11 @@ public InputVariant2Item4(global::Letta.SummarizedReasoningContent? value) SummarizedReasoning = value; } + /// + /// + /// + public static InputVariant2Item4 FromSummarizedReasoning(global::Letta.SummarizedReasoningContent? value) => new InputVariant2Item4(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item5.g.cs b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item5.g.cs index d9c35bb0..c0d8ead8 100644 --- a/src/libs/Letta/Generated/Letta.Models.InputVariant2Item5.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.InputVariant2Item5.g.cs @@ -271,6 +271,11 @@ public InputVariant2Item5(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static InputVariant2Item5 FromText(global::Letta.TextContent? value) => new InputVariant2Item5(value); + /// /// /// @@ -289,6 +294,11 @@ public InputVariant2Item5(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static InputVariant2Item5 FromImage(global::Letta.ImageContent? value) => new InputVariant2Item5(value); + /// /// /// @@ -307,6 +317,11 @@ public InputVariant2Item5(global::Letta.ToolCallContent? value) ToolCall = value; } + /// + /// + /// + public static InputVariant2Item5 FromToolCall(global::Letta.ToolCallContent? value) => new InputVariant2Item5(value); + /// /// /// @@ -325,6 +340,11 @@ public InputVariant2Item5(global::Letta.ToolReturnContent? value) ToolReturn = value; } + /// + /// + /// + public static InputVariant2Item5 FromToolReturn(global::Letta.ToolReturnContent? value) => new InputVariant2Item5(value); + /// /// /// @@ -343,6 +363,11 @@ public InputVariant2Item5(global::Letta.ReasoningContent? value) OmittedReasoning1 = value; } + /// + /// + /// + public static InputVariant2Item5 FromOmittedReasoning1(global::Letta.ReasoningContent? value) => new InputVariant2Item5(value); + /// /// /// @@ -361,6 +386,11 @@ public InputVariant2Item5(global::Letta.RedactedReasoningContent? value) RedactedReasoning = value; } + /// + /// + /// + public static InputVariant2Item5 FromRedactedReasoning(global::Letta.RedactedReasoningContent? value) => new InputVariant2Item5(value); + /// /// /// @@ -379,6 +409,11 @@ public InputVariant2Item5(global::Letta.OmittedReasoningContent? value) OmittedReasoning2 = value; } + /// + /// + /// + public static InputVariant2Item5 FromOmittedReasoning2(global::Letta.OmittedReasoningContent? value) => new InputVariant2Item5(value); + /// /// /// @@ -397,6 +432,11 @@ public InputVariant2Item5(global::Letta.SummarizedReasoningContent? value) SummarizedReasoning = value; } + /// + /// + /// + public static InputVariant2Item5 FromSummarizedReasoning(global::Letta.SummarizedReasoningContent? value) => new InputVariant2Item5(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.LettaAssistantMessageContentUnion.g.cs b/src/libs/Letta/Generated/Letta.Models.LettaAssistantMessageContentUnion.g.cs index 100ee982..4e0b418e 100644 --- a/src/libs/Letta/Generated/Letta.Models.LettaAssistantMessageContentUnion.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.LettaAssistantMessageContentUnion.g.cs @@ -61,6 +61,11 @@ public LettaAssistantMessageContentUnion(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static LettaAssistantMessageContentUnion FromText(global::Letta.TextContent? value) => new LettaAssistantMessageContentUnion(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.LettaMessageContentUnion.g.cs b/src/libs/Letta/Generated/Letta.Models.LettaMessageContentUnion.g.cs index 95193e2f..1326901f 100644 --- a/src/libs/Letta/Generated/Letta.Models.LettaMessageContentUnion.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.LettaMessageContentUnion.g.cs @@ -241,6 +241,11 @@ public LettaMessageContentUnion(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static LettaMessageContentUnion FromText(global::Letta.TextContent? value) => new LettaMessageContentUnion(value); + /// /// /// @@ -259,6 +264,11 @@ public LettaMessageContentUnion(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static LettaMessageContentUnion FromImage(global::Letta.ImageContent? value) => new LettaMessageContentUnion(value); + /// /// /// @@ -277,6 +287,11 @@ public LettaMessageContentUnion(global::Letta.ToolCallContent? value) ToolCall = value; } + /// + /// + /// + public static LettaMessageContentUnion FromToolCall(global::Letta.ToolCallContent? value) => new LettaMessageContentUnion(value); + /// /// /// @@ -295,6 +310,11 @@ public LettaMessageContentUnion(global::Letta.ToolReturnContent? value) ToolReturn = value; } + /// + /// + /// + public static LettaMessageContentUnion FromToolReturn(global::Letta.ToolReturnContent? value) => new LettaMessageContentUnion(value); + /// /// /// @@ -313,6 +333,11 @@ public LettaMessageContentUnion(global::Letta.ReasoningContent? value) Reasoning = value; } + /// + /// + /// + public static LettaMessageContentUnion FromReasoning(global::Letta.ReasoningContent? value) => new LettaMessageContentUnion(value); + /// /// /// @@ -331,6 +356,11 @@ public LettaMessageContentUnion(global::Letta.RedactedReasoningContent? value) RedactedReasoning = value; } + /// + /// + /// + public static LettaMessageContentUnion FromRedactedReasoning(global::Letta.RedactedReasoningContent? value) => new LettaMessageContentUnion(value); + /// /// /// @@ -349,6 +379,11 @@ public LettaMessageContentUnion(global::Letta.OmittedReasoningContent? value) OmittedReasoning = value; } + /// + /// + /// + public static LettaMessageContentUnion FromOmittedReasoning(global::Letta.OmittedReasoningContent? value) => new LettaMessageContentUnion(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.LettaMessageUnion.g.cs b/src/libs/Letta/Generated/Letta.Models.LettaMessageUnion.g.cs index f8aa84bd..3298bdd8 100644 --- a/src/libs/Letta/Generated/Letta.Models.LettaMessageUnion.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.LettaMessageUnion.g.cs @@ -419,6 +419,11 @@ public LettaMessageUnion(global::Letta.SystemMessage? value) SystemMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromSystemMessage(global::Letta.SystemMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -437,6 +442,11 @@ public LettaMessageUnion(global::Letta.UserMessage? value) UserMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromUserMessage(global::Letta.UserMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -455,6 +465,11 @@ public LettaMessageUnion(global::Letta.ReasoningMessage? value) ReasoningMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromReasoningMessage(global::Letta.ReasoningMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -473,6 +488,11 @@ public LettaMessageUnion(global::Letta.HiddenReasoningMessage? value) HiddenReasoningMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromHiddenReasoningMessage(global::Letta.HiddenReasoningMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -491,6 +511,11 @@ public LettaMessageUnion(global::Letta.ToolCallMessage? value) ToolCallMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromToolCallMessage(global::Letta.ToolCallMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -509,6 +534,11 @@ public LettaMessageUnion(global::Letta.ToolReturnMessage? value) ToolReturnMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromToolReturnMessage(global::Letta.ToolReturnMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -527,6 +557,11 @@ public LettaMessageUnion(global::Letta.AssistantMessage? value) AssistantMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromAssistantMessage(global::Letta.AssistantMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -545,6 +580,11 @@ public LettaMessageUnion(global::Letta.ApprovalRequestMessage? value) ApprovalRequestMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromApprovalRequestMessage(global::Letta.ApprovalRequestMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -563,6 +603,11 @@ public LettaMessageUnion(global::Letta.ApprovalResponseMessage? value) ApprovalResponseMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromApprovalResponseMessage(global::Letta.ApprovalResponseMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -581,6 +626,11 @@ public LettaMessageUnion(global::Letta.SummaryMessage? value) SummaryMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromSummaryMessage(global::Letta.SummaryMessage? value) => new LettaMessageUnion(value); + /// /// /// @@ -599,6 +649,11 @@ public LettaMessageUnion(global::Letta.EventMessage? value) EventMessage = value; } + /// + /// + /// + public static LettaMessageUnion FromEventMessage(global::Letta.EventMessage? value) => new LettaMessageUnion(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.LettaStreamingResponse.g.cs b/src/libs/Letta/Generated/Letta.Models.LettaStreamingResponse.g.cs index df5d3438..882cb45f 100644 --- a/src/libs/Letta/Generated/Letta.Models.LettaStreamingResponse.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.LettaStreamingResponse.g.cs @@ -491,6 +491,11 @@ public LettaStreamingResponse(global::Letta.SystemMessage? value) SystemMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromSystemMessage(global::Letta.SystemMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -509,6 +514,11 @@ public LettaStreamingResponse(global::Letta.UserMessage? value) UserMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromUserMessage(global::Letta.UserMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -527,6 +537,11 @@ public LettaStreamingResponse(global::Letta.ReasoningMessage? value) HiddenReasoningMessage1 = value; } + /// + /// + /// + public static LettaStreamingResponse FromHiddenReasoningMessage1(global::Letta.ReasoningMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -545,6 +560,11 @@ public LettaStreamingResponse(global::Letta.HiddenReasoningMessage? value) HiddenReasoningMessage2 = value; } + /// + /// + /// + public static LettaStreamingResponse FromHiddenReasoningMessage2(global::Letta.HiddenReasoningMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -563,6 +583,11 @@ public LettaStreamingResponse(global::Letta.ToolCallMessage? value) ToolCallMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromToolCallMessage(global::Letta.ToolCallMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -581,6 +606,11 @@ public LettaStreamingResponse(global::Letta.ToolReturnMessage? value) ToolReturnMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromToolReturnMessage(global::Letta.ToolReturnMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -599,6 +629,11 @@ public LettaStreamingResponse(global::Letta.AssistantMessage? value) AssistantMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromAssistantMessage(global::Letta.AssistantMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -617,6 +652,11 @@ public LettaStreamingResponse(global::Letta.ApprovalRequestMessage? value) ApprovalRequestMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromApprovalRequestMessage(global::Letta.ApprovalRequestMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -635,6 +675,11 @@ public LettaStreamingResponse(global::Letta.ApprovalResponseMessage? value) ApprovalResponseMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromApprovalResponseMessage(global::Letta.ApprovalResponseMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -653,6 +698,11 @@ public LettaStreamingResponse(global::Letta.LettaPing? value) Ping = value; } + /// + /// + /// + public static LettaStreamingResponse FromPing(global::Letta.LettaPing? value) => new LettaStreamingResponse(value); + /// /// /// @@ -671,6 +721,11 @@ public LettaStreamingResponse(global::Letta.LettaErrorMessage? value) ErrorMessage = value; } + /// + /// + /// + public static LettaStreamingResponse FromErrorMessage(global::Letta.LettaErrorMessage? value) => new LettaStreamingResponse(value); + /// /// /// @@ -689,6 +744,11 @@ public LettaStreamingResponse(global::Letta.LettaStopReason? value) StopReason = value; } + /// + /// + /// + public static LettaStreamingResponse FromStopReason(global::Letta.LettaStopReason? value) => new LettaStreamingResponse(value); + /// /// /// @@ -707,6 +767,11 @@ public LettaStreamingResponse(global::Letta.LettaUsageStatistics? value) UsageStatistics = value; } + /// + /// + /// + public static LettaStreamingResponse FromUsageStatistics(global::Letta.LettaUsageStatistics? value) => new LettaStreamingResponse(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.LettaToolReturnContentUnion.g.cs b/src/libs/Letta/Generated/Letta.Models.LettaToolReturnContentUnion.g.cs index 0bf26bd6..9ce3899a 100644 --- a/src/libs/Letta/Generated/Letta.Models.LettaToolReturnContentUnion.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.LettaToolReturnContentUnion.g.cs @@ -91,6 +91,11 @@ public LettaToolReturnContentUnion(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static LettaToolReturnContentUnion FromText(global::Letta.TextContent? value) => new LettaToolReturnContentUnion(value); + /// /// /// @@ -109,6 +114,11 @@ public LettaToolReturnContentUnion(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static LettaToolReturnContentUnion FromImage(global::Letta.ImageContent? value) => new LettaToolReturnContentUnion(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.LettaUserMessageContentUnion.g.cs b/src/libs/Letta/Generated/Letta.Models.LettaUserMessageContentUnion.g.cs index 6e25bcdc..ea6b2593 100644 --- a/src/libs/Letta/Generated/Letta.Models.LettaUserMessageContentUnion.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.LettaUserMessageContentUnion.g.cs @@ -91,6 +91,11 @@ public LettaUserMessageContentUnion(global::Letta.TextContent? value) Text = value; } + /// + /// + /// + public static LettaUserMessageContentUnion FromText(global::Letta.TextContent? value) => new LettaUserMessageContentUnion(value); + /// /// /// @@ -109,6 +114,11 @@ public LettaUserMessageContentUnion(global::Letta.ImageContent? value) Image = value; } + /// + /// + /// + public static LettaUserMessageContentUnion FromImage(global::Letta.ImageContent? value) => new LettaUserMessageContentUnion(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ListMessagesForStepResponseItem.g.cs b/src/libs/Letta/Generated/Letta.Models.ListMessagesForStepResponseItem.g.cs index b70f6c31..a10ea290 100644 --- a/src/libs/Letta/Generated/Letta.Models.ListMessagesForStepResponseItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ListMessagesForStepResponseItem.g.cs @@ -419,6 +419,11 @@ public ListMessagesForStepResponseItem(global::Letta.SystemMessage? value) SystemMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromSystemMessage(global::Letta.SystemMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -437,6 +442,11 @@ public ListMessagesForStepResponseItem(global::Letta.UserMessage? value) UserMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromUserMessage(global::Letta.UserMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -455,6 +465,11 @@ public ListMessagesForStepResponseItem(global::Letta.ReasoningMessage? value) ReasoningMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromReasoningMessage(global::Letta.ReasoningMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -473,6 +488,11 @@ public ListMessagesForStepResponseItem(global::Letta.HiddenReasoningMessage? val HiddenReasoningMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromHiddenReasoningMessage(global::Letta.HiddenReasoningMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -491,6 +511,11 @@ public ListMessagesForStepResponseItem(global::Letta.ToolCallMessage? value) ToolCallMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromToolCallMessage(global::Letta.ToolCallMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -509,6 +534,11 @@ public ListMessagesForStepResponseItem(global::Letta.ToolReturnMessage? value) ToolReturnMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromToolReturnMessage(global::Letta.ToolReturnMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -527,6 +557,11 @@ public ListMessagesForStepResponseItem(global::Letta.AssistantMessage? value) AssistantMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromAssistantMessage(global::Letta.AssistantMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -545,6 +580,11 @@ public ListMessagesForStepResponseItem(global::Letta.ApprovalRequestMessage? val ApprovalRequestMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromApprovalRequestMessage(global::Letta.ApprovalRequestMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -563,6 +603,11 @@ public ListMessagesForStepResponseItem(global::Letta.ApprovalResponseMessage? va ApprovalResponseMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromApprovalResponseMessage(global::Letta.ApprovalResponseMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -581,6 +626,11 @@ public ListMessagesForStepResponseItem(global::Letta.SummaryMessage? value) SummaryMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromSummaryMessage(global::Letta.SummaryMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// @@ -599,6 +649,11 @@ public ListMessagesForStepResponseItem(global::Letta.EventMessage? value) EventMessage = value; } + /// + /// + /// + public static ListMessagesForStepResponseItem FromEventMessage(global::Letta.EventMessage? value) => new ListMessagesForStepResponseItem(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ManagerConfig.g.cs b/src/libs/Letta/Generated/Letta.Models.ManagerConfig.g.cs index 6b1ec1e4..65f20a57 100644 --- a/src/libs/Letta/Generated/Letta.Models.ManagerConfig.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ManagerConfig.g.cs @@ -181,6 +181,11 @@ public ManagerConfig(global::Letta.RoundRobinManager? value) RoundRobin = value; } + /// + /// + /// + public static ManagerConfig FromRoundRobin(global::Letta.RoundRobinManager? value) => new ManagerConfig(value); + /// /// /// @@ -199,6 +204,11 @@ public ManagerConfig(global::Letta.SupervisorManager? value) Supervisor = value; } + /// + /// + /// + public static ManagerConfig FromSupervisor(global::Letta.SupervisorManager? value) => new ManagerConfig(value); + /// /// /// @@ -217,6 +227,11 @@ public ManagerConfig(global::Letta.DynamicManager? value) Dynamic = value; } + /// + /// + /// + public static ManagerConfig FromDynamic(global::Letta.DynamicManager? value) => new ManagerConfig(value); + /// /// /// @@ -235,6 +250,11 @@ public ManagerConfig(global::Letta.SleeptimeManager? value) Sleeptime = value; } + /// + /// + /// + public static ManagerConfig FromSleeptime(global::Letta.SleeptimeManager? value) => new ManagerConfig(value); + /// /// /// @@ -253,6 +273,11 @@ public ManagerConfig(global::Letta.VoiceSleeptimeManager? value) VoiceSleeptime = value; } + /// + /// + /// + public static ManagerConfig FromVoiceSleeptime(global::Letta.VoiceSleeptimeManager? value) => new ManagerConfig(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ManagerConfig2.g.cs b/src/libs/Letta/Generated/Letta.Models.ManagerConfig2.g.cs index 7e430db6..ac60449d 100644 --- a/src/libs/Letta/Generated/Letta.Models.ManagerConfig2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ManagerConfig2.g.cs @@ -181,6 +181,11 @@ public ManagerConfig2(global::Letta.RoundRobinManager? value) RoundRobin = value; } + /// + /// + /// + public static ManagerConfig2 FromRoundRobin(global::Letta.RoundRobinManager? value) => new ManagerConfig2(value); + /// /// /// @@ -199,6 +204,11 @@ public ManagerConfig2(global::Letta.SupervisorManagerSchema? value) Supervisor = value; } + /// + /// + /// + public static ManagerConfig2 FromSupervisor(global::Letta.SupervisorManagerSchema? value) => new ManagerConfig2(value); + /// /// /// @@ -217,6 +227,11 @@ public ManagerConfig2(global::Letta.DynamicManagerSchema? value) Dynamic = value; } + /// + /// + /// + public static ManagerConfig2 FromDynamic(global::Letta.DynamicManagerSchema? value) => new ManagerConfig2(value); + /// /// /// @@ -235,6 +250,11 @@ public ManagerConfig2(global::Letta.SleeptimeManagerSchema? value) Sleeptime = value; } + /// + /// + /// + public static ManagerConfig2 FromSleeptime(global::Letta.SleeptimeManagerSchema? value) => new ManagerConfig2(value); + /// /// /// @@ -253,6 +273,11 @@ public ManagerConfig2(global::Letta.VoiceSleeptimeManagerSchema? value) VoiceSleeptime = value; } + /// + /// + /// + public static ManagerConfig2 FromVoiceSleeptime(global::Letta.VoiceSleeptimeManagerSchema? value) => new ManagerConfig2(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ManagerConfig3.g.cs b/src/libs/Letta/Generated/Letta.Models.ManagerConfig3.g.cs index 0ac6edbf..2dd1b0ab 100644 --- a/src/libs/Letta/Generated/Letta.Models.ManagerConfig3.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ManagerConfig3.g.cs @@ -181,6 +181,11 @@ public ManagerConfig3(global::Letta.RoundRobinManager? value) RoundRobin = value; } + /// + /// + /// + public static ManagerConfig3 FromRoundRobin(global::Letta.RoundRobinManager? value) => new ManagerConfig3(value); + /// /// /// @@ -199,6 +204,11 @@ public ManagerConfig3(global::Letta.SupervisorManager? value) Supervisor = value; } + /// + /// + /// + public static ManagerConfig3 FromSupervisor(global::Letta.SupervisorManager? value) => new ManagerConfig3(value); + /// /// /// @@ -217,6 +227,11 @@ public ManagerConfig3(global::Letta.DynamicManager? value) Dynamic = value; } + /// + /// + /// + public static ManagerConfig3 FromDynamic(global::Letta.DynamicManager? value) => new ManagerConfig3(value); + /// /// /// @@ -235,6 +250,11 @@ public ManagerConfig3(global::Letta.SleeptimeManager? value) Sleeptime = value; } + /// + /// + /// + public static ManagerConfig3 FromSleeptime(global::Letta.SleeptimeManager? value) => new ManagerConfig3(value); + /// /// /// @@ -253,6 +273,11 @@ public ManagerConfig3(global::Letta.VoiceSleeptimeManager? value) VoiceSleeptime = value; } + /// + /// + /// + public static ManagerConfig3 FromVoiceSleeptime(global::Letta.VoiceSleeptimeManager? value) => new ManagerConfig3(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ManagerConfigVariant1.g.cs b/src/libs/Letta/Generated/Letta.Models.ManagerConfigVariant1.g.cs index 6aef1659..d3ba9ce7 100644 --- a/src/libs/Letta/Generated/Letta.Models.ManagerConfigVariant1.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ManagerConfigVariant1.g.cs @@ -181,6 +181,11 @@ public ManagerConfigVariant1(global::Letta.RoundRobinManagerUpdate? value) RoundRobin = value; } + /// + /// + /// + public static ManagerConfigVariant1 FromRoundRobin(global::Letta.RoundRobinManagerUpdate? value) => new ManagerConfigVariant1(value); + /// /// /// @@ -199,6 +204,11 @@ public ManagerConfigVariant1(global::Letta.SupervisorManagerUpdate? value) Supervisor = value; } + /// + /// + /// + public static ManagerConfigVariant1 FromSupervisor(global::Letta.SupervisorManagerUpdate? value) => new ManagerConfigVariant1(value); + /// /// /// @@ -217,6 +227,11 @@ public ManagerConfigVariant1(global::Letta.DynamicManagerUpdate? value) Dynamic = value; } + /// + /// + /// + public static ManagerConfigVariant1 FromDynamic(global::Letta.DynamicManagerUpdate? value) => new ManagerConfigVariant1(value); + /// /// /// @@ -235,6 +250,11 @@ public ManagerConfigVariant1(global::Letta.SleeptimeManagerUpdate? value) Sleeptime = value; } + /// + /// + /// + public static ManagerConfigVariant1 FromSleeptime(global::Letta.SleeptimeManagerUpdate? value) => new ManagerConfigVariant1(value); + /// /// /// @@ -253,6 +273,11 @@ public ManagerConfigVariant1(global::Letta.VoiceSleeptimeManagerUpdate? value) VoiceSleeptime = value; } + /// + /// + /// + public static ManagerConfigVariant1 FromVoiceSleeptime(global::Letta.VoiceSleeptimeManagerUpdate? value) => new ManagerConfigVariant1(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant1.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant1.g.cs index af9405ef..bd42bf15 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant1.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant1.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant1(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant1(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant1(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant1(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant1(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant1(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant1(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant1(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant1(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant1(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant1(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant1(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant1(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant1(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant1(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant1 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant1(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant110.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant110.g.cs index 65be534d..69df1883 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant110.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant110.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant110(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant110(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant110(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant110(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant110(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant110(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant110(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant110(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant110(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant110(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant110(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant110(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant110(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant110(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant110(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant110 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant110(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant12.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant12.g.cs index 29f07cf7..714597e4 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant12.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant12.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant12(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant12(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant12(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant12(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant12(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant12(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant12(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant12(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant12(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant12(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant12(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant12(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant12(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant12(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant12(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant12 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant12(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant13.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant13.g.cs index c388fcd0..f7030ae2 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant13.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant13.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant13(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant13(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant13(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant13(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant13(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant13(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant13(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant13(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant13(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant13(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant13(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant13(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant13(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant13(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant13(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant13 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant13(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant14.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant14.g.cs index e3666ec2..0faef9b7 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant14.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant14.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant14(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant14(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant14(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant14(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant14(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant14(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant14(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant14(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant14(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant14(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant14(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant14(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant14(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant14(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant14(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant14 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant14(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant15.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant15.g.cs index 8b84627c..460868ee 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant15.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant15.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant15(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant15(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant15(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant15(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant15(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant15(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant15(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant15(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant15(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant15(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant15(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant15(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant15(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant15(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant15(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant15 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant15(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant16.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant16.g.cs index cef11327..9864a6c0 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant16.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant16.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant16(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant16(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant16(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant16(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant16(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant16(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant16(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant16(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant16(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant16(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant16(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant16(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant16(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant16(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant16(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant16 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant16(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant17.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant17.g.cs index c1f81d43..e6751fb2 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant17.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant17.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant17(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant17(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant17(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant17(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant17(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant17(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant17(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant17(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant17(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant17(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant17(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant17(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant17(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant17(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant17(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant17 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant17(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant18.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant18.g.cs index cda890a4..478f587a 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant18.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant18.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant18(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant18(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant18(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant18(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant18(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant18(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant18(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant18(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant18(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant18(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant18(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant18(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant18(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant18(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant18(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant18 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant18(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant19.g.cs b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant19.g.cs index 58114e60..5810d681 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant19.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModelSettingsVariant19.g.cs @@ -481,6 +481,11 @@ public ModelSettingsVariant19(global::Letta.OpenAIModelSettings? value) Openai = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromOpenai(global::Letta.OpenAIModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -499,6 +504,11 @@ public ModelSettingsVariant19(global::Letta.SGLangModelSettings? value) Sglang = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromSglang(global::Letta.SGLangModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -517,6 +527,11 @@ public ModelSettingsVariant19(global::Letta.AnthropicModelSettings? value) Anthropic = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromAnthropic(global::Letta.AnthropicModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -535,6 +550,11 @@ public ModelSettingsVariant19(global::Letta.GoogleAIModelSettings? value) GoogleAi = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromGoogleAi(global::Letta.GoogleAIModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -553,6 +573,11 @@ public ModelSettingsVariant19(global::Letta.GoogleVertexModelSettings? value) GoogleVertex = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromGoogleVertex(global::Letta.GoogleVertexModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -571,6 +596,11 @@ public ModelSettingsVariant19(global::Letta.AzureModelSettings? value) Azure = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromAzure(global::Letta.AzureModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -589,6 +619,11 @@ public ModelSettingsVariant19(global::Letta.XAIModelSettings? value) Xai = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromXai(global::Letta.XAIModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -607,6 +642,11 @@ public ModelSettingsVariant19(global::Letta.ZAIModelSettings? value) Zai = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromZai(global::Letta.ZAIModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -625,6 +665,11 @@ public ModelSettingsVariant19(global::Letta.GroqModelSettings? value) Groq = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromGroq(global::Letta.GroqModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -643,6 +688,11 @@ public ModelSettingsVariant19(global::Letta.DeepseekModelSettings? value) Deepseek = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromDeepseek(global::Letta.DeepseekModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -661,6 +711,11 @@ public ModelSettingsVariant19(global::Letta.TogetherModelSettings? value) Together = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromTogether(global::Letta.TogetherModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -679,6 +734,11 @@ public ModelSettingsVariant19(global::Letta.BedrockModelSettings? value) Bedrock = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromBedrock(global::Letta.BedrockModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -697,6 +757,11 @@ public ModelSettingsVariant19(global::Letta.BasetenModelSettings? value) Baseten = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromBaseten(global::Letta.BasetenModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -715,6 +780,11 @@ public ModelSettingsVariant19(global::Letta.OpenRouterModelSettings? value) Openrouter = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromOpenrouter(global::Letta.OpenRouterModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// @@ -733,6 +803,11 @@ public ModelSettingsVariant19(global::Letta.ChatGPTOAuthModelSettings? value) ChatgptOauth = value; } + /// + /// + /// + public static ModelSettingsVariant19 FromChatgptOauth(global::Letta.ChatGPTOAuthModelSettings? value) => new ModelSettingsVariant19(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModifyGroupMessageResponse.g.cs b/src/libs/Letta/Generated/Letta.Models.ModifyGroupMessageResponse.g.cs index 949894cd..bf62a891 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModifyGroupMessageResponse.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModifyGroupMessageResponse.g.cs @@ -419,6 +419,11 @@ public ModifyGroupMessageResponse(global::Letta.SystemMessage? value) SystemMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromSystemMessage(global::Letta.SystemMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -437,6 +442,11 @@ public ModifyGroupMessageResponse(global::Letta.UserMessage? value) UserMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromUserMessage(global::Letta.UserMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -455,6 +465,11 @@ public ModifyGroupMessageResponse(global::Letta.ReasoningMessage? value) ReasoningMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromReasoningMessage(global::Letta.ReasoningMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -473,6 +488,11 @@ public ModifyGroupMessageResponse(global::Letta.HiddenReasoningMessage? value) HiddenReasoningMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromHiddenReasoningMessage(global::Letta.HiddenReasoningMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -491,6 +511,11 @@ public ModifyGroupMessageResponse(global::Letta.ToolCallMessage? value) ToolCallMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromToolCallMessage(global::Letta.ToolCallMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -509,6 +534,11 @@ public ModifyGroupMessageResponse(global::Letta.ToolReturnMessage? value) ToolReturnMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromToolReturnMessage(global::Letta.ToolReturnMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -527,6 +557,11 @@ public ModifyGroupMessageResponse(global::Letta.AssistantMessage? value) AssistantMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromAssistantMessage(global::Letta.AssistantMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -545,6 +580,11 @@ public ModifyGroupMessageResponse(global::Letta.ApprovalRequestMessage? value) ApprovalRequestMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromApprovalRequestMessage(global::Letta.ApprovalRequestMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -563,6 +603,11 @@ public ModifyGroupMessageResponse(global::Letta.ApprovalResponseMessage? value) ApprovalResponseMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromApprovalResponseMessage(global::Letta.ApprovalResponseMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -581,6 +626,11 @@ public ModifyGroupMessageResponse(global::Letta.SummaryMessage? value) SummaryMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromSummaryMessage(global::Letta.SummaryMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// @@ -599,6 +649,11 @@ public ModifyGroupMessageResponse(global::Letta.EventMessage? value) EventMessage = value; } + /// + /// + /// + public static ModifyGroupMessageResponse FromEventMessage(global::Letta.EventMessage? value) => new ModifyGroupMessageResponse(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ModifyMessageResponse.g.cs b/src/libs/Letta/Generated/Letta.Models.ModifyMessageResponse.g.cs index 087e0ec0..c3c93d06 100644 --- a/src/libs/Letta/Generated/Letta.Models.ModifyMessageResponse.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ModifyMessageResponse.g.cs @@ -419,6 +419,11 @@ public ModifyMessageResponse(global::Letta.SystemMessage? value) SystemMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromSystemMessage(global::Letta.SystemMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -437,6 +442,11 @@ public ModifyMessageResponse(global::Letta.UserMessage? value) UserMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromUserMessage(global::Letta.UserMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -455,6 +465,11 @@ public ModifyMessageResponse(global::Letta.ReasoningMessage? value) ReasoningMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromReasoningMessage(global::Letta.ReasoningMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -473,6 +488,11 @@ public ModifyMessageResponse(global::Letta.HiddenReasoningMessage? value) HiddenReasoningMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromHiddenReasoningMessage(global::Letta.HiddenReasoningMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -491,6 +511,11 @@ public ModifyMessageResponse(global::Letta.ToolCallMessage? value) ToolCallMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromToolCallMessage(global::Letta.ToolCallMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -509,6 +534,11 @@ public ModifyMessageResponse(global::Letta.ToolReturnMessage? value) ToolReturnMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromToolReturnMessage(global::Letta.ToolReturnMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -527,6 +557,11 @@ public ModifyMessageResponse(global::Letta.AssistantMessage? value) AssistantMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromAssistantMessage(global::Letta.AssistantMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -545,6 +580,11 @@ public ModifyMessageResponse(global::Letta.ApprovalRequestMessage? value) ApprovalRequestMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromApprovalRequestMessage(global::Letta.ApprovalRequestMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -563,6 +603,11 @@ public ModifyMessageResponse(global::Letta.ApprovalResponseMessage? value) ApprovalResponseMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromApprovalResponseMessage(global::Letta.ApprovalResponseMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -581,6 +626,11 @@ public ModifyMessageResponse(global::Letta.SummaryMessage? value) SummaryMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromSummaryMessage(global::Letta.SummaryMessage? value) => new ModifyMessageResponse(value); + /// /// /// @@ -599,6 +649,11 @@ public ModifyMessageResponse(global::Letta.EventMessage? value) EventMessage = value; } + /// + /// + /// + public static ModifyMessageResponse FromEventMessage(global::Letta.EventMessage? value) => new ModifyMessageResponse(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs b/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs index cfc7225e..a0b14cb0 100644 --- a/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs @@ -61,6 +61,11 @@ public PolicyItem(global::Letta.ClientSideAccessTokensCreateClientSideAccessToke Agent = value; } + /// + /// + /// + public static PolicyItem FromAgent(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1? value) => new PolicyItem(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs b/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs index a4fba072..8ca5b485 100644 --- a/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs @@ -91,6 +91,11 @@ public ProducerConfig(global::Letta.PipelinesCreatePipelineRequestProducerConfig SlackChannelReader = value; } + /// + /// + /// + public static ProducerConfig FromSlackChannelReader(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1? value) => new ProducerConfig(value); + /// /// /// @@ -109,6 +114,11 @@ public ProducerConfig(global::Letta.PipelinesCreatePipelineRequestProducerConfig CustomWebhook = value; } + /// + /// + /// + public static ProducerConfig FromCustomWebhook(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2? value) => new ProducerConfig(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs b/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs index 4016cada..e2237c58 100644 --- a/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs @@ -91,6 +91,11 @@ public ProducerConfig2(global::Letta.PipelinesUpdatePipelineProducerConfigReques SlackChannelReader = value; } + /// + /// + /// + public static ProducerConfig2 FromSlackChannelReader(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1? value) => new ProducerConfig2(value); + /// /// /// @@ -109,6 +114,11 @@ public ProducerConfig2(global::Letta.PipelinesUpdatePipelineProducerConfigReques CustomWebhook = value; } + /// + /// + /// + public static ProducerConfig2 FromCustomWebhook(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2? value) => new ProducerConfig2(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs b/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs index 4cb6134d..5d5aa13e 100644 --- a/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs @@ -91,6 +91,11 @@ public ProducerConfig3(global::Letta.PipelinesPreviewPipelineRequestProducerConf SlackChannelReader = value; } + /// + /// + /// + public static ProducerConfig3 FromSlackChannelReader(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1? value) => new ProducerConfig3(value); + /// /// /// @@ -109,6 +114,11 @@ public ProducerConfig3(global::Letta.PipelinesPreviewPipelineRequestProducerConf CustomWebhook = value; } + /// + /// + /// + public static ProducerConfig3 FromCustomWebhook(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2? value) => new ProducerConfig3(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant1.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant1.g.cs index ec0e9270..4f57f091 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant1.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant1.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant1(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant1 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant1(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant1(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant1 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant1(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant1(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant1 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant1(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant110.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant110.g.cs index 2be569a0..12e1edf9 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant110.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant110.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant110(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant110 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant110(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant110(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant110 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant110(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant110(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant110 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant110(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant111.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant111.g.cs index 410638cc..bce3a67c 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant111.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant111.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant111(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant111 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant111(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant111(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant111 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant111(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant111(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant111 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant111(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant112.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant112.g.cs index cd9933f9..46be0e27 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant112.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant112.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant112(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant112 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant112(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant112(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant112 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant112(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant112(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant112 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant112(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant113.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant113.g.cs index 94a81714..becd7f17 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant113.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant113.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant113(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant113 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant113(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant113(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant113 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant113(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant113(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant113 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant113(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant114.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant114.g.cs index 6ed72e66..04ed90e5 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant114.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant114.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant114(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant114 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant114(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant114(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant114 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant114(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant114(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant114 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant114(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant115.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant115.g.cs index e9828d16..6d16c080 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant115.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant115.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant115(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant115 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant115(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant115(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant115 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant115(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant115(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant115 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant115(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant116.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant116.g.cs index 9bc215e7..59c5f573 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant116.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant116.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant116(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant116 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant116(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant116(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant116 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant116(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant116(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant116 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant116(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant117.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant117.g.cs index 0ab4d5ef..369b9b32 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant117.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant117.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant117(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant117 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant117(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant117(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant117 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant117(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant117(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant117 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant117(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant118.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant118.g.cs index e5e364e8..e561259c 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant118.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant118.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant118(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant118 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant118(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant118(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant118 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant118(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant118(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant118 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant118(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant12.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant12.g.cs index d16795c4..a33ced9d 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant12.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant12.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant12(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant12 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant12(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant12(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant12 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant12(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant12(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant12 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant12(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant13.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant13.g.cs index 494be97d..c1423b3b 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant13.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant13.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant13(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant13 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant13(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant13(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant13 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant13(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant13(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant13 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant13(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant14.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant14.g.cs index 90e3b271..23cb8089 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant14.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant14.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant14(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant14 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant14(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant14(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant14 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant14(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant14(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant14 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant14(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant15.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant15.g.cs index 9b62b4be..2237604b 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant15.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant15.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant15(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant15 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant15(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant15(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant15 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant15(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant15(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant15 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant15(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant16.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant16.g.cs index dfe39d15..2f280fa2 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant16.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant16.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant16(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant16 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant16(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant16(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant16 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant16(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant16(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant16 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant16(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant17.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant17.g.cs index ed8f4852..35747a1d 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant17.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant17.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant17(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant17 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant17(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant17(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant17 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant17(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant17(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant17 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant17(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant18.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant18.g.cs index 4f498d40..770c25dc 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant18.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant18.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant18(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant18 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant18(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant18(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant18 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant18(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant18(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant18 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant18(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant19.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant19.g.cs index bf6dcb54..a99c9a46 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant19.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseFormatVariant19.g.cs @@ -121,6 +121,11 @@ public ResponseFormatVariant19(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseFormatVariant19 FromText(global::Letta.TextResponseFormat? value) => new ResponseFormatVariant19(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseFormatVariant19(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseFormatVariant19 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseFormatVariant19(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseFormatVariant19(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseFormatVariant19 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseFormatVariant19(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant1.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant1.g.cs index 1e07b47f..01d239d5 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant1.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant1.g.cs @@ -121,6 +121,11 @@ public ResponseSchemaVariant1(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseSchemaVariant1 FromText(global::Letta.TextResponseFormat? value) => new ResponseSchemaVariant1(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseSchemaVariant1(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseSchemaVariant1 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseSchemaVariant1(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseSchemaVariant1(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseSchemaVariant1 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseSchemaVariant1(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant12.g.cs b/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant12.g.cs index e73c3e53..b041d488 100644 --- a/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant12.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ResponseSchemaVariant12.g.cs @@ -121,6 +121,11 @@ public ResponseSchemaVariant12(global::Letta.TextResponseFormat? value) Text = value; } + /// + /// + /// + public static ResponseSchemaVariant12 FromText(global::Letta.TextResponseFormat? value) => new ResponseSchemaVariant12(value); + /// /// /// @@ -139,6 +144,11 @@ public ResponseSchemaVariant12(global::Letta.JsonSchemaResponseFormat? value) JsonSchema = value; } + /// + /// + /// + public static ResponseSchemaVariant12 FromJsonSchema(global::Letta.JsonSchemaResponseFormat? value) => new ResponseSchemaVariant12(value); + /// /// /// @@ -157,6 +167,11 @@ public ResponseSchemaVariant12(global::Letta.JsonObjectResponseFormat? value) JsonObject = value; } + /// + /// + /// + public static ResponseSchemaVariant12 FromJsonObject(global::Letta.JsonObjectResponseFormat? value) => new ResponseSchemaVariant12(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.SearchAllMessagesResponseItem.g.cs b/src/libs/Letta/Generated/Letta.Models.SearchAllMessagesResponseItem.g.cs index 8f0fec16..add59d5b 100644 --- a/src/libs/Letta/Generated/Letta.Models.SearchAllMessagesResponseItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.SearchAllMessagesResponseItem.g.cs @@ -155,6 +155,11 @@ public SearchAllMessagesResponseItem(global::Letta.SystemMessageListResult? valu SystemMessage = value; } + /// + /// + /// + public static SearchAllMessagesResponseItem FromSystemMessage(global::Letta.SystemMessageListResult? value) => new SearchAllMessagesResponseItem(value); + /// /// /// @@ -173,6 +178,11 @@ public SearchAllMessagesResponseItem(global::Letta.UserMessageListResult? value) UserMessage = value; } + /// + /// + /// + public static SearchAllMessagesResponseItem FromUserMessage(global::Letta.UserMessageListResult? value) => new SearchAllMessagesResponseItem(value); + /// /// /// @@ -191,6 +201,11 @@ public SearchAllMessagesResponseItem(global::Letta.ReasoningMessageListResult? v ReasoningMessage = value; } + /// + /// + /// + public static SearchAllMessagesResponseItem FromReasoningMessage(global::Letta.ReasoningMessageListResult? value) => new SearchAllMessagesResponseItem(value); + /// /// /// @@ -209,6 +224,11 @@ public SearchAllMessagesResponseItem(global::Letta.AssistantMessageListResult? v AssistantMessage = value; } + /// + /// + /// + public static SearchAllMessagesResponseItem FromAssistantMessage(global::Letta.AssistantMessageListResult? value) => new SearchAllMessagesResponseItem(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.Source.g.cs b/src/libs/Letta/Generated/Letta.Models.Source.g.cs index ddde73f4..00d7f6ad 100644 --- a/src/libs/Letta/Generated/Letta.Models.Source.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Source.g.cs @@ -121,6 +121,11 @@ public Source(global::Letta.UrlImage? value) Url = value; } + /// + /// + /// + public static Source FromUrl(global::Letta.UrlImage? value) => new Source(value); + /// /// /// @@ -139,6 +144,11 @@ public Source(global::Letta.Base64Image? value) Base64 = value; } + /// + /// + /// + public static Source FromBase64(global::Letta.Base64Image? value) => new Source(value); + /// /// /// @@ -157,6 +167,11 @@ public Source(global::Letta.LettaImage? value) Letta = value; } + /// + /// + /// + public static Source FromLetta(global::Letta.LettaImage? value) => new Source(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs index 9514659a..3d2e60f7 100644 --- a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs @@ -91,6 +91,11 @@ public TemplatesCreateTemplateNoProjectRequest(global::Letta.TemplatesCreateTemp Agent = value; } + /// + /// + /// + public static TemplatesCreateTemplateNoProjectRequest FromAgent(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1? value) => new TemplatesCreateTemplateNoProjectRequest(value); + /// /// /// @@ -109,6 +114,11 @@ public TemplatesCreateTemplateNoProjectRequest(global::Letta.TemplatesCreateTemp AgentFile = value; } + /// + /// + /// + public static TemplatesCreateTemplateNoProjectRequest FromAgentFile(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2? value) => new TemplatesCreateTemplateNoProjectRequest(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs index e293bed2..e0901477 100644 --- a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs @@ -91,6 +91,11 @@ public TemplatesCreateTemplateRequest(global::Letta.TemplatesCreateTemplateReque Agent = value; } + /// + /// + /// + public static TemplatesCreateTemplateRequest FromAgent(global::Letta.TemplatesCreateTemplateRequestVariant1? value) => new TemplatesCreateTemplateRequest(value); + /// /// /// @@ -109,6 +114,11 @@ public TemplatesCreateTemplateRequest(global::Letta.TemplatesCreateTemplateReque AgentFile = value; } + /// + /// + /// + public static TemplatesCreateTemplateRequest FromAgentFile(global::Letta.TemplatesCreateTemplateRequestVariant2? value) => new TemplatesCreateTemplateRequest(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item.g.cs b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item.g.cs index 146e2070..3329232a 100644 --- a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item.g.cs @@ -301,6 +301,11 @@ public ToolRulesVariant1Item(global::Letta.ChildToolRule? value) ConstrainChildTools = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromConstrainChildTools(global::Letta.ChildToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -319,6 +324,11 @@ public ToolRulesVariant1Item(global::Letta.InitToolRule? value) RunFirst = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromRunFirst(global::Letta.InitToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -337,6 +347,11 @@ public ToolRulesVariant1Item(global::Letta.TerminalToolRule? value) ExitLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromExitLoop(global::Letta.TerminalToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -355,6 +370,11 @@ public ToolRulesVariant1Item(global::Letta.ConditionalToolRule? value) Conditional = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromConditional(global::Letta.ConditionalToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -373,6 +393,11 @@ public ToolRulesVariant1Item(global::Letta.ContinueToolRule? value) ContinueLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromContinueLoop(global::Letta.ContinueToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -391,6 +416,11 @@ public ToolRulesVariant1Item(global::Letta.RequiredBeforeExitToolRule? value) RequiredBeforeExit = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromRequiredBeforeExit(global::Letta.RequiredBeforeExitToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -409,6 +439,11 @@ public ToolRulesVariant1Item(global::Letta.MaxCountPerStepToolRule? value) MaxCountPerStep = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromMaxCountPerStep(global::Letta.MaxCountPerStepToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -427,6 +462,11 @@ public ToolRulesVariant1Item(global::Letta.ParentToolRule? value) ParentLastTool = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromParentLastTool(global::Letta.ParentToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// @@ -445,6 +485,11 @@ public ToolRulesVariant1Item(global::Letta.RequiresApprovalToolRule? value) RequiresApproval = value; } + /// + /// + /// + public static ToolRulesVariant1Item FromRequiresApproval(global::Letta.RequiresApprovalToolRule? value) => new ToolRulesVariant1Item(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item2.g.cs b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item2.g.cs index 55b7bf71..cff93e09 100644 --- a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item2.g.cs @@ -301,6 +301,11 @@ public ToolRulesVariant1Item2(global::Letta.ChildToolRule? value) ConstrainChildTools = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromConstrainChildTools(global::Letta.ChildToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -319,6 +324,11 @@ public ToolRulesVariant1Item2(global::Letta.InitToolRule? value) RunFirst = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromRunFirst(global::Letta.InitToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -337,6 +347,11 @@ public ToolRulesVariant1Item2(global::Letta.TerminalToolRule? value) ExitLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromExitLoop(global::Letta.TerminalToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -355,6 +370,11 @@ public ToolRulesVariant1Item2(global::Letta.ConditionalToolRule? value) Conditional = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromConditional(global::Letta.ConditionalToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -373,6 +393,11 @@ public ToolRulesVariant1Item2(global::Letta.ContinueToolRule? value) ContinueLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromContinueLoop(global::Letta.ContinueToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -391,6 +416,11 @@ public ToolRulesVariant1Item2(global::Letta.RequiredBeforeExitToolRule? value) RequiredBeforeExit = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromRequiredBeforeExit(global::Letta.RequiredBeforeExitToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -409,6 +439,11 @@ public ToolRulesVariant1Item2(global::Letta.MaxCountPerStepToolRule? value) MaxCountPerStep = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromMaxCountPerStep(global::Letta.MaxCountPerStepToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -427,6 +462,11 @@ public ToolRulesVariant1Item2(global::Letta.ParentToolRule? value) ParentLastTool = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromParentLastTool(global::Letta.ParentToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// @@ -445,6 +485,11 @@ public ToolRulesVariant1Item2(global::Letta.RequiresApprovalToolRule? value) RequiresApproval = value; } + /// + /// + /// + public static ToolRulesVariant1Item2 FromRequiresApproval(global::Letta.RequiresApprovalToolRule? value) => new ToolRulesVariant1Item2(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item3.g.cs b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item3.g.cs index 33b9ebde..f3955cff 100644 --- a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item3.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item3.g.cs @@ -301,6 +301,11 @@ public ToolRulesVariant1Item3(global::Letta.ChildToolRule? value) ConstrainChildTools = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromConstrainChildTools(global::Letta.ChildToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -319,6 +324,11 @@ public ToolRulesVariant1Item3(global::Letta.InitToolRule? value) RunFirst = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromRunFirst(global::Letta.InitToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -337,6 +347,11 @@ public ToolRulesVariant1Item3(global::Letta.TerminalToolRule? value) ExitLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromExitLoop(global::Letta.TerminalToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -355,6 +370,11 @@ public ToolRulesVariant1Item3(global::Letta.ConditionalToolRule? value) Conditional = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromConditional(global::Letta.ConditionalToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -373,6 +393,11 @@ public ToolRulesVariant1Item3(global::Letta.ContinueToolRule? value) ContinueLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromContinueLoop(global::Letta.ContinueToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -391,6 +416,11 @@ public ToolRulesVariant1Item3(global::Letta.RequiredBeforeExitToolRule? value) RequiredBeforeExit = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromRequiredBeforeExit(global::Letta.RequiredBeforeExitToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -409,6 +439,11 @@ public ToolRulesVariant1Item3(global::Letta.MaxCountPerStepToolRule? value) MaxCountPerStep = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromMaxCountPerStep(global::Letta.MaxCountPerStepToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -427,6 +462,11 @@ public ToolRulesVariant1Item3(global::Letta.ParentToolRule? value) ParentLastTool = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromParentLastTool(global::Letta.ParentToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// @@ -445,6 +485,11 @@ public ToolRulesVariant1Item3(global::Letta.RequiresApprovalToolRule? value) RequiresApproval = value; } + /// + /// + /// + public static ToolRulesVariant1Item3 FromRequiresApproval(global::Letta.RequiresApprovalToolRule? value) => new ToolRulesVariant1Item3(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item4.g.cs b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item4.g.cs index 04cb324a..4a582373 100644 --- a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item4.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item4.g.cs @@ -301,6 +301,11 @@ public ToolRulesVariant1Item4(global::Letta.ChildToolRule? value) ConstrainChildTools = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromConstrainChildTools(global::Letta.ChildToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -319,6 +324,11 @@ public ToolRulesVariant1Item4(global::Letta.InitToolRule? value) RunFirst = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromRunFirst(global::Letta.InitToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -337,6 +347,11 @@ public ToolRulesVariant1Item4(global::Letta.TerminalToolRule? value) ExitLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromExitLoop(global::Letta.TerminalToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -355,6 +370,11 @@ public ToolRulesVariant1Item4(global::Letta.ConditionalToolRule? value) Conditional = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromConditional(global::Letta.ConditionalToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -373,6 +393,11 @@ public ToolRulesVariant1Item4(global::Letta.ContinueToolRule? value) ContinueLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromContinueLoop(global::Letta.ContinueToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -391,6 +416,11 @@ public ToolRulesVariant1Item4(global::Letta.RequiredBeforeExitToolRule? value) RequiredBeforeExit = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromRequiredBeforeExit(global::Letta.RequiredBeforeExitToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -409,6 +439,11 @@ public ToolRulesVariant1Item4(global::Letta.MaxCountPerStepToolRule? value) MaxCountPerStep = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromMaxCountPerStep(global::Letta.MaxCountPerStepToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -427,6 +462,11 @@ public ToolRulesVariant1Item4(global::Letta.ParentToolRule? value) ParentLastTool = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromParentLastTool(global::Letta.ParentToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// @@ -445,6 +485,11 @@ public ToolRulesVariant1Item4(global::Letta.RequiresApprovalToolRule? value) RequiresApproval = value; } + /// + /// + /// + public static ToolRulesVariant1Item4 FromRequiresApproval(global::Letta.RequiresApprovalToolRule? value) => new ToolRulesVariant1Item4(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item5.g.cs b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item5.g.cs index 2a84c231..503878d4 100644 --- a/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item5.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ToolRulesVariant1Item5.g.cs @@ -301,6 +301,11 @@ public ToolRulesVariant1Item5(global::Letta.ChildToolRule? value) ConstrainChildTools = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromConstrainChildTools(global::Letta.ChildToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -319,6 +324,11 @@ public ToolRulesVariant1Item5(global::Letta.InitToolRule? value) RunFirst = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromRunFirst(global::Letta.InitToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -337,6 +347,11 @@ public ToolRulesVariant1Item5(global::Letta.TerminalToolRule? value) ExitLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromExitLoop(global::Letta.TerminalToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -355,6 +370,11 @@ public ToolRulesVariant1Item5(global::Letta.ConditionalToolRule? value) Conditional = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromConditional(global::Letta.ConditionalToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -373,6 +393,11 @@ public ToolRulesVariant1Item5(global::Letta.ContinueToolRule? value) ContinueLoop = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromContinueLoop(global::Letta.ContinueToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -391,6 +416,11 @@ public ToolRulesVariant1Item5(global::Letta.RequiredBeforeExitToolRule? value) RequiredBeforeExit = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromRequiredBeforeExit(global::Letta.RequiredBeforeExitToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -409,6 +439,11 @@ public ToolRulesVariant1Item5(global::Letta.MaxCountPerStepToolRule? value) MaxCountPerStep = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromMaxCountPerStep(global::Letta.MaxCountPerStepToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -427,6 +462,11 @@ public ToolRulesVariant1Item5(global::Letta.ParentToolRule? value) ParentLastTool = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromParentLastTool(global::Letta.ParentToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// @@ -445,6 +485,11 @@ public ToolRulesVariant1Item5(global::Letta.RequiresApprovalToolRule? value) RequiresApproval = value; } + /// + /// + /// + public static ToolRulesVariant1Item5 FromRequiresApproval(global::Letta.RequiresApprovalToolRule? value) => new ToolRulesVariant1Item5(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.OneOf.2.g.cs b/src/libs/Letta/Generated/Letta.OneOf.2.g.cs index 40e312b6..605ddfb9 100644 --- a/src/libs/Letta/Generated/Letta.OneOf.2.g.cs +++ b/src/libs/Letta/Generated/Letta.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/Letta/Generated/Letta.OneOf.6.g.cs b/src/libs/Letta/Generated/Letta.OneOf.6.g.cs index d809839e..3c2b0eb8 100644 --- a/src/libs/Letta/Generated/Letta.OneOf.6.g.cs +++ b/src/libs/Letta/Generated/Letta.OneOf.6.g.cs @@ -205,6 +205,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -223,6 +228,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// @@ -241,6 +251,11 @@ public OneOf(T3? value) Value3 = value; } + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + /// /// /// @@ -259,6 +274,11 @@ public OneOf(T4? value) Value4 = value; } + /// + /// + /// + public static OneOf FromValue4(T4? value) => new OneOf(value); + /// /// /// @@ -277,6 +297,11 @@ public OneOf(T5? value) Value5 = value; } + /// + /// + /// + public static OneOf FromValue5(T5? value) => new OneOf(value); + /// /// /// @@ -295,6 +320,11 @@ public OneOf(T6? value) Value6 = value; } + /// + /// + /// + public static OneOf FromValue6(T6? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.OneOf.9.g.cs b/src/libs/Letta/Generated/Letta.OneOf.9.g.cs index 63abbbee..65bed8db 100644 --- a/src/libs/Letta/Generated/Letta.OneOf.9.g.cs +++ b/src/libs/Letta/Generated/Letta.OneOf.9.g.cs @@ -295,6 +295,11 @@ public OneOf(T1? value) Value1 = value; } + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + /// /// /// @@ -313,6 +318,11 @@ public OneOf(T2? value) Value2 = value; } + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + /// /// /// @@ -331,6 +341,11 @@ public OneOf(T3? value) Value3 = value; } + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + /// /// /// @@ -349,6 +364,11 @@ public OneOf(T4? value) Value4 = value; } + /// + /// + /// + public static OneOf FromValue4(T4? value) => new OneOf(value); + /// /// /// @@ -367,6 +387,11 @@ public OneOf(T5? value) Value5 = value; } + /// + /// + /// + public static OneOf FromValue5(T5? value) => new OneOf(value); + /// /// /// @@ -385,6 +410,11 @@ public OneOf(T6? value) Value6 = value; } + /// + /// + /// + public static OneOf FromValue6(T6? value) => new OneOf(value); + /// /// /// @@ -403,6 +433,11 @@ public OneOf(T7? value) Value7 = value; } + /// + /// + /// + public static OneOf FromValue7(T7? value) => new OneOf(value); + /// /// /// @@ -421,6 +456,11 @@ public OneOf(T8? value) Value8 = value; } + /// + /// + /// + public static OneOf FromValue8(T8? value) => new OneOf(value); + /// /// /// @@ -439,6 +479,11 @@ public OneOf(T9? value) Value9 = value; } + /// + /// + /// + public static OneOf FromValue9(T9? value) => new OneOf(value); + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.OptionsSupport.g.cs b/src/libs/Letta/Generated/Letta.OptionsSupport.g.cs index 3b226677..7e7d5bb5 100644 --- a/src/libs/Letta/Generated/Letta.OptionsSupport.g.cs +++ b/src/libs/Letta/Generated/Letta.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::Letta.IAutoSDKAuthorizationProvider? AuthorizationProvider { get; set; } + + /// + /// Convenience helper that registers + /// using so request-level auth is resolved without + /// touching shared client state. + /// + /// + public global::Letta.AutoSDKClientOptions UseAuthorizationProvider( + global::Letta.IAutoSDKAuthorizationProvider provider) + { + AuthorizationProvider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + if (Hooks.Find(static x => x is global::Letta.AutoSDKAuthorizationProviderHook) == null) + { + Hooks.Add(new global::Letta.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::Letta.AutoSDKAuthorizationValue Bearer(string token) => new(value: token, scheme: "Bearer"); + + /// Convenience factory for an API-key header. + public static global::Letta.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::Letta.AutoSDKHookContext context); + } + + /// + /// Built-in that consults + /// before every outgoing + /// request and stamps the resolved values onto the . + /// + public sealed class AutoSDKAuthorizationProviderHook : global::Letta.AutoSDKHook + { + /// + public override async global::System.Threading.Tasks.Task OnBeforeRequestAsync( + global::Letta.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::Letta.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; + } + } } ///